webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
5 new9 fixed5 changed
Security
2 advisories affect 5.22.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
Generate shorter output code for JSON data by using a
'...'string instead of"..."(only affects output side when not minimized)The
dependenciesconfiguration option now works for watch builds tooIt will build compilation when any of
dependencieshas changedIt will wait for compiling until all of
dependencieshave finished
Add
parallelismconfig option on the array of configurations to limit the compilers that are running in parallel
Developer Experience
Add hints (
Did you mean ...) to resolve errors whenresolving fails due to
enforceExtensionrelative request is missing leading
./
When all modules of an entrypoint fail resolving and another entrypoints
depend(s)Onit, webpack no longer crashes with a weird errorAdd hint to stats how to get details about errors/warnings in child compilations
Improve error message for lazyCompilation when using IE11
Bugfixes
Async entries e.g. for Workers are now implicitly flagged as "having side effects" even if they are affects by
"sideEffects": falsein future we might add a warning for this
Avoid crash when using
this.loadModule(loader) and the loaded module has errorsRefactor libraries to inline exporting code into runtime to allow using with
output.iife: falseFix invalid code when using
definefor local modules and arrow functions are supportedFix missing runtime requirement for system.js context
Fix parsing of
definefunction, which missed declarations beforeAvoid unnecessary calls to loaders when serializer are already registered
Fix inner graph analysis for exports when
export { x }is before pure declarationconst x = /*#__PURE__*/ f()Fix hashing order of runtime chunks when there are async entries involved
Contribution
CI run tests on node.js 15 too
CI run tests on github actions too
Experiments
Improvements on experimental
output.library: { type: "module" }(experiments.outputModule: true)it can generate
export { ... }now, but that can't handle live-bindings yet
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.