Packages

webpack

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

Your version

5.105.3

26 Feb 2026Where it was published

5.113.0 is the newest release of 5.x.

In short

4 new8 fixed

Release note

Patch Changes

  • Context modules now handle rejections correctly.

  • Only mark asset modules as side-effect-free when experimental.futureDefaults is set to true, so asset-copying use cases (e.g. import "./x.png") won’t break unless the option is enabled.

  • Add the missing webpack_exports declaration in certain cases when bundling a JS entry together with non-JS entries (e.g., CSS entry or asset module entry).

  • Fixed HMR failure for CSS modules with @import when exportType !== "link". When exportType is not "link", CSS modules now behave like JavaScript modules and don't require special HMR handling, allowing @import CSS to work correctly during hot module replacement.

  • Fixed an issue where empty JavaScript files were generated for CSS-only entry points. The code now correctly checks if entry modules have JavaScript source types before determining whether to generate a JS file.

  • Do not crash when a referenced chunk is not a runtime chunk.

  • Fix some types.

  • Ensure that missing module error are thrown after the interception handler (if present), allowing module interception to customize the module factory.

  • Added createRequire support for ECMA modules.

  • Added category for CJS reexport dependency to fix issues with ECMA modules.

  • Implement immutable bytes for bytes import attribute to match tc39 spec.

  • Fixed deterministic search for graph roots regardless of edge order.

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.