webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
3.12.0 is the newest release of 3.x.
In short
5 new8 fixed1 internal
Release note
Features
Add
stats.excludeAssetsto allow to filter assets in listAdd
import(/* webpackMode: "weak" */ "module")to try to load a module without network requestAdd 4. argument to
require.contextwhich is the context mode. Can befalse,"eager","lazy-once","weak"and"async-weak".require.resolveWeaknow support expressionsGenerate only a single require for modules references in scope-hoisted modules (
ModuleConcatenationPlugin)
Bugfixes
Keep correct import order when using the
ModuleConcatenationPluginGenerate shorter, more readable identifiers in
ConcatenatedModule--helpoutput is flushed before process exitExit code is reliable reported for CLI validation error
statsoptions are now validated by schemaFixes problem when using the
CommonsChunkPluginin async mode withoutnameargumentFixes description of
--resolve-extensionsFixes
has no internal namewhen using dependency variable in root of scope-hoisted modules (ModuleConcatenationPlugin)
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.