npm / webpack-bundle-analyzer
webpack-bundle-analyzer
What changed in webpack-bundle-analyzer 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 deprecations1 performance6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initwebpack-bundle-analyzer 59 changes
Deprecations 2
The plugin uses Webpack's infrastructure logger when available, so logging can be configured through Webpack's native infrastructureLogging configuration.
The plugin's logLevel option is deprecated in favor of Webpack's native infrastructureLogging configuration.
Performance 1
Improves report generation performance for compilations with many assets.
Fixes and other changes 6
Parsed and compressed sizes are scoped to the asset they were parsed from, so assets that reuse module IDs or share a module no longer report each other's sizes.
Resolves bundle assets and report files against the correct compiler output path when a plugin instance is shared by multiple compilers.
Parses Webpack 5 module maps nested in UMD wrappers, using bundle module IDs and runtime structure to choose among IIFE candidates.
Explicitly defines stats.toJson() options for bundle analysis, supporting Rspack 2.0 with minimal code changes.
Fixes the treemap so it reflects chunk checkbox selections.
Fixed a race condition in writeStats that could lead to incorrect content in stats.json.