A bundle analyzer for Vite, Rollup, and Rolldown that visualizes bundle size with an interactive treemap. Current stable version is 1.3.7. Released actively with multiple updates per month. Differentiators: supports multiple bundlers (Vite, Rollup, Rolldown), multiple output modes (server, static, json, custom), customizable size metrics (stat, gzip, brotli), and TypeScript types included.
npm install vite-bundle-analyzerVerified import paths — ran on the pinned version, not inferred.
Shows how to configure and run the analyzer in static mode with gzip size report.
If you rely on a server, set analyzerPort option.
Monitor releases for stable Rolldown support.
Use 'gzip' or 'brotli' as defaultSizes for more realistic sizes.
Ensure you run npx vite build to generate analysis.
Run 'npm install vite-bundle-analyzer --save-dev' in your project.
Use import syntax or set type:'module' in package.json.
Remove plugin from dev server config or run 'npx vite build'.