webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
8 new3 faster13 fixed
Security
2 advisories affect 5.102.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 static analyze for dynamic imports
Added support for
import file from "./file.ext" with { type: "bytes" }to get the content asUint8Array(look at example)Added support for
import file from "./file.ext" with { type: "text" }to get the content as text (look at example)Added the
snapshot.contextModuleto configure snapshots options for context modulesAdded the
extractSourceMapoption to implement the capabilities of loading source maps by comment, you don't needsource-map-loader(look at example)The
topLevelAwaitexperiment is now stable (you can removeexperiments.topLevelAwaitfrom yourwebpack.config.js)The
layersexperiment is now stable (you can removeexperiments.layersfrom yourwebpack.config.js)Added function matcher support in rule options
Fixes
Fixed conflicts caused by multiple concatenate modules
Ignore import failure during HMR update with ES modules output
Keep render module order consistent
Prevent inlining modules that have
thisexportsRemoved unused
timeoutattribute of script tagSupported UMD chunk format to work in web workers
Improved CommonJs bundle to ES module library
Use
es-lexerformjsfiles for build dependenciesFixed support
__non_webpack_require__for ES modulesProperly handle external modules for CSS
AssetsByChunkName included assets from
chunk.auxiliaryFilesUse
createRequireonly when output is ES module and target is nodeTypescript types
Performance Improvements
Avoid extra calls for snapshot
A avoid extra jobs for build dependencies
Move import attributes to own dependencies
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.