BASE

Rollup Plugin Visualizer

Rollup Plugin Visualizer

Build / code quality tool · Free

Creates a module report for Rollup and Vite builds: helps check dependency sizes and the effect of tree shaking.

Also known as: btd/rollup-plugin-visualizer; rollup-plugin-visualizer; rollup-visualizer; bundle-visualization

Resource illustration: Rollup Plugin Visualizer

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Assess the contents of a Rollup or Vite bundle
  • Compare modules and dependency sizes before/after optimization

Example workflow

A possible workflow; this is not a report of hands-on testing.

Assess the contents of a Rollup or Vite bundle.

Before you start

  • A repository, package manifests, and configuration.
  • A compatible runtime and the target build command.

Steps

  1. Connect the visualization report to the production build.
  2. Compare modules and dependency sizes before/after optimization.
  3. Add the workflow to scripts or CI with a clear report.

Check your result

  • A clean copy of the project reproduces the result.
  • Errors produce a nonzero exit code and clear diagnostics.

Choosing Rollup Plugin Visualizer

Assess the contents of a Rollup or Vite bundle

Choose this when

  • Assess the contents of a Rollup or Vite bundle
  • Compare modules and dependency sizes before/after optimization

Requirements

  • The README requires Node.js 22+; place visualizer last in the Rollup/Vite plugin chain.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Gzip and Brotli sizes are not calculated by default: enable gzipSize/brotliSize. A report of bundle contents does not measure page responsiveness.

Frequently asked questions

What can you use for free in Rollup Plugin Visualizer?

Code and local use under MIT.

What additional costs might arise with Rollup Plugin Visualizer?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Rollup Plugin Visualizer?

MIT for the code; dependencies have separate licenses.

How do you get started with Rollup Plugin Visualizer?

Connect the visualization report to the production build. Compare modules and dependency sizes before/after optimization. Add the workflow to scripts or CI with a clear report.

How can I find out why a dependency is included in the bundle?

The network view shows import relationships, while the treemap helps identify large and duplicated modules. To calculate sizes after minification, enable sourcemap and keep the plugin last.

How can I compare multiple builds?

Raw-data produces JSON for the CLI, which merges multiple stats files. List produces YAML for tracking changes in Git; gzipSize and brotliSize are enabled separately.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Rollup Plugin Visualizer
  • build
  • Development

Sources

Other resources