A Rollup plugin that visualizes the size of output files as an interactive zoomable treemap. Version 1.6.6 supports Rollup ^1.20.0 || ^2.0.0 || ^3.0.0, requires Node >=14.0.0, and ships TypeScript types. It provides multiple analyzer modes (server, static, json) and can display input, rendered (minified), and gzipped sizes. Unlike webpack-bundle-analyzer, this plugin is specifically for Rollup/Vite projects and parses minified bundles to show real module sizes. It supports excluding assets via patterns.
npm install rollup-plugin-bundle-analyzerVerified import paths — ran on the pinned version, not inferred.
Configures rollup to generate a static HTML report and a stats JSON file, excluding source maps.
Use the official rollup-plugin-analyzer or wait for an update. Alternatively, pin rollup to version 3.x.
Check your options object keys against the documentation.
Use an absolute path or ensure the relative path is correct.
Remove these options. They are no longer supported.
Run 'npm install --save-dev rollup-plugin-bundle-analyzer'
Use: import bundleAnalyzer from 'rollup-plugin-bundle-analyzer'
Downgrade Rollup to version 3.x or use an alternative plugin.