What webpack/webpack shipped
Written by FoxPlug from the repository's own releases; not affiliated with webpack. Paste your own repository in the box below and FoxPlug writes the same weekly update for your product. This page is an automatic summary of the releases, pull requests and commits in github.com/webpack/webpack; webpack did not write it and does not use or endorse FoxPlug. Every line links to the change it describes.
Get a weekly update like this for your product, free
Week of November 16, 2026
What shipped
- Production builds now minify JavaScript with webpack's own minifier by default instead of terser, available as webpack.javascript.jsMinify with terser-compatible options. Pull request #23532
- Added compiler.worker API and shared worker pool so plugins can use webpack-owned worker threads instead of starting their own farms per compilation. Pull request #23374
- Shared modules across chunks now link with native import/export in ESM builds instead of going through require, matching behavior of rollup, rolldown and esbuild. Pull request #23491
- CSS minifier closed size gaps to cssnano by handling angle units, color functions and other optimizations. Pull request #23514
- Runtime generation became smaller on modern targets by using for-of loops and shorter code patterns. Pull request #23494
- Fixed CSS attribute selector and namespace scan bugs that caused exponential backtracking. Pull request #23528
- Output handling now checks linked output files before writing and cleans files written through links. Pull request #23520
- Added 2000 generated fixtures to syntax invariants coverage for CSS, HTML, JavaScript and XML. Pull request #23509
- JavaScript parser now matches cached words by packed keys instead of string comparison, reducing tokenizer work. Pull request #23493
- Deserializer context now keeps properties in V8's fast-properties representation by moving rest onto a prototype. Pull request #23526
Why it matters
This week saw major performance improvements to the parser and minifier, switching to webpack's own JavaScript minification by default, and significant output optimizations for ESM builds. The addition of a shared worker pool API and 2000 new test fixtures strengthens the foundation for faster and more reliable builds.
Changelog entry
- JavaScript minification uses webpack's own minifier by default in production, available as webpack.javascript.jsMinify Pull request #23532
- Added compiler.worker API and shared worker pool for plugins Pull request #23374
- ESM shared modules now link across chunks with native import/export Pull request #23491
- CSS minifier closes gaps to cssnano with angle, color and other optimizations Pull request #23514
- Runtime generation is smaller on modern targets Pull request #23494
- JavaScript parser tokenization is faster with packed word cache keys Pull request #23493
- Fixed CSS attribute selector exponential backtracking bug Pull request #23528
- Output handling checks linked files before writing Pull request #23520
- Added 2000 generated fixtures to syntax invariants coverage Pull request #23509
- Deserializer context keeps properties in V8 fast-properties representation Pull request #23526
- Tree-shaking skips passthrough modules that also export default Pull request #23518
- One-pass minifier drops loops breaking labeled blocks after statement joins Pull request #23515
Webpack now minifies JavaScript with its own minifier by default, shares worker threads across plugins, and links ESM modules with native import/export. Parser tokenization and runtime generation are faster.
This week's webpack updates focus on performance and correctness. Production builds now use webpack's own JavaScript minifier by default instead of terser. ESM shared modules link with native import/export like rollup and esbuild. The parser tokenization is faster with packed word caches, and the runtime is smaller on modern targets. A new compiler.worker API lets plugins share webpack-owned worker threads. 2000 new test fixtures expand coverage for CSS, HTML, JavaScript and XML syntax.
Week of November 9, 2026
What shipped
- Experiments.cacheUnaffected no longer throws when optimization.usedExports or optimization.mangleExports is enabled, fixing stale export-usage and used-name caches. Pull request #23337
- Prefetch hints for entries using dependOn are restored by including dependent entrypoints when collecting startup hint chunks. Pull request #23318
- Ambiguous export * names are now propagated to parent and cyclic modules, so conflicting bindings stay out of the namespace object. Pull request #23331
- @charset is now declared only for a stylesheet file, never for a stylesheet embedded in another document. Pull request #23323
- Renaming or inlining assets no longer drops or overwrites emitted files, and chunks are no longer requested from the wrong place. Pull request #23338
- CompileBooleanMatcher now escapes line terminators when emitting chunk loading condition matchers, so the generated regular expressions behave correctly. Pull request #23340
- Generated HTML no longer splits or truncates asset URLs inside srcset and imagesrcset. Pull request #23342
- HTML pages now rewrite more CSS module references, support named modules and handle rule-only sheets without needing module on the link. Pull request #23317
- A fragment on a link to the page's own file now gets the page's CSS module names, like a same-page anchor. Pull request #23354
Why it matters
This week fixes several correctness issues that silently changed what a build produces: conflicting star exports, lost asset files, mis-encoded HTML URLs and broken prefetch hints. It also removes a configuration restriction around cacheUnaffected with usedExports and mangleExports, and closes remaining gaps against svgo in SVG minification. Several performance changes speed up parsing and the CSS invariants suite without changing output.
Changelog entry
- Allow usedExports and mangleExports with cacheUnaffected. Pull request #23337
- Restore prefetch hints for entries using dependOn. Pull request #23318
- Propagate ambiguous export * names to parent and cyclic modules. Pull request #23331
- Declare @charset only for a stylesheet file, not for embedded sheets. Pull request #23323
- Keep every emitted file when assets are renamed or inlined. Pull request #23338
- Escape line terminators in regular expressions from compileBooleanMatcher. Pull request #23340
- Keep exports and keys named like Object.prototype members as own properties. Pull request #23366
- Preserve generated srcset candidate URLs in HTML. Pull request #23342
- Add CSS module references, named modules and rule-only sheets in HTML pages. Pull request #23317
- Scope a link fragment to the page's own file. Pull request #23354
- Fold calls of functions returning a constant and drop unread returned tails in the minifier. Pull request #23344
- Keep each CSS and HTML syntax tree on an instance so runs can nest. Pull request #23327
This week: usedExports and mangleExports now work with cacheUnaffected, prefetch hints for dependOn entries are restored, ambiguous export * names propagate correctly, and @charset is only declared for real stylesheet files.
This week's changes to webpack: cacheUnaffected now allows usedExports and mangleExports, dependent entries get their prefetch hints back, and ambiguous export * names are propagated to parent and cyclic modules. Asset renaming and inlining no longer drop emitted files, generated srcset URLs stay intact, and @charset is declared only for stylesheet files. HTML CSS module names also cover fragments on links to the page's own file, and several parser and minifier passes got faster without changing their output.
Week of November 2, 2026
What shipped
- CSS modules keep distinct shortened grid area names, scoping areas from their original names so similarly named areas no longer merge. Pull request #23214
- CSS modules fill the local placeholder with the written class and keyframe name, so distinct classes no longer merge when an exports convention is set. Pull request #23218
- CSS composes chains of any depth are followed, including links to a class in the same file, so composed classes keep their own composes. Pull request #23194
- SystemJS externals with a falsy default export now give the importer the value instead of the whole module object. Pull request #23179
- Namespace key order is kept when const-valued and getter exports are mixed under inlineExports. Pull request #23186
- Inlining exported constants now preserves negative zero, so Object.is and division checks still see -0. Pull request #23185
- Undeclared identifiers are treated as impure in the inner graph, so unused initializers referencing them are no longer dropped. Pull request #23187
- The binary generator option is now read for asset, asset/inline and asset/resource modules only. Pull request #23159
- Percent signs in chunk names are escaped in chunk URLs, so chunks whose names contain percent escape sequences now load. Pull request #23211
- Filesystem cache cleanup now deletes only pack files it wrote, and packs with unrestorable content are stored rather than treated as usable. Pull request #23216
Why it matters
This week tightened a lot of small correctness gaps in CSS modules, JavaScript output and cache handling, the kinds of issues that surface only when a build reuses code or emits generated output. Several fixes address output that read back differently from the source, and others fix module graph and export semantics in optimization paths. For anyone using webpack, these reduce surprising breakage in scoped CSS names, SystemJS externals, inlined exports and cached builds.
Changelog entry
- Preserve distinct shortened grid names in CSS modules by scoping areas from their original names. Pull request #23214
- Fill the local placeholder in CSS modules with the written name and apply export conventions to keys only. Pull request #23218
- Follow same-file composes links at any depth in CSS modules. Pull request #23194
- Preserve falsy SystemJS default exports in the emitted setter. Pull request #23179
- Keep namespace key order when const and getter exports are mixed under inlineExports. Pull request #23186
- Preserve -0 when inlining exported constants. Pull request #23185
- Treat undeclared identifiers as impure in the inner graph. Pull request #23187
- Read the binary generator option for asset modules only. Pull request #23159
- Escape percent signs in chunk URLs so chunks with such names load. Pull request #23211
- Clean up only pack files in the filesystem cache and store packs with unrestorable content. Pull request #23216
- Clamp the lower bound in formatSize so fractional byte sizes get a defined unit. Pull request #23204
- Pass acorn grammar and token options through parseProgram. Pull request #23173
This week: CSS grid names stay distinct under scoped conventions, composes chains follow same-file links, falsy SystemJS default exports and -0 inlining are fixed, and chunk URLs escape percent signs. Also: safer filesystem cache cleanup and a narrower binary generator option.
This week's webpack work focuses on correctness in the places builds quietly go wrong: CSS modules now scope grid areas from their original names, honor the written name in the local placeholder, and follow composes chains of any depth including same-file links. On the JavaScript side, inlined exports keep -0, namespace key order survives mixed const and getter exports, and undeclared identifiers count as impure in the inner graph. SystemJS externals with falsy default exports now hand over the value, chunk URLs escape percent signs, the binary generator option applies to asset modules only, and filesystem cache cleanup no longer deletes files webpack did not write.
Week of October 26, 2026
What shipped
- The JavaScript minifier now honors
pure_funcs,drop_console,global_defsandtop_retainwhen minifying. Pull request #23042 - CommonJS modules whose requires only load side-effect-free modules can now be dropped. Pull request #23061
- Some CommonJS exports assignments are now treated as side-effect-free, so unused CommonJS modules can be removed. Pull request #21937
- Unread classes and declarations that only read each other are now dropped when minifying. Pull request #23040
- Loaders gain a sourceTest option so a loader's normal function can be skipped for inputs that do not match. Pull request #23029
- The MultiCompiler done hook is now async, so plugins can wait for work after the build and report failures. Pull request #23023
- Query and fragment delimiters in values used in chunk names now produce a warning instead of a broken output file. Pull request #22885
- Native HTML handling now decodes percent-encoded local asset URL paths before resolving them. Pull request #23026
- With native CSS and HMR, styles from a deleted chunk are now removed on hot update. Pull request #23024
- HMR now applies an update after an in-flight chunk finishes installing, so late chunk files no longer overwrite it. Pull request #23009
Why it matters
This week tightened the one-pass JavaScript minifier on several fronts, adding option support, new folds and fixes for cases that printed errors or larger output, while a minify revert responds to a measured slowdown in cold production builds. CommonJS side-effect analysis and unused code removal both mean smaller bundles for projects that carry otherwise unused modules. On the tooling side, HTML and CSS handling fixes and an async MultiCompiler done hook remove failure cases that plugin and loader authors were hitting.
Changelog entry
- Honor
pure_funcs,drop_console,global_defsandtop_retainin the one-pass minifier. Pull request #23042 - Drop CommonJS modules whose requires load side-effect-free modules. Pull request #23061
- Treat some CommonJS exports assignments as side-effect-free. Pull request #21937
- Drop unread classes and declarations only each other reads when minifying. Pull request #23040
- Add sourceTest to loader use items to skip a loader for non-matching inputs. Pull request #23029
- Make the MultiCompiler done hook async. Pull request #23023
- Warn about query and fragment delimiters in chunk names. Pull request #22885
- Decode encoded asset URL paths in native HTML handling. Pull request #23026
- Remove deleted chunk styles on hot update with native CSS. Pull request #23024
- Apply an HMR update after an in-flight chunk installs. Pull request #23009
- Normalize file URL source paths so hashes do not depend on the checkout directory. Pull request #23028
- Call back with the cached value from CacheFacade.provide on a cache hit. Pull request #23032
This week: the minifier now reads pure_funcs, drop_console, global_defs and top_retain, and drops more unread code. CommonJS modules that only load side-effect-free modules can now be dropped. Loaders gain sourceTest, and the MultiCompiler done hook is async.
This week webpack's one-pass JavaScript minifier gained several options it previously ignored, including pure_funcs, drop_console, global_defs and top_retain, and it now drops more unread code: classes nothing reads, declarations that only read each other, and calls to functions marked side-effect free. CommonJS modules whose requires load only side-effect-free modules can now be removed entirely. Loaders now support sourceTest to skip a loader for inputs that do not match, and the MultiCompiler done hook is async so plugins can wait for post-build work. Fixes also landed for query and fragment delimiters in chunk names, percent-encoded HTML asset paths, and CSS and HMR updates.
Week of October 19, 2026
What shipped
- Version 5.112.2 shipped with faster concatenation of imported modules, no unused CSS module sets for single-group chunks, and a fix so importModule() returns the value for every module type. Release
- Version 5.112.1 shipped fixes for rebuilding lazy barrels and re-export targets in watch mode under cacheUnaffected. Release
- ImportModule() now returns the value of the loaded module for every module type, not an empty object when no JavaScript consumer exists. Pull request #22869
- Unsealing a compilation now resets the chunk graph so a second seal cannot reuse references to removed chunks. Pull request #22888
- Dynamic asset requests keep the new URL expression and change only the asset argument, so properties like href still work. Pull request #22884
- Named external module ids are now stable: when several requests share an external, the smallest incoming request is used for naming. Pull request #22891
- A new compilation.hooks.chunkHashDependencies hook lets a chunk's hash follow the hashed file names of chunks it references. Pull request #22810
- Module.parser.css and module.parser.html gain a parseErrors option, off by default, so malformed stylesheets and pages report parse errors during builds. Pull request #22904
- CommonJS export self-references keep optional chaining when webpack renames their properties. Pull request #22883
- The CSS minifier keeps the space before a deferred SVG data URL it rewrites, so output reads as url(...) rather than redurl(...). Pull request #22880
Why it matters
This week brought two patch releases with performance work on module concatenation and CSS module ordering, plus fixes to importModule(), lazy barrel rebuilds and URL handling for dynamic assets. Build output correctness improved for CommonJS optional self-references and SVG data URLs, and new parseErrors and chunkHashDependencies options give plugin and configuration authors more control. New opt-in defaults stayed off, so existing builds are unaffected unless the options are enabled.
Changelog entry
- V5.112.2: reduce repeated scans in module concatenation, avoid CSS module sets for single-group chunks, and return values from importModule() for every module type. Release
- V5.112.1: rebuild lazy barrels and re-export targets in watch and cacheUnaffected, and fix an unused self-reference dependency. Release
- Reset the chunk graph in Compilation.unseal() so a second seal does not reuse references to removed chunks. Pull request #22888
- Preserve URL objects for dynamic assets by transforming only the asset argument. Pull request #22884
- Stabilize named external module ids by using the smallest incoming request when several share an external. Pull request #22891
- Add compilation.hooks.chunkHashDependencies so a chunk hash can follow the hashes of chunks it names. Pull request #22810
- Add an opt-in parseErrors option to module.parser.css (and css/auto, css/module, css/global) and module.parser.html. Pull request #22904
- Preserve optional chaining on CommonJS export self-references when properties are renamed. Pull request #22883
- Keep the space before a deferred SVG data URL rewritten by the CSS minifier. Pull request #22880
- Return the value of every module type from importModule(), counting the call as a JavaScript consumer in each generator. Pull request #22869
- Cut CPU and allocation in the CSS minifier while keeping byte-identical output including source maps. Pull request #22868
- Fold Object.keys, Object.values and Object.entries over array and string literals when the result is shorter. Pull request #22854
Webpack 5.112.2 and 5.112.1 are out: faster module concatenation, no unused CSS module sets for single-group chunks, importModule() returns values for every module type, plus watch rebuild fixes for lazy barrels. Also new: parseErrors for CSS and HTML, a chunk hash dependencies h
Webpack 5.112.2 and 5.112.1 are released. The patch releases speed up module concatenation by removing duplicate scans, avoid allocating CSS module sets for single-group chunks, and fix importModule() so it returns the value for every module type. Watch mode now rebuilds lazy barrels and re-export targets correctly under cacheUnaffected. Alongside the releases: module.parser.css and module.parser.html gain an opt-in parseErrors option so malformed stylesheets and pages no longer build silently; compilation.hooks.chunkHashDependencies lets a chunk's hash follow the hashed file names of chunks it references; named external module ids no longer depend on async resolution order; and dynamic asset requests keep the new URL expression so href and other properties still work. CommonJS export self
Week of October 12, 2026
What shipped
- Module libraries now keep exports live instead of exporting each binding as a copy read once at startup. Pull request #22733
- Writes made inside eval() now reach a module library's exported binding, which syncs as soon as the eval call returns. Pull request #22755
- Module library exports stay live under hot module replacement rather than exporting copies read at startup. Pull request #22747
- Watch mode now re-resolves reported changes and updates watchpack to 2.6.3, so a nested
node_modulescreated during a build is picked up. Pull request #22759 - The CSS minifier keeps a valid fallback when the declaration overriding it is one no engine reads. Pull request #22753
- Extracting source maps now preserves literals and block directives instead of triggering missing-file warnings or changing string contents. Pull request #22768
- ProvidePlugin now awaits asynchronous provided dependencies in ES modules instead of reading an undefined value and leaving a rejection unhandled. Pull request #22728
- The JavaScript minifier no longer drops new, rewrites Array() or expands arguments when the program assigns the built-in name. Pull request #22761
- With cacheUnaffected, cache restore now counts a module's references so modules whose connections changed no longer keep memoized exports. Pull request #22749
- Seven programs whose minified output behaved differently from the original now keep code running as written. Pull request #22726
Why it matters
This week mostly closes correctness gaps in module libraries, which now keep exports live across later writes, eval calls and hot updates. Several fixes address watch mode and caching, where stale output previously required a restart. The type refactors and minifier fixes reduce mistakes in generated code.
Changelog entry
- Keep module library exports live instead of copies read at startup. Pull request #22733
- Sync module library exported bindings after eval() calls. Pull request #22755
- Keep module library exports live under hot module replacement. Pull request #22747
- Re-resolve watcher-reported changes and update watchpack to 2.6.3. Pull request #22759
- Keep a CSS fallback when its overriding value is read by no engine. Pull request #22753
- Preserve literals when extracting source maps. Pull request #22768
- Await asynchronous provided dependencies in ES modules. Pull request #22728
- Keep new and Array() on a built-in the program assigns in the minifier. Pull request #22761
- Count a module's references when restoring its mem cache with cacheUnaffected. Pull request #22749
- Keep minified code running as written where it diverged. Pull request #22726
- Scope ICSS @value property names bound to dashed idents. Pull request #22737
- Reject srcset descriptors after a zero density in HTML parsing. Pull request #22741
Module library exports now stay live across later writes, eval() calls and hot updates. Watch mode picks up nested node_modules that appear during a build. Cache restore and CSS fallback fixes are in too.
This week's webpack changes focus on correctness. A module library now exports bindings that stay live instead of copies read once at startup, including writes made inside eval() and under hot module replacement. Watch mode re-resolves reported changes and updates watchpack, so a nested node_modules created during a build is picked up without a restart. With cacheUnaffected, cache restore now counts a module's references. The CSS minifier keeps a valid fallback when its overriding value is read by no engine, and source map extraction preserves literals and block directives.
Week of October 5, 2026
What shipped
- Propagate available module growth during code splitting so a later import with the same webpackChunkName no longer leaves children with stale copies. Pull request #22555
- The JavaScript minifier now copies a tiny function called from several places into each call. Pull request #22600
- CSS minification folds a later line-height into the preceding font declaration. Pull request #22602
- Dynamic import.source() contexts now preserve the source phase for Wasm and return the WebAssembly.Module directly. Pull request #22604
- Wasm eager and weak source imports now unwrap the source value instead of resolving to a namespace object. Pull request #22606
- Incremental caches now invalidate indirect importers when a leaf's async state changes. Pull request #22585
- The minifier gained several rewrites for assignments, conditional callees, name-passing calls and literal built-ins. Pull request #22584
- CSS minification preserves:is() around namespace-qualified selectors so SVG and HTML rules keep matching the same elements. Pull request #22582
- Core module externals keep their original spelling when node: prefixes are enabled, avoiding broken requires on older Node. Pull request #22593
- Modules, dependencies and chunks now describe themselves through is(kind) instead of instanceof checks throughout lib. Pull request #22587
Why it matters
This week brought correctness fixes across the minifier, CSS, Wasm and caching that remove crashes and wrong output in common builds. New minifier rewrites and code-splitting growth propagation improve the size and consistency of produced bundles.
Changelog entry
- Propagate available module growth during code splitting. Pull request #22555
- Copy a tiny function called from several places into each call in the minifier. Pull request #22600
- Fold a later line-height into the font before it in CSS minification. Pull request #22602
- Preserve source phase in dynamic import.source() contexts for Wasm. Pull request #22604
- Unwrap eager and weak source imports for Wasm. Pull request #22606
- Invalidate unaffected caches when async state changes. Pull request #22585
- Fold assignments, inline conditional callees, flatten name-passing calls and fold literal built-ins in the minifier. Pull request #22584
- Preserve namespaces when unwrapping:is() in CSS. Pull request #22582
- Keep a core module external as the code spells it when node: is supported. Pull request #22593
- Ask modules, dependencies and chunks what they are instead of using instanceof. Pull request #22587
- Preserve module globals with a shared name cache. Pull request #22583
- Read
reduce_varsand _eval off each node's kind for performance. Pull request #22577
This week: code splitting propagates module growth, the minifier copies small multi-call functions and adds new rewrites, CSS folds line-height and preserves:is() namespaces, Wasm source imports unwrap properly, and caches invalidate on async state changes.
This week in webpack: code splitting now propagates available module growth so later imports with the same webpackChunkName no longer leave children with stale copies. The JavaScript minifier copies tiny functions called from several places into each call and gained new rewrite rules for assignments, conditional callees and literal built-ins. CSS minification folds line-height into the preceding font, preserves:is() around namespace-qualified selectors, and fixes border:none. Wasm source imports unwrap correctly and dynamic import.source() preserves the source phase. Caches now invalidate indirect importers when a leaf's async state changes, and core module externals keep their original spelling when node: prefixes are enabled.
Week of September 28, 2026
What shipped
- The JavaScript minifier now runs entirely on webpack's own printer without loading terser, completing the multi-step migration off terser's AST onto plain ESTree. Pull request #22380
- JavaScript minification on plain ESTree nodes is faster and uses less memory by sharing prototypes for node kinds and counting character frequency during printing. Pull request #22419
- The minifier now drops unused reads and calls of built-in globals and their properties when the value is not read, reducing output size. Pull request #22405
- CSS and HTML assets now extract license comments into separate.LICENSE.txt files, and CSS minification includes gradient and shadow shortening. Pull request #22408
- A new fuzzing suite runs terser's program generator against webpack's minifier to catch correctness regressions. Pull request #22390
- Statement-level IIFEs can now have their bodies inlined in place, reducing wrapper overhead for functions containing try-catch and other statements. Pull request #22393
- The mangler's scope analysis now uses the same ScopeAnalyzer as module concatenation, moving toward a unified scope analysis system. Pull request #22428
- Large CSS data tables are now built lazily as memoized getters, reducing allocation and parse time for builds that don't use minification. Pull request #22385
- Linting speed is ~2.7x faster by running Prettier once instead of through ESLint and improving caching. Pull request #22383
Why it matters
This week completes webpack's multi-year migration of the JavaScript minifier from terser's AST to plain ESTree, gaining speed and memory savings on every build. The work also strengthens testing against terser and swc, fixes edge cases in minification and CSS handling, and improves developer velocity with faster linting.
Changelog entry
- JavaScript minification now uses webpack's printer alone without terser, completing the ESTree migration Pull request #22380
- Minification on plain ESTree is faster and uses less memory through shared prototypes and inline character counting Pull request #22419
- Minifier drops unused reads and calls of built-in globals and their properties Pull request #22405
- CSS and HTML extract license comments to.LICENSE.txt files; CSS gradients and shadows shorten further Pull request #22408
- New minify-fuzz suite tests webpack's minifier against terser's fuzzer on seeded programs Pull request #22390
- Statement-level IIFEs can inline their bodies in place, reducing wrapper overhead Pull request #22393
- Mangler's scope analysis uses the unified ScopeAnalyzer from module concatenation Pull request #22428
- ESM spellings added alongside deprecated Harmony names for public runtime and fragment stages Pull request #22400
- Large CSS data tables build lazily as memoized getters to reduce allocation in non-minifying builds Pull request #22385
Webpack's minifier now runs entirely on plain ESTree—faster, smaller, and terser-free. Plus: better CSS gradients, license extraction, and 2.7x faster linting.
After a multi-step migration, webpack's JavaScript minifier now runs entirely on plain ESTree nodes without loading terser, beating the original pipeline on speed and memory. The week also ships CSS license extraction, gradient shortening, fuzzing against terser, statement-level IIFE inlining, and glob patterns for snapshot paths. Linting is 2.7x faster.
Week of September 21, 2026
What shipped
- Webpack now minifies JavaScript through its own terser phases under futureDefaults, replacing terser's parse, output, print, frequency and mangle phases with faster versions built on webpack's own AST. Pull request #22298
- Sourcemaps now emit the scopes field for imported ESM bindings via new -scopes devtool suffixes (source-map-scopes, eval-source-map-scopes, etc.), letting debuggers resolve mutable imports. Pull request #21999
- Shared modules now accept include/exclude filters on version and request, letting nested dependencies use their own copies instead of being forced to the shared version. Pull request #22297
- JSON assets are now minified under futureDefaults via optimization.minimizeOptions.json, defaulting to true with experiments.futureDefaults. Pull request #22286
- Copy plugin now offers an ignore hook and never reads from output.path, preventing recursive copying of webpack's own output back into itself. Pull request #22216
- JavaScript minifier now grows token tables by token count instead of source length, reducing parser-buffer memory by 46.6% on production Lodash builds. Pull request #22329
- Webpack now reads only the browserslist config for the default target instead of loading the full browserslist module, saving 1.6 MB retained memory on builds that don't need it. Pull request #22324
- Plugins can now add custom dependency types by exposing template.DependencyTemplate, module.NullFactory and util.makeSerializable from compiler.webpack. Pull request #22321
- Lib/dependencies is now organized by syntax family (amd/, commonjs/, css/, esm/, hmr/, html/, system/, worker/) instead of 144 flat files. Pull request #22291
- CSS minifier now treats 2009-draft flexbox spellings (-webkit-box-align, -moz-box-pack, display: -webkit-box) as legacy names for modern targets, dropping them appropriately. Pull request #22320
Why it matters
This week brings webpack's own JavaScript minifier implementation forward, adds sourcemap scoping for ESM imports, and delivers multiple performance improvements across CSS, HTML and graph processing. Plugin authors gain new hooks for custom dependency types and shared module filtering.
Changelog entry
- Feat(javascript): minify through webpack's own terser phases under futureDefaults Pull request #22298
- Feat(sourcemaps): emit the scopes field for imported ESM bindings Pull request #21999
- Feat(sharing): add include/exclude filters to shared modules Pull request #22297
- Feat: minify JSON assets under futureDefaults Pull request #22286
- Feat(copy): add an ignore hook and never read from output.path Pull request #22216
- Feat: expose template.DependencyTemplate, module.NullFactory and util.makeSerializable Pull request #22321
- Perf(javascript): reduce minifier token buffer memory by 46.6% Pull request #22329
- Perf(config): read only browserslist config for default target, saving 1.6 MB Pull request #22324
- Fix(css): treat 2009-draft flexbox spellings as legacy for modern targets Pull request #22320
- Refactor(dependencies): group lib/dependencies by syntax family Pull request #22291
- Perf(html): skip unnecessary style sheet closure scans with mergeStyles Pull request #22328
- Perf(graph): reduce allocations on module and chunk graph hot paths Pull request #22289
Webpack now minifies JavaScript through its own terser phases, adds sourcemap scopes for ESM imports, lets shared modules filter by version/request, minifies JSON assets under futureDefaults, and saves 1.6 MB by lazy-loading browserslist.
This week's webpack updates focus on performance and developer experience. The JavaScript minifier now runs webpack's own optimized terser phases. Sourcemaps gain the scopes field for imported ESM bindings, making debuggers resolve imports directly. Shared modules accept include/exclude filters, JSON assets minify under futureDefaults, and memory usage drops with smarter token buffering and lazy configuration loading. Plugin authors can now add custom dependency types with exposed APIs.