A tool to analyze the size and composition of esbuild output bundles, helping identify optimization opportunities. Version 0.0.1 is extremely early and unstable — expect breaking changes with every release. Unlike bundle analyzers for Webpack (webpack-bundle-analyzer) or Rollup (rollup-plugin-visualizer), this is native to esbuild's plugin system, but currently lacks interactive visualizations and detailed module trees. Release cadence is not established.
npm install esbuild-bundle-analyzerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to add the bundle analyzer as an esbuild plugin to generate a report JSON file during build.
Pin esbuild version to exact match; await stable releases.
Use named export { bundleAnalyzer } instead.Restart build every time for accurate results.
Analyze subsets of the bundle or increase Node memory limit (--max-old-space-size).
Use separate tools for non-JS assets.
Run 'npm install esbuild-bundle-analyzer@0.0.1' and verify import statement.
Use 'import { bundleAnalyzer } from "esbuild-bundle-analyzer"' in an ESM context.Use 'plugins: [bundleAnalyzer()]' (call the function) instead of 'plugins: [bundleAnalyzer]'.
No dependency data recorded yet.