webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
Upgrading webpack From 4.26.0 to 4.47.0
54 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 47
- new
- 80
- fixes
Before you upgrade
Tick each one off as you go- Breaking4.27.1
Security
- 4.41.3
Force upgrade terser-webpack-plugin dependency for security fix (not affecting webpack)
Release by release
- New
Add support for md4 in Node >=18.
- New
- Fixed
Fix behavior of defaults for
resolve.rootsto be backward-compatible
- Fixed
- New
Resolve server-relative requests relative to project context by default
- Fixed
Fix a bug where
splitChunkminSizeis not handled correctly - Fixed
Fix a bug where the order of
splitChunkcacheGroupsis not handled correctly
- New
- Fixed
Make sure to generate correct chunk connection for blocks that are only connected in some runtimes
- Fixed
- New
Add missing optional peerDependencies for webpack-cli and webpack-command to support Yarn 2
- Fixed
Fix bug in sideEffects optimization when using
export * from "non-esm"and a default export.
- New
- New
Improve
sideEffectsflag behavior when dynamic modules are part of the tree - New
Add
splitChunks.enforceSizeThresholdto allow enfore splitting larger chunks unrelated from other limiations - New
Add support for
resolve.rootsand defaultresolve.roots: [context] - Fixed
Fix bug where splitChunks produced non-optimal results when
minSizeis set to0 - Fixed
Fix bug which lead to HMR not working for splitChunks in entrypoints
- Fixed
Force update watchpack and chokidar for chokidar bugfix which causes files to stop being watched
- New
- New
Add
module.hot.invalidate()to HMR API
- New
- Fixed
Update webassemblyjs dependencies for instruction update
- Fixed
Update mkdirp dependency for security reasons
- Fixed
4 other lines we could not sort, mostly version bumps
- 4.41.0
Disallow cache group named test with shorthand syntax to point out a potential config error
- 4.32.0
CI tests node.js 12 now too
- 4.32.0
webpack-bot now merges dependabot PRs automatically when status checks succeed
- 4.30.0
Run prettier on examples markdown
5 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.