webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
2.7.0 is the newest release of 2.x.
In short
13 new9 fixed
Release note
Features
Add
extensionsoption to DllReferencePluginAdd
warningsFilterto UglifyJsPlugin to hide warnings selectivelyAdd
extractCommentsto UglifyJsPlugin to move kept comments into separate file (i. e. LICENSE file)Validate relative and absolute paths in configuration
Validate stats options
Allow to match on
compiler(namein configuration) in rulesi. e. allows to specify different rules for
extract-text-webpack-pluginorhtml-webpack-plugin
Allow to pass multiple entries via CLI
Performance improvements
CommonsChunkPlugin give errors on incorrect options
Add
module.strictExportPresenceto make missing export an error instead of warningCompiler emits
watch-closeevent when the watcher is closedAllow additional compress options in UglifyJsPlugin
Empty chunk numbers are not flags in every chunk, this improves caching invalidation
Bugfixes
OccurrenceOrderPlugin now counts occurrences correctly
Fix cheap-source-maps when combined with ES Modules (lines were offset)
Watcher now detects file deleting correctly
Resolve output path if relative output path is given via CLI
Handle stack traces in errors correctly
Some usages of
Systemnow generate valid code i. e.System.globalDynamic property names are now parsed and can contain webpack stuff (i. e. imports)
Empty enviroment variables are now supported in the
EnvironmentPlugin(Maybe) Fixes chunk loading in IE when script is cached
Notes
The validation now fails when passing absolute paths with lowercase drive letter on windows.
(i. e. c:\work\stuff instead of C:\work\stuff)
Lowercase drive letters will cause weird errors (node.js behavior is inconsistent about drive letter casing) in some cases.
So please fix the paths in your shell resp. your tooling and always call webpack with uppercase drive letter. Don't use lowercase drive letters.
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.