webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
12 new19 fixed
Security
2 advisories affect 5.103.0; 5.104.1 fixes them
- Lowwebpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behaviorGHSA-8fgc-7cc6-rx7x · 5 Feb 2026Fixed in 5.104.1
- Lowwebpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistenceGHSA-38r7-794h-5758 · 5 Feb 2026Fixed in 5.104.0
Release note
Features
Added
DotenvPluginand top leveldotenvoption to enable this pluginAdded
WebpackManifestPluginAdded support the
ignoreListoption in devtool pluginsAllow to use custom javascript parse function
Added
import.meta.envsupport for environment variablesAdded support for
import.meta.dirnameandimport.meta.filenameAdded support
import.defer()for statistical pathHandle import.meta.main
Added suport to setup named exports for JSON modules and disable usage named export for
import file from "./file.json" with { type: "json" }Added support
__dirname/__filename/import.meta.dirname/import.meta.filenamefor universal targetAdded the
exportTypeoption withlink(by default), "text" andcss-style-sheetvaluesAdded support for
composesproperties
Fixes
The
dependOnchunk must be loaded before the common chunkReturn to namespace import when the external request includes a specific export
No runtime extra runtime code for module libraries
Delay HMR accept dependencies to preserve import attributes
Properly handle external presets for universal target
Fixed incorrect identifier of import binding for module externals
Fixed when defer import and dynamic default export mixed
Reduce generated output when
globalThissupportedFixed loading async modules in defer import
Reexport module for default import when no used exports for systemjs library
Rename HarmonyExportDependencyParserPlugin exported id to CompatibilityPlugin tagged id
Handle
__dirnameand__filenamefor ES modulesRename single nested
__webpack_export__and__webpack_require__in already bundled codeWebpack function type
NormalModule type
Multi compiler configuration type
Fixed regression in custom
hashDigesttypeNo extra runtime for initial chunk
Fixed a lot of CSS modules bugs
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.