Packages

webpack

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

Upgrading webpack From 5.89.0 to 5.112.2

65 releases in betweenevery note read

Other targets from 5.89.0Newest 5.x5.113.0Clears its 3 advisories5.104.1
  1. 5.89.0yours
  2. 8 releases
  3. 5.94.0security
  4. 26 releases
  5. 5.104.0security
  6. 5.104.1security
  7. 11 releases
  8. 5.108.0security
  9. 15 releases
  10. 5.112.2target

Before you upgrade

Tick each one off as you go
  • Breaking5.112.1
  • Breaking5.112.0
  • Breaking5.107.0
  • Breaking5.100.0
  • Deprecated5.112.0
  • Deprecated5.112.0
  • Deprecated5.109.0
  • Deprecated5.106.0

Security

  • Reject __proto__, constructor and prototype path segments in cli.processArguments to prevent prototype pollution.

    5.108.0
  • Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.

    5.104.1
  • Re-validate HttpUriPlugin redirects against allowedUris, restrict to http(s) and add a conservative redirect limit to prevent SSRF and untrusted content inclusion. Redirects failing policy are rejected before caching/lockfile writes.

    5.104.0
  • Fixed DOM clobbering in auto public path

    5.94.0

Release by release

  1. 5.112.2

    23 Oct 20263 fixes
    • Fixed

      Reduce repeated scans when concatenating imported modules.

    • Fixed

      Avoid allocating CSS module sets for single-group chunks.

    • Fixed

      Return the value of every module type loaded with importModule().

  2. 5.112.1

    Migration needed22 Oct 20262 new · 28 fixes
    • Breaking

      Drop more unused functions, arguments, calls, global reads and variable copies when minifying JavaScript.

    • New

      Support concatenateModules with cacheUnaffected.

    • New

      Speed up startup and CSS minification, sharing the compile cache with workers.

    • Fixed

      Rebuild a lazy barrel in watch when what it defers changes, and keep the imports and re-exports it still runs.

  3. 5.112.0

    Migration needed15 Oct 202627 new · 102 fixes
    • Breaking

      Require minimizer-webpack-plugin 5.12, so inline scripts in HTML minify again.

    • Deprecated

      Export more plugins under their scope, move eleven loose exports under theirs, deprecate the old, and expose template.DependencyTemplate, module.NullFactory and util.makeSerializable.

    • Deprecated

      Rename the Harmony* names to ESM* and deprecate the old spellings.

    • New

      Apply plugins set on a multi-configuration array to the MultiCompiler.

  4. 5.111.1

    18 Sep 20261 new · 31 fixes
    • New

      Speed up CSS parsing by stepping over dropped selector preludes in bytes.

    • Fixed

      Throw on a write to an imported binding without losing concatenation.

    • Fixed

      Keep the </html> a page was written with, whatever opened the element.

    • Fixed

      Look an attribute up by what its value decodes to, not how it was spelled.

  5. 5.111.0

    14 Sep 202619 new · 49 fixes
    • New

      Enable output.module by default with futureDefaults on ESM-capable targets.

    • New

      Remove experiments.outputModule, set output.module to emit ESM instead.

    • New

      Add output.copy to copy files and directories into the output directory.

    • New

      Minify inline CSS and JSON via renderEmbeddedSource, exporting webpack's own.

  6. 5.110.3

    1 Sep 202611 fixes
    • Fixed

      Fix import() options, circular reexport severity and namespace writes.

    • Fixed

      Skip ESM interop when require() targets a module outside the concatenation.

    • Fixed

      Fix concatenated require() in a require.ensure callback or a computed request.

    • Fixed

      Keep optimization.minimize a boolean; its options move to minimizeOptions.

  7. 5.110.2

    30 Aug 20267 fixes
    • Fixed

      Fix analyzable ESM baking around cycles, mixed-served wasm and style url maps.

    • Fixed

      Minify more HTML and CSS shorthands, and cut two costs off printing.

    • Fixed

      Report a named import that is never read when it names a missing export.

    • Fixed

      Fix ESM circular reexports, cyclic const TDZ, and defer evaluation order.

    • Fixed

      Stop output.html emitting an unused JS chunk for each generated page.

    • Fixed

      Stop emitting the CSS chunk loading runtime when every CSS chunk is initial.

    • Fixed

      Strip a BOM a loader put on a string, and shift a source map that counted it.

  8. 5.110.1

    27 Aug 20263 fixes
    • Fixed

      Fix a capture-group-less snapshot.managedPaths RegExp; speed up cache writes.

    • Fixed

      Throw SyntaxError, or WebAssembly.CompileError, from an unparsable module.

    • Fixed

      Accept the optimization.minimize: true shorthand set by a plugin in apply().

1 other line we could not sort, mostly version bumps
  • CI fix #19196

    5.98.0

22 internal lines (docs, tests, tooling) left out.

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.