A Gatsby plugin that integrates webpack-bundle-analyzer to visualize bundle output sizes with an interactive zoomable treemap. Current stable version is 1.1.32, updated irregularly. Supports Gatsby v4 and v5. Key differentiator: provides the latest webpack-bundle-analyzer version compared to original gatsby-plugin-webpack-bundle-analyser, and is ESM-compatible. Plugin is disabled in development by default; requires manual devMode option to enable during development.
npm install gatsby-plugin-webpack-bundle-analyser-v2Verified import paths — ran on the pinned version, not inferred.
Configures the plugin with custom analyzer options and runs a build to open the bundle analysis in a browser.
Add options: { devMode: true } to plugin configuration in gatsby-config.js.Ensure Gatsby version satisfies peer dependency (^4.0.0 || ^5.0.0). If issues arise, pin plugin version to 1.1.25.
Use gatsby-plugin-webpack-bundle-analyzer if you need more active maintenance.
Run npm install webpack-bundle-analyzer --save-dev
Use exact string: 'gatsby-plugin-webpack-bundle-analyser-v2'