Visualize webpack bundle sizes with an interactive zoomable treemap to analyze and optimize your build output.
Webpack Bundle Analyzer is a diagnostic tool that visualizes the contents of webpack bundles as interactive treemaps. It helps developers identify which modules contribute most to bundle size, detect accidentally included dependencies, and make informed decisions for code splitting and optimization. The tool works with both development and production builds, supporting minified code and multiple compression algorithms.
Frontend developers and build engineers working with webpack who need to analyze and optimize their application's bundle size and composition.
It replaces manual inspection of webpack stats with an intuitive visual interface, saving time and providing immediate clarity into bundle structure. Unlike basic size reports, it shows hierarchical relationships between modules and supports real-time exploration.
Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a zoomable treemap that allows developers to drill down into bundle composition hierarchically, making it easy to identify large modules and dependencies visually, as demonstrated in the README's GIF.
Supports stat, parsed, gzip, Brotli, and Zstandard size calculations, giving a comprehensive view of both raw and compressed impacts for informed optimization decisions.
Can be used as a webpack plugin during builds or as a CLI utility with existing stats files, offering server, static, JSON, or disabled modes to fit various workflows.
Parses minified bundles to show real output sizes, not just source sizes, which is critical for understanding production bundle performance beyond basic metrics.
Exclusively designed for webpack, so it cannot analyze bundles from other modern bundlers like Vite or Parcel, reducing its versatility in diverse tech stacks.
As admitted in the troubleshooting section, it often fails to show parsed or gzip sizes when bundles are held in RAM (e.g., with webpack-dev-server), limiting accuracy in development environments.
While excellent for manual inspection, it lacks built-in alerts for size regressions, requiring additional tooling or manual checks for continuous monitoring in CI/CD pipelines.
Full feature set, such as Zstandard compression analysis, requires Node.js 22.15.0+, which may not be available in all legacy or constrained development environments.