Skip to content
PluginStats

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)

View on npm Fresh · Dec 6, 2026

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.

Weekly downloads
33,790
Official API · Dec 5, 2026
7-day growth
+14.6%
+4.3K weekly downloads
30-day growth
-19.1%
-8K weekly downloads
90-day growth
-6.9%
-2.5K weekly downloads
Rank
#893
▲ 9 in 7 days

About bundle-stats-webpack-plugin

<p align="center"> <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison" target="_blank"><img alt="BundleStats screenshot" src="https://raw.githubusercontent.com/relative-ci/bundle-stats/master/bundle-stats.gif"/></a> </p> <p align="center"> Demos: <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison" target="_blank">Bundle analysis comparison</a> · <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis" target="_blank">Bundle analysis</a> </p> <h1 align="center">BundleStats webpack plugin</h1> <p align="center"> Analyze bundle stats(bundle size, assets, modules, packages) and compare the results between different builds. Support for webpack, rspack, vite, rollup and rolldown. </p> <p align="center"> <a href="https://www.npmjs.com/package/bundle-stats-webpack-plugin"><img src="https://img.shields.io/npm/v/bundle-stats-webpack-plugin.svg" /></a> <a href="https://www.npmjs.com/package/bundle-stats-webpack-plugin"><img src="https://img.shields.io/npm/dm/bundle-stats-webpack-plugin.svg" /></a> <img src="https://img.shields.io/node/v/bundle-stats-webpack-plugin.svg" alt="Node version" /> <a href="https://github.com/relative-ci/bundle-stats/actions/workflows/ci.yml"><img alt="GitHub action" src="https://github.com/relative-ci/bundle-stats/actions/workflows/ci.yml/badge.svg" /></a> <a href="https://socket.dev/npm/package/bundle-stats-webpack-plugin/overview"><img alt="Socket" src="https://socket.dev/api/badge/npm/package/bundle-stats-webpack-plugin" /></a> <a href="https://github.com/relative-ci/bundle-stats/actions/workflows/codeql.yml"><img alt="CodeQL" src="https://github.com/relative-ci/bundle-stats/actions/workflows/codeql.yml/badge.svg"/></a> </p> <p align="center"> <a href="https://app.relative-ci.com/projects/V1bXuieJbYttHCS75L8G"><img src="https://badges.relative-ci.com/badges/V1bXuieJbYttHCS75L8G?branch=master" alt="RelativeCI"></a> </p> <p align="center"> - <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison#/"><strong>Bundle size</strong> and <strong>totals by file</strong> type(css, js, img, etc)</a><br /> - <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison#/">Insights: <strong>duplicate packages</strong>, <strong>new packages</strong></a><br /> - <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison#/"><strong>Initial JS/CSS</strong>, <strong>Cache invalidation</strong>, and other bundle metrics</a><br /> - <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison#/assets"><strong>Assets</strong> report (entrypoint, initial, types, changed, delta)</a><br /> - <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison#/modules"><strong>Modules</strong> report (changed, delta, chunks, duplicate count and percentage)</a><br /> - <a href="https://relative-ci.com/bundle-analyzer/bundle-stats/demo/bundle-analysis-comparison#/packages"><strong>Packages</strong> report (count, duplicate, changed, delta)</a><br /> :star: <strong>Side by side comparison</strong> for multiple builds </p>

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 (default true).
  • baseline - save current webpack stats as baseline (default false).
  • html - output html report (default true).
  • json - output json report (default false).
  • outDir - output directory relative to webpack output.path (default '').
  • baselineFilepath - baseline filepath relative to webpack output.path or absolute (default 'node_modules/.cache/bundle-stats/baseline.json')
  • silent - stop logging info and only log warning and error (default false).
  • 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

bundle-stats-webpack-plugin weekly downloads on npm, last 90 days: 33,790 weekly downloads as of Dec 5, 2026, -6.9% over 90 days.bundle-stats-webpack-pluginWeekly downloads on npm · Last 90 days33,790downloads / week-6.9% over 90 days010K20K30K40K50KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
bundle-stats-webpack-plugin weekly downloads on npm, last 90 days: 33,790 weekly downloads as of Dec 5, 2026, -6.9% over 90 days.

7/30/90-day growth

bundle-stats-webpack-plugin weekly downloads growth on npm: +14.6% over 7 days, -19.1% over 30 days, -6.9% over 90 days.bundle-stats-webpack-pluginWeekly downloads growth on npm33,790downloads / week now7-day growth+4,317 weekly downloads+14.6%30-day growth-8,003 weekly downloads-19.1%90-day growth-2,495 weekly downloads-6.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
bundle-stats-webpack-plugin weekly downloads growth on npm: +14.6% over 7 days, -19.1% over 30 days, -6.9% over 90 days.

Ranking history

bundle-stats-webpack-plugin npm ranking history: currently #893 (by weekly downloads).bundle-stats-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#893current rank#760#780#800#820#840#860#880#900#920Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
bundle-stats-webpack-plugin npm ranking history: currently #893 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 45, #13 (overall #893)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 2, #3 (overall #23)
Webpack plugins: every listing in weekly downloads order

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)
Recent weekly downloads observations for bundle-stats-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
33,790+1K
32,787+1.1K
31,707-115
31,822+507
31,315+1.3K
29,980+264
29,716+243
29,473-327
29,800-2.5K
32,316-4.4K
36,682-3.3K
39,959+1.1K
38,882-3.2K
42,106—

Similar npm Webpack plugins plugins

All 20 bundle-stats-webpack-plugin alternatives

Data 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.