Bundle analyzer data and metrics

Discover the metrics and data extracted for each section

Assets

The list of assets generated by the bundler

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

Data

NameDescription
SizeThe size of the file produced by the bundler
Asset typeThe bundler asset type: entry, initial, chunk, other
File typeThe output file type: JS, CSS, IMG, Media, Fonts, HTML, Other

Metrics

NameDescriptionChange up/down
Bundle SizeThe total file size of the assets generated or processed by the bundlerregression/improvement
Total size by typeThe total file size by file type(ex: CSS, JS, IMG, Media, Fonts, Html, and Other)regression/improvement
Initial JSThe total file size of the JavaScript initial chunksregression/improvement
Initial CSSThe total file size of the CSS initial chunksregression/improvement
Cache InvalidationThe ratio between the total of the changed assets and the total file size(Bundle Size)neutral
ChunksThe total number of chunks generated by the bundlerneutral
AssetsTotal number of assets generated by the bundlerneutral

Modules

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

Data

NameDescription
SizeModule file size before any production optimization(ex: terser minification)
SourceFirst/Third party code
ChunkParent asset chunk
File typeModule file type: JS, CSS, Other

Metrics

NameDescriptionChange up/down
ModulesThe total number of bundled modulesneutral
Duplicate Modules (bundle-stats@3.3.0)The total number of modules that belong to more than one chunkregression/improvement \
Duplicate Code (bundle-stats@3.3.0)The percentage of total duplicate module size from the total module sizeneutral

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

v1-v3v4
modules100110
duplicateModules1010

Packages

List of bundled packages

Data

NameDescription
SizeThe total package's module size before any production optimization(ex: terser minification)

Metrics

NameDescriptionChange up/down
PackagesThe total number of bundled packagesregression/improvement
Duplicate PackagesThe total number of duplicate packagesregression/improvement

Resources

Ship performant web applications with confidence every single time. Analyze, fix, and optimize your bundle before shipping to production.