Data and metrics

RelativeCI uses bundle-stats to verify, filter and analyze webpack stats. Discover below the data and the metrics extracted for each section:

For projects using Vite/Rollup, check the How to output bundle stats JSON file on Vite guide.


The list of assets produced by the bundler

Asset size: The size of the file produced by the bundler

  • webpack ignores assets that match excludeAssets webpack stats option
  • bundle-stats ignores assets with .map and .LICENSE.txt extensions

Bundle Size

The total file size of the assets generated or processed by the bundler

bundle-stats extracts total metrics for each file type(ex: CSS, JS, IMG, Media, Fonts, Html, and Other).

Initial JS

The total file size of the JavaScript initial chunks

Initial CSS

The total file size of the CSS initial chunks

Cache Invalidation

The ratio between the total of the changed assets and the total file size(Bundle Size)


The total number of chunks generated by the bundler


Total number of assets generated or produced by the bundler


List of modules bundled by webpack
  • webpack ignores modules that match excludeModuleswebpack stats option
  • bundle-stats ignores modules that are not bundled into any chunks

Module size: module file size before any production optimization(ex: terser minification)


The total number of bundled modules

From bundle-stats@v4, the metric counts all the duplicate module instances - bundle-stats#2122.


Duplicate Modules


The total number of modules that belong to more than one chunk

Duplicate Code


The percentage of total duplicate module size from the total module size


Bundled packages

Package size: the total package's module size before any production optimization(ex: terser minification).


The total number of bundled packages

Duplicate Packages

The total number of duplicate packages