Packages

webpack

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

Upgrading webpack From 5.1.1 to 5.94.0

164 releases in betweenevery note read

Other targets from 5.1.1Newest 5.x5.113.0Latest5.112.2
  1. 5.1.1yours
  2. 121 releases
  3. 5.67.0breaking
  4. 10 releases
  5. 5.76.0security
  6. 30 releases
  7. 5.94.0target

Before you upgrade

Tick each one off as you go
  • Breaking5.67.0
  • Deprecated5.25.0

Security

Fixes 2 advisories affecting 5.1.1

  • Fixed DOM clobbering in auto public path

    5.94.0
  • 5.76.0

Release by release

  1. 5.94.0

    Security fix22 Aug 20244 new · 8 fixes
    • Security

      Fixed DOM clobbering in auto public path

    • New

      Added runtime condition for harmony reexport checked

    • New

      Added new external type "module-import"

    • New

      Support webpackIgnore for new URL() construction

  2. 5.93.0

    11 Jul 20243 new · 6 fixes
    • New

      Added the binary generator option for asset modules to explicitly keep source maps produced by loaders

    • New

      Added the modern-module library value for tree shakable output

    • New

      Added the overrideStrict option to override strict or non-strict mode for javascript modules

    • Fixed

      Generate correct relative path to runtime chunks

  3. 5.92.1

    19 Jun 20241 fix
    • Fixed

      Doesn't crash with an error when the css experiment is enabled and contenthash is used

  4. 5.92.0

    11 Jun 202412 new · 18 fixes
    • New

      Added platform target properties to compiler

    • New

      Improved multi compiler cache location and validating it

    • New

      Support import attributes spec (with keyword)

    • New

      Support node: prefix for Node.js core modules in runtime code

  5. 5.91.0

    20 Mar 20247 new · 10 fixes
    • New

      Allow to customize the stage of BannerPlugin

    • New

      Support CSS exports convention

    • New

      Support CSS local ident name

    • New

      Support __webpack_nonce__ for CSS chunks

  6. 5.90.3

    19 Feb 20241 new · 4 fixes
    • New

      Simplify and optimize chunk graph creation

    • Fixed

      Don't mangle when destructuring a reexport

    • Fixed

      Types for Stats.toJson() and Stats.toString()

    • Fixed

      Many internal types

    • Fixed

      Clean up export css local vars

  7. 5.90.2

    15 Feb 20247 fixes
    • Fixed

      Use Math.imul in fnv1a32 to avoid loss of precision, directly hash UTF16 values

    • Fixed

      The setStatus() of the HMR module should not return an array, which may cause infinite recursion

    • Fixed

      __webpack_exports_info__.xxx.canMangle shouldn't always same as default

    • Fixed

      Mangle export with destructuring

    • Fixed

      Use new runtime to reconsider skipped connections activeState

    • Fixed

      Make dynamic import optional in try/catch

    • Fixed

      Improve auto publicPath detection

  8. 5.90.1

    1 Feb 20244 new · 3 fixes
    • New

      Add fallback for MIME mismatch error in async wasm loading

    • New

      Optimize compareStringsNumeric

    • New

      Optimize numberHash using 32-bit FNV1a for small ranges, 64-bit for larger

    • New

      Reuse VM context across webpack magic comments

    • Fixed

      Set unmanagedPaths in defaults

    • Fixed

      Correct preOrderIndex and postOrderIndex

    • Fixed

      Browsers versions of ECMA features

80 other lines we could not sort, mostly version bumps
  • Significantly improve TypeScript coverage for Library Plugins

    5.88.1
  • Significantly improve type coverage for Dependency, Runtime, Template classes

    5.88.0
  • Increase parser API types in internal plugins across dependency plugins @alexander-akait

    5.87.0
  • Improve type coverage for Json Module type and lazy load json-assertions package

    5.86.0
  • Use global runtime constants for webpack exports

    5.85.0
  • Increase type coverage for serialization classes

    5.84.0
  • Increase type coverage for JavascriptParser and ModuleDependency subclasses

    5.84.0
  • Increase type coverage to strict-mode quality for Configuration/Normalization objects

    5.84.0
  • Refactor duplicate strings by replacing them with constant for webpack_require instead of string literal

    5.84.0
  • Document compilation.afterChunks hook

    5.83.0

92 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.