unstale

npm / webpack-bundle-analyzer

webpack-bundle-analyzer

What changed in webpack-bundle-analyzer 4 to 5, from its official release notes, upgrade guides and advisories. Also covers @types/webpack-bundle-analyzer. Sources checked 2026-11-30.

2 breaking2 deprecations1 performance15 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

webpack-bundle-analyzer 517 changes

Deprecations 2

  • The plugin uses Webpack's infrastructure logger when available, so logging can be configured through Webpack's native infrastructureLogging configuration.

    5.4.0release notes

  • The plugin's logLevel option is deprecated in favor of Webpack's native infrastructureLogging configuration.

    5.4.0release notes

Performance 1

  • Improves report generation performance for compilations with many assets.

    5.3.2release notes

Fixes and other changes 14

  • Accepts brotli and zstd; when --compression-algorithm is omitted, either value also selects that compression algorithm.

    5.4.3release notes

  • Fixes a stack overflow when a chunk contains around 130,000 or more modules.

    5.4.3release notes

  • Module and folder parsed sizes are counted in UTF-8 bytes instead of UTF-16 code units, matching asset parsed size and compressed sizes.

    5.4.3release notes

  • Absolute Windows module paths retain their drive letters and UNC module paths retain their servers, preventing modules that differ only by drive or server from being merged in the report.

    5.4.2release notes

  • Prevents a TypeError when child compilations or entrypoints have undefined or missing assets.

    5.4.1release notes

  • Fixes the context menu background and border colors in dark mode.

    5.4.1release notes

  • Prevents modules from being counted twice when both a directory and modules inside it match the search.

    5.4.1release notes

  • Keeps modules in the report when their names use Windows path separators, including absolute paths from another drive.

    5.4.1release notes

  • 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.3release notes

  • Resolves bundle assets and report files against the correct compiler output path when a plugin instance is shared by multiple compilers.

    5.3.2release notes

  • Parses Webpack 5 module maps nested in UMD wrappers, using bundle module IDs and runtime structure to choose among IIFE candidates.

    5.3.2release notes

  • Explicitly defines stats.toJson() options for bundle analysis, supporting Rspack 2.0 with minimal code changes.

    5.3.1release notes

  • Fixes the treemap so it reflects chunk checkbox selections.

    5.3.1release notes

  • Fixed a race condition in writeStats that could lead to incorrect content in stats.json.

    5.3.0release notes

webpack-bundle-analyzer 43 changes

Breaking changes 2

  • Support for Node.js 6 and 8 was dropped; Node.js v10.13.0 is now the minimum required version.

    4.0.0release notes

  • Adds support for Webpack 5.

    4.0.0release notes

Fixes and other changes 1

  • Prevents crashes when openAnalyzer is true in environments with no program to handle opening.

    4.0.0release notes