parcel-plugin-bundle-visualiser is a plugin for the Parcel 1.x bundler that generates an interactive treemap visualization of your bundle contents. This allows developers to easily inspect asset sizes, identify large dependencies, and optimize their application's footprint. The plugin outputs an `report.html` file to the build directory when Parcel runs in production mode. Inspired by `webpack-bundle-analyzer`, it provides detailed insights into individual assets and bundles, including their minified sizes and estimated gzipped sizes. The package is currently at version 1.2.0, with its last update several years ago, primarily supporting Parcel 1.x. Given that Parcel 2.x has a built-in bundle analyzer, this plugin is effectively abandoned for newer Parcel versions and in maintenance mode for legacy Parcel 1.x projects.
npm install parcel-plugin-bundle-visualiserNo compatibility data collected yet for this library.
Installs the plugin and demonstrates how to trigger a bundle report generation using Parcel 1.x in production mode.
Ensure `NODE_ENV=production` is set when running `parcel build`. Do not use the `--visualise` flag as it was removed.
For Parcel 2.x, use Parcel's built-in bundle analyzer by setting `PARCEL_BUNDLE_ANALYZER=1` or using the `--reporter @parcel/reporter-bundle-analyzer` flag during the build process. Do not attempt to use `parcel-plugin-bundle-visualiser` with Parcel 2.x.
It is highly recommended to migrate to Parcel 2.x and use its native bundle analyzer for active development. For legacy Parcel 1.x projects, be aware that this plugin is unsupported.
If you need to preserve reports, move or rename `report.html` before running a new production build.
Ensure that `NODE_ENV=production` is set when you run your Parcel build command. The plugin only generates the report in production mode. Verify the output directory for `report.html` is the one you expect.
Remove the `--visualise` argument from your Parcel build command. As of version 1.1.1, the plugin is triggered solely by `NODE_ENV=production`.
This plugin is strictly for Parcel 1.x. For Parcel 2.x, use the built-in bundle analyzer by setting the environment variable `PARCEL_BUNDLE_ANALYZER=1` or adding `--reporter @parcel/reporter-bundle-analyzer` to your `parcel build` command.