webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
5 new4 fixed2 changed
Security
2 advisories affect 5.31.0; 5.94.0 fixes them
- CriticalCross-realm object access in Webpack 5GHSA-hc6q-2mpp-qw7j · 13 Mar 2023Fixed in 5.76.0
- ModerateWebpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSSGHSA-4vvj-4cpr-p986 · 27 Aug 2024Fixed in 5.94.0
Release note
Features
Add a few more options for infrastructure logging:
infrastructureLogging.colors: Enables/Disables colorful output.infrastructureLogging.appendOnly: Only appends lines to the output. Avoids updating existing output e. g. for status messages.infrastructureLogging.stream: Stream used for logging output. Defaults to process.stderr.infrastructureLogging.console: Custom console used for logging.When stream is an TTY colors is enabled and appendOnly is disabled. Otherwise it's flipped.
Bugfixes
Persistent Caching
fix caching crash when using fsevents in build dependencies
improve resolving of build dependencies when
exportsfield is usedmake problems during resolving build dependencies warnings instead of debug messages
Prioritize static reexport over runtime reexport for target determination
This helps in optimization by no longer opting out of optimization when some other exports any dynamic (from commonjs or empty/type-only modules)
Fix bug with subtraction of runtimes
This fixes a problem with concatenated modules in builds with multiple runtimes and force-merged shared chunks
Ensure that entrypoints are always re-executed when HMR-updated
This fixes no longer updating pages when the entrypoint crashed
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.