webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
1 deprecated6 new5 fixed
- Deprecated
Deprecate
output.strictModuleExceptionHandling(this is the CommonJS way of handling errors, and the name is weird)
Security
2 advisories affect 5.25.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
Refactor the startup logic to improve library support
Add
__webpack_runtime_id__to access the current runtime idImprove error handling for HMR
add second argument to self accept error handler to pass new module and module id
add error handler argument to dependency accept, passing error and module ids
Add
output.strictModuleErrorHandlingto opt into stricter evaluation error handling semantics according to ESM specused by default when HMR is enabled
When ignoring a module used by
new URL()this will result in an url to a empty file ("data:,")Add
module.generator.asset.emitoption to disable creating assets from asset modules (e. g. for SSR)
Bugfixes
Fix problem when library options apply to a non-runtime chunk
Fix crash in
splitChunks.maxSizewhere negative indicies are accessedFix sub-optimal splitting of
splitChunks.maxSizein some cases when multiple size types are involvedFix a memory leak in AssetGenerator
Fix usage of runtime globals in SharedPlugin to support HMR updates
Deprecations
- Deprecated
Deprecate
output.strictModuleExceptionHandling(this is the CommonJS way of handling errors, and the name is weird)
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.