Packages

webpack

5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed

Your version

5.109.1

27 Jul 2026Where it was published

5.113.0 is the newest release of 5.x.

In short

1 new6 faster14 fixed

Release note

Patch Changes

  • Fix stray semicolon emitted before an imported call following a parenthesized sequence element.

  • Make require(esm) module.exports re-export analysis independent of module processing order.

  • Ignore ERR_SERVER_NOT_RUNNING on lazy-compilation backend dispose so compiler.close() succeeds on Bun.

  • Name the failing key when DefinePlugin fails to evaluate a typeof value.

  • Improve Deno compatibility: guard setNoDelay and force-close connections on lazy-compilation backend dispose, and return a real ArrayBuffer from the Node async/sync wasm loader so WebAssembly.instantiate accepts it.

  • Speed up the HTML parser and cut its peak memory: module-scope helpers/state and tokenizer callbacks, plus exact AST column pre-sizing.

  • Track CommonJS build dependencies by parsing sources when require.cache children are unavailable (e.g. Bun).

  • Cook common string-literal escapes on the JS parser fast path and own the tokenizer's cold-path readers.

  • Build the CSS parseA* AST on the SoA store instead of node classes, cutting parse memory and time.

  • Speed up and cut memory of the experimental CSS and HTML parsers: drop two derivable AST node columns, and scan long string, url, comment, and plaintext token bodies natively.

  • Speed up non-modules CSS parsing: skip redundant token re-reads, drop selector-prelude tokens without materializing nodes, allocate rule preludes lazily, and fast-path empty list seals.

  • Speed up stats generation and cut its peak memory: reuse cached sort comparators instead of thrashing the comparator caches on every sort, and drop redundant module-graph lookups and allocations in the extractors.

  • Speed up CSS parsing: byte-range function-name checks, indexed sibling lookahead.

  • Reduce allocations and redundant work across the code-generation, module-concatenation, exports/usage-analysis, hashing, and chunk-splitting hot paths.

  • Enable the Node.js compile cache in the webpack CLI entry point.

  • Encode the persistent cache with V8's value serializer.

  • Speed up SplitChunksPlugin: reject non-subset chunk sets with 64-bit signatures, cache unnamed entry keys, and drop per-module closures.

  • Initialize NormalModule._ast in the constructor so each instance keeps a single hidden-class shape.

  • Reduce allocations in the binary serialization hot paths.

  • Deduplicate and simplify several lib modules and speed up AggressiveMergingPlugin.

  • Rename nested const/let __webpack_require__ and __webpack_exports__ declarations in bundled webpack output.

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.