Skip to content

Bump webpack 5 dependencies to 5.113.0 - #6228

Merged
Ian Clanton-Thuon (iclanton) merged 5 commits into
mainfrom
iclanton/bump-webpack-5-113
Nov 27, 2026
Merged

Ian Clanton-Thuon (iclanton) merged 5 commits into
mainfrom
iclanton/bump-webpack-5-113

Conversation

@iclanton

@iclanton Ian Clanton-Thuon (iclanton) commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Update all 25 direct webpack 5 dependencies to ~5.113.0, preserving selector style. Leave webpack 4 dependencies and peer compatibility ranges unchanged.
  • Regenerate both subspace lockfiles and Rush repo-state files, preserving existing registry metadata for unchanged packages.
  • Add a minor changefile for @rushstack/heft-web-rig and a patch changefile for @rushstack/heft-rspack-plugin, whose consumers receive the updated dependency. Add none changefiles for build/test-only updates, including the Rush lockstep group.
  • Adapt localization plugin types to webpack's chunk-aware filename templates, update webpack-output snapshots, and prevent constant folding from removing the module used by the minifier metadata test.
  • Rename the dashboard's animation keyframe without changing its behavior to avoid the CSS export collision warning newly reported by webpack.

Validation

  • Frozen rush install succeeded for both subspaces.
  • All webpack-focused plugin and integration tests passed, including localization, module minification, hashed-folder copying, and themed-styles loading.
  • Dashboard and Rush serve build/test checks passed without the new CSS warning.
  • Built the web rig app/library consumers, Rspack integration, Rush bundle, and local webpack version-loading test.
  • Verified changefile coverage, all 25 updated selectors, unchanged webpack 4 lockfile entries, current repo-state files, and git diff --check.

The configured package mirror does not yet serve webpack 5.113.0, so dependency installation used a command-local public npm registry override; repository registry configuration is unchanged. Final checks used NODE_OPTIONS=--no-webstorage and BROWSERSLIST_IGNORE_OLD_DATA=true to avoid environment-only warnings. An earlier broader test run encountered unrelated Git commit-signing and timing failures; this is not a full-monorepo test pass.

Preserve webpack 4 and peer compatibility ranges, update subspace lockfiles and consumer-aware changefiles, and adapt affected types and output tests.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Use a minor release for the web rig and explain why the metadata fixture must avoid constant-export inlining.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Preserve all exports used through Rush deep-import facades, refresh localization snapshots for the updated lockfiles, and suppress Browserslist age warnings across CI build and test processes.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copy link
Copy Markdown
Member Author

Investigated the latest CI failures and pushed fixes in d47b524:

  • Browserslist suppression was only configured by the web rig (and the Sass test), not by standalone webpack builds or Jest processes. Added BROWSERSLIST_IGNORE_OLD_DATA=1 at CI job scope so it reaches all build/test children, including the second clone used for cache verification.
  • The updated lockfiles changed the webpack minimizer/Terser versions, so seven localization tests had stale minified-output/hash snapshots. Regenerated them using the current committed lockfiles and reran without snapshot-update mode.
  • Rush had 42 test failures because webpack removed NATIVE_RUSH_COMMANDS from the generated RushConstants deep-import facade. Set entryOnly: false on its DLL/deep-import plugin so non-entry modules retain their externally accessible exports. The facade and all Rush tests now pass.

Validated the affected builds/tests locally, including production-mode Rush and localization tests, with no Browserslist warnings. Node 24 also had a separate process-stat test fail because its 30-second child was already exited when inspected; the same test passed on Node 22/26 CI and all four tests in that suite pass in isolation locally. I left that unrelated timing-sensitive test unchanged. Full CI results for the new head are pending.

Configure Browserslist suppression via dependent Heft environment-setting tasks for standalone webpack builds, Storybook builds, and localization tests instead of a CI-wide environment variable.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copy link
Copy Markdown
Member Author

Replaced the CI-wide Browserslist variable with task-scoped set-environment-variables-plugin configuration in 5f9b36e, following the web rig pattern. The affected standalone webpack tasks, Storybook tasks, and localization Jest task explicitly depend on their environment-setting task.

Validated local production-mode builds/tests with BROWSERSLIST_IGNORE_OLD_DATA explicitly removed from the parent environment: Rush serve, hashed-folder copying, the basic webpack tutorial, localization tests, and both Storybook v6 builds completed without Browserslist age warnings. This now covers local runs as well as CI.

@iclanton
Ian Clanton-Thuon (iclanton) merged commit 2aaa790 into main Nov 27, 2026
8 checks passed
@iclanton
Ian Clanton-Thuon (iclanton) deleted the iclanton/bump-webpack-5-113 branch November 27, 2026 01:40
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants