webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
3 new2 fixed
Security
2 advisories affect 5.17.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 experimental lazy compilation via
experiments.lazyCompilation: truefor web and node targetscompiles entrypoints and
import()s only when they are accessedMore details see: #12469
Known issues:
webpack-dev-server/webpack serveopening an entrypoint for the first time, sometimes need a manual refresh.
Move some javascript parsing related configuration options from
moduletomodule.parser.javascriptand also allow to set them viamodule.rulesAdd
module.parser.javascript.commonjsMagicCommentsto enable/* webpackIgnore: true */forrequire()calls
Bugfixes
Fix a problem with
webpack.debug.ProfilingPluginon Mac when the computer was suspended before.Fix a bug with IIFE handling when the IIFE has parameters with default values
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.