# What changed in webpack-bundle-analyzer

> 9 changes in webpack-bundle-analyzer 5 from its official release notes, upgrade guides and advisories: 2 deprecations. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/webpack-bundle-analyzer/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## webpack-bundle-analyzer 5

### Deprecations

- The plugin uses Webpack's infrastructure logger when available, so logging can be configured through Webpack's native infrastructureLogging configuration. (5.4.0) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.4.0)
- The plugin's logLevel option is deprecated in favor of Webpack's native infrastructureLogging configuration. (5.4.0) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.4.0)

### Performance

- Improves report generation performance for compilations with many assets. (5.3.2) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.3.2)

### Fixes and other changes

- 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. (5.3.3) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.3.3)
- Resolves bundle assets and report files against the correct compiler output path when a plugin instance is shared by multiple compilers. (5.3.2) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.3.2)
- Parses Webpack 5 module maps nested in UMD wrappers, using bundle module IDs and runtime structure to choose among IIFE candidates. (5.3.2) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.3.2)
- Explicitly defines stats.toJson() options for bundle analysis, supporting Rspack 2.0 with minimal code changes. (5.3.1) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.3.1)
- Fixes the treemap so it reflects chunk checkbox selections. (5.3.1) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.3.1)
- Fixed a race condition in writeStats that could lead to incorrect content in stats.json. (5.3.0) — [release notes](https://github.com/webpack/webpack-bundle-analyzer/releases/tag/v5.3.0)
