A Rollup plugin that generates an interactive HTML visualization of your bundle's module sizes and dependencies. Version 0.4.0 is the latest stable release with no active development observed since 2020. It provides a full-page visual breakdown similar to Webpack Bundle Analyzer, but as a Rollup-specific solution. Key differentiator: it outputs a standalone HTML file with drill-down capability, unlike other tools like rollup-plugin-visualizer which offers multiple output formats. Supports Rollup and Vite via plugin compatibility.
npm install rollup-plugin-analyzeVerified import paths — ran on the pinned version, not inferred.
Shows integration with Vite using React plugin plus Rollup analyzer.
Use rollup-plugin-visualizer or fork/upgrade the plugin.
Create a manual .d.ts file or ignore type errors with // @ts-ignore.
Test with your output format; consider using a more maintained alternative like rollup-plugin-visualizer.
If customization needed, use another plugin like rollup-plugin-visualizer or fork this one.
Run npm install --save-dev rollup-plugin-analyze
Use `import Analyze from 'rollup-plugin-analyze'` (default import) or `const Analyze = require('rollup-plugin-analyze')` for CJS.