bundle-analyzer_skill

This skill analyzes JavaScript bundle sizes, identifies large dependencies, and suggests optimizations for faster page loads across webpack, vite, and rollup.
  • TypeScript

6

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill dexploarer/hyper-forge --skill bundle-analyzer

  • SKILL.md11.8 KB

Overview

This skill analyzes JavaScript bundle sizes, pinpoints large or duplicate dependencies, and recommends concrete optimizations for webpack, Vite, and Rollup projects. It helps teams reduce initial load, improve Time to Interactive, and integrate bundle checks into CI. Ideal for TypeScript and React-based projects where build size impacts performance.

How this skill works

The skill detects the build tool by scanning package.json and common config files, then suggests and configures the appropriate analyzer (webpack-bundle-analyzer, rollup-plugin-visualizer, or source-map-explorer). It generates treemap reports and gzipped size breakdowns, highlights top contributors to bundle weight, and produces a prioritized action list with estimated savings. It can also recommend build-time changes like manual chunks, externals, and compression plugins, plus CI checks to enforce budgets.

When to use it

  • After a release when load times regress or bundle grows unexpectedly
  • When you ask: "analyze bundle", "optimize bundle size", or "reduce bundle"
  • Before shipping to production to enforce size budgets in CI
  • When onboarding a repo to identify duplicate or heavy dependencies
  • When implementing route-based code splitting or lazy loading

Best practices

  • Run bundle analysis on major releases and include it in CI to catch regressions
  • Prefer granular imports (lodash/debounce) or lodash-es for tree-shaking
  • Use dynamic imports and manualChunks to split vendor code from app code
  • Replace heavy libraries (moment, large chart libs) with lighter alternatives
  • Compress assets (gzip/brotli), remove dev-only code, and purge unused CSS

Example use cases

  • Add webpack-bundle-analyzer to a webpack config and generate a static treemap report
  • Configure Vite with rollup-plugin-visualizer and manualChunks for React and utilities
  • Use source-map-explorer on a CRA build to find duplicate lodash and large assets
  • Set size-limit in package.json and fail CI on pull requests that exceed budgets
  • Create an action plan from the report: replace moment, lazy-load chart library, remove unused CSS

FAQ

Use webpack-bundle-analyzer for webpack, rollup-plugin-visualizer for Vite/Rollup, and source-map-explorer as a cross-platform option.

How do I estimate savings from changes?

Compare treemap and gzipped sizes before and after local changes or simulate by removing/replacing modules; reports often include per-module sizes to sum potential reductions.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
bundle-analyzer skill by dexploarer/hyper-forge | VeilStrat