Sunday, May 30 2021 at 6:00 UTC we will be performing a service update. The new version will support bundle-stats v3 and will contain 2 changes in the way we extract metrics from webpack stats:
Module concatenation is a webpack optimization plugin that can decrease the total size of a bundle by merging eligible modules. Older versions of bundle-stats were extracting only the top-level module entries from the webpack stats. bundle-stats v3 is extracting all the concatenated modules if available and is generating a more complete view of the modules and packages included in the bundle.
- Module list is going to contain a larger number of entries
Modulesmetric is going to increase with the new corresponding number of modules. Depending on the size of your project and the webpack configuration, the number can be up to 150% larger.
Packagesmetric might be larger due to the new module entries
Duplicate packagesmetric might be larger due to the new package entries
The change will be available once you start using
@relative-ci/agent@2. You can try the feature right now by using the beta channel:
npm install --save-dev @relative-ci/agent@beta # or yarn add --dev @relative-ci/agent@beta
Previous versions of bundle-stats were counting duplicate packages uniquely by name. bundle-stats v3 counts every duplicate occurrence, causing a metric change if the build introduces a new duplicate instance.
- Duplicate packages metric will increase if one of the existing duplicate packages is duplicated more than 2x
The change will be available for all projects after the service update.