bundle-stats-webpack-plugin weekly downloads statistics
By relative-ci (5 listings) · npm · Webpack plugins
In-depth bundle analyzer for webpack(bundle size, assets, modules, packages)
bundle-stats-webpack-plugin has 33,790 recorded weekly downloads on npm, a decrease of 19.1% over the past 30 days, ranking #893 of 3,247 tracked listings.
About bundle-stats-webpack-plugin
Table of Contents
Install
npm install --dev bundle-stats-webpack-plugin
or
yarn add --dev bundle-stats-webpack-plugin
Webpack configuration
// webpack.config.js
const { BundleStatsWebpackPlugin } = require('bundle-stats-webpack-plugin');
module.exports = {
...,
plugins: [
new BundleStatsWebpackPlugin()
]
}
BundleStatsWebpackPlugin(options)
compare- use local saved baseline for comparison (defaulttrue).baseline- save current webpack stats as baseline (defaultfalse).html- output html report (defaulttrue).json- output json report (defaultfalse).outDir- output directory relative to webpackoutput.path(default'').baselineFilepath- baseline filepath relative to webpackoutput.pathor absolute (default 'node_modules/.cache/bundle-stats/baseline.json')silent- stop logging info and only log warning and error (defaultfalse).stats- Webpack stats options default:// webpack.config.js module.exports = { // ... stats: { assets: true, chunks: true, modules: true, builtAt: true, hash: true, }, };
How to configure webpack for better debugging and monitoring
How to exclude virtual modules
Some plugins use virtual modules as an intermediary step when generating JS modules. For example, vanilla-extract creates a virtual module for every .css.js/css.ts file based on the loader module path and the filename/source as query parameters:
./node_modules/@vanilla-extract/webpack-plugin/vanilla.virtual.css?%7B%22fileName%22%3A%22src%2Fcomponents%2Fcomponent%2Fcomponent.css.ts.vanilla.css%22%2C%22source%22%3A%22...%22%7D
Inlining the encoded source and the filename causes an increase in the size of the output stats and adds unnecessary entries to the stats. To ignore vanilla-extract virtual modules from the stats and from the bundle analysis report, use excludeModules option:
// webpack.config.js
module.exports = {
// ...
stats: {
excludeModules: [
/@vanilla-extract\/webpack-plugin\/vanilla-virtual\.css/,
],
},
};
```…
Description from the npm listing.
- webpack
- webpack-plugin
- bundle-size
- bundle-analyzer
- bundle-stats
- stats
- bundle
- size
- assets
- chunks
- modules
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Webpack plugins plugins
All 20 bundle-stats-webpack-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/bundle-stats-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.