Skip to content
CAI
Software that uses CAICheck a score

webpack/webpack-bundle-analyzer

42.0

Weak · 15 November 2026

4.8k

lines of production code

JavaScript

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add PureComponent utility for optimized rendering

A new PureComponent class has been added to the client library, extending Preact's Component to automatically optimize rendering performance. It implements a shallow comparison of props and state in shouldComponentUpdate, ensuring that components only re-render when their inputs actually change, which helps reduce unnecessary UI updates.

client/lib · high confidence

Removals

Removal of Webpack Bundle Visualizer view

The viewer template (viewer.pug) has been removed, eliminating the user-facing interface for the Webpack Bundle Visualizer. This change removes the associated client-side dependencies, including the foamtree visualization library, tooltip functionality, and the specific CSS and JavaScript assets required to render the bundle size treemap.

views · high confidence

Behavioural changes

CLI rewritten with Commander.js and new analysis modes

The CLI entry point has been completely rewritten to use the Commander.js library, replacing the previous manual argument parsing. This change introduces a structured help system that correctly handles the \-h\ flag for help messages, and adds support for three distinct output modes: \server\ (default, starts an HTTP server), \static\ (generates a single HTML file), and \json\ (generates a JSON report). Users can now configure the server host and port, specify a custom report title for reproducible builds, choose between gzip, brotli, or zstd compression algorithms for size calculations, set default treemap sizes, and exclude assets via regex patterns.

src/bin · high confidence

Complete rewrite of the module tree structure with nested folder merging and compression support

The module tree visualization logic in src/tree has been completely rewritten to provide a more detailed and accurate breakdown of bundle contents. The new implementation introduces a hierarchical tree structure (BaseFolder, Folder, ContentFolder) that supports merging nested folders to simplify the view. It specifically handles concatenated modules by displaying their internal contents as nested sub-folders and modules, allowing users to see what is bundled together. Additionally, the tree now calculates and exposes sizes for parsed, gzip, brotli, and zstd compression algorithms, enabling users to better understand the impact of different compression strategies on their bundle.

src/tree · high confidence

Introduce MobX-based state management with persistent user preferences

The client application now uses MobX to manage UI state, replacing the previous ad-hoc approach. This change introduces a centralized store that persists user settings—such as dark mode, selected chunk filters, and module size display options—to localStorage, ensuring preferences survive page reloads. It also enables new interactive features like searching and filtering modules by entrypoint, with the UI components wired to react to these state changes.

client · high confidence

Migrate build tooling and configuration to modern standards

The project has replaced the legacy Gulp build system with a Webpack-based development setup, removing \gulpfile.js\ and \gulp\ dependencies in favor of \webpack.config.js\ and npm scripts. Configuration files have been modernized: \.babelrc\ is replaced by \webpack.config.js\ and \tsconfig.json\ for TypeScript/JS type checking, and ESLint has moved from \.eslintrc.json\ to the flat \eslint.config.mjs\ format. Browser targeting is now centralized in \.browserslistrc\, and the Node.js version is pinned to v22.14.0 via \.nvmrc\. Additionally, the test runner has switched from Mocha to Jest, and Prettier configuration is now explicit in \prettier.config.mjs\.

(repo-wide) · high confidence

Rewrite of internal architecture and logging infrastructure

The analyzer's internal implementation has been rewritten to remove external dependencies like Lodash and Express, replacing them with native Node.js modules and the \sirv\ static server. A new \Logger\ class has been introduced to manage log levels and integrate with Webpack's built-in infrastructure logger, while \stats.json\ generation now uses a streaming approach for better performance with large files. The module parsing logic has been updated to use \acorn-walk\ and support modern JavaScript structures, and the viewer template has been migrated from Pug to a custom JavaScript renderer.

src · high confidence

Rewritten UI with Sidebar, Context Menu, and Dark Mode support

The client components have been completely rewritten to introduce a new settings sidebar (with pinning and resizing), a right-click context menu for chunk filtering, and a dark mode toggle. The treemap now supports switching between stat, parsed, gzip, brotli, and zstd sizes, and includes a search feature that highlights matching modules. The UI also features a new Button, Checkbox, Dropdown, and Search component, along with improved tooltip and icon handling.

client/components · high confidence

Fixes

4 commits (3 fixes) fixing .changeset

A fix in .changeset — 4 commits (3 fixs), 6 files: “ci: trusted publishers (\#713)”; “fix: avoid a call stack overflow for chunks with very many modules (\#753)”; “fix: count module and folder parsed sizes in UTF-8 bytes (\#750)”; and 1 more (refs \#713, \#753, \#750, \#755).

.changeset · medium confidence · unverified

Automated installation of Webpack test dependencies

A new shell script, bin/install-test-webpack-versions.sh, has been added to automate the installation of npm dependencies for Webpack test environments. This script iterates through directories under test/webpack-versions and runs npm install in each, facilitating the setup required for testing against multiple Webpack versions.

bin · high confidence

Test coverage

Added test coverage for stats with modules in chunks; Added test fixtures for invalid and missing chunk scenarios; Added tests for Webpack 5 bundle analysis; Expanded test coverage for diverse Webpack bundle formats; Expanded test suite for bundle analyzer and plugin behavior.

Dependencies

webpack-bundle-analyzer v5.4.0 dependency overhaul and Node 20+ requirement

The package has been updated to version 5.4.0, introducing a comprehensive dependency refresh and a stricter runtime environment. The minimum supported Node.js version is now 20.9.0, dropping support for older releases. The dependency tree has been significantly modernized: the runtime server is now powered by \sirv\ (v3.0.2) instead of \express\, and the CLI uses \commander\ (v14.0.2). Development tooling has also been upgraded, including \webpack\ to v5.105.2, \jest\ to v30.2.0, \eslint\ to v9.39.2, and \prettier\ to v3.8.0. Additionally, the project has migrated from \yarn.lock\ to \package-lock.json\ (lockfileVersion 3) and now uses \npm@10.1.0\ as the package manager.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 41 → 42 (+1.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 77 → 75 (-1.6)
  • Architecture 93 → 93 (-0.2)
  • Maturity 52 → 55 (+4.0)
  • Readiness 50 → 49 (-0.1)
  • Security 39 → 42 (+2.6)
  • Accessibility 32 → 32 (+0.1)
  • Performance 70 → 70 (+0.0)

Resolved (7)

  • High CVE: [GHSA redacted] (package-lock.json)
  • High secret: WD-SECRET-0005 (package-lock.json)
  • No ADRs found
  • Off-boarding risk: anonymized user #1
  • Orphaned file (src/tree/Folder.js)
  • Orphaned file (src/tree/Module.js)
  • Rotate the exposed credentials — git history can't be un-committed

New (6)

  • High CVE: [GHSA redacted] (package-lock.json)
  • Medium CVE: [GHSA redacted] (package-lock.json)
  • No ADRs found (package.json)
  • Off-boarding risk: anonymized user #1
  • Repeated repair: test/analyzerUtils.js (test/analyzerUtils.js)
  • doc comments repeat the names (client/components/ContextMenuItem.jsx)

Changes since last survey

  • 8 commits — 2 feature/other, 6 fixes

By area

  • (root) — 3 commits
  • .changeset/flatten-large-module-lists.md — 1 commit
  • .changeset/windows-path-drive-letter.md — 1 commit
  • .changeset/windows-path-module-names.md — 1 commit
  • client/components — 1 commit
  • src/tree — 1 commit

Notable commits

  • fix: Fix/context menu theme (#744)
  • fix: fix: accept brotli and zstd in the CLI --default-sizes option (#755)
  • fix: fix: avoid a call stack overflow for chunks with very many modules (#753)
  • fix: fix: count module and folder parsed sizes in UTF-8 bytes (#750)
  • fix: fix: keep the drive letter of absolute Windows module paths (#747)
  • fix: fix: split module paths on both separators so Windows modules are not dropped (#745)
  • change: chore(release): new release (#742)
  • change: chore(release): new release (#748)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

webpack/webpack-bundle-analyzer was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit f65668c9ab4ffe4b1989e5badbba3e0e871e1a24 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.