Registry / devops / rollup-plugin-analyze

rollup-plugin-analyze

JSON →
library0.4.0jsnpmunverified

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-analyze
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-ANAL
R
rollup-plugin-analyze
devopsjavascriptv0.4.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default export
import Analyze from 'rollup-plugin-analyze'
const Analyze = require('rollup-plugin-analyze')
Works in both ESM and CJS environments. The default export is a function that returns a Rollup plugin object.

Shows integration with Vite using React plugin plus Rollup analyzer.

// vite.config.js import react from '@vitejs/plugin-react' import Analyze from 'rollup-plugin-analyze' export default () => { return { plugins: [react(), Analyze()] } }
Debug
Known issues
gotchaOnly supports Rollup 1.x or 2.x; no explicit support for Rollup 3+ or 4+.
fix
Use rollup-plugin-visualizer or fork/upgrade the plugin.
affects: >=3.0
gotchaNo TypeScript typings included in the package.
fix
Create a manual .d.ts file or ignore type errors with // @ts-ignore.
affects: 0.4.0
gotchaThe plugin may not work with Rollup's output format 'es' or 'cjs' correctly; tested only with 'iife' in examples.
fix
Test with your output format; consider using a more maintained alternative like rollup-plugin-visualizer.
affects: 0.4.0
gotchaNo configuration options exposed; Analyze() takes no arguments and uses defaults.
fix
If customization needed, use another plugin like rollup-plugin-visualizer or fork this one.
affects: 0.4.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-analyze'
Package not installed or not in node_modules.
fix
Run npm install --save-dev rollup-plugin-analyze
TypeError: Analyze is not a function
Incorrect import syntax: using default import where module uses named export or vice versa.
fix
Use `import Analyze from 'rollup-plugin-analyze'` (default import) or `const Analyze = require('rollup-plugin-analyze')` for CJS.
Upgrade
Version history
0.4.0latest on npm
Audit
Dependencies
rolluprequiredpeer dependency required for the plugin to hook into Rollup's build process
Agent activity
27 hits · last 30 days
node
22
OpenAI (training)
3
Resources
rollup-plugin-analyze — npm install rollup-plugin-analyze · libregistry