Packages

webpack

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

Upgrading webpack From 4.2.0 to 4.47.0

104 releases in betweenevery note read

Other targets from 4.2.0Latest5.112.2
  1. 4.2.0yours
  2. 52 releases
  3. 4.27.1breaking
  4. 38 releases
  5. 4.41.3security
  6. 11 releases
  7. 4.47.0target

Before you upgrade

Tick each one off as you go
  • Breaking4.27.1
  • Deprecated4.16.0
  • Deprecated4.16.0
  • Deprecated4.16.0
  • Deprecated4.16.0
  • Deprecated4.16.0

Security

  • Force upgrade terser-webpack-plugin dependency for security fix (not affecting webpack)

    4.41.3

Release by release

  1. 4.47.0

    6 Sep 20231 new
    • New
      • Add support for md4 in Node >=18.

  2. 4.46.0

    11 Jan 20211 fix
    • Fixed

      Fix behavior of defaults for resolve.roots to be backward-compatible

  3. 4.45.0

    8 Jan 20211 new · 2 fixes
    • New

      Resolve server-relative requests relative to project context by default

    • Fixed

      Fix a bug where splitChunk minSize is not handled correctly

    • Fixed

      Fix a bug where the order of splitChunk cacheGroups is not handled correctly

  4. 4.44.2

    17 Sep 20201 fix
    • Fixed

      Make sure to generate correct chunk connection for blocks that are only connected in some runtimes

  5. 4.44.1

    30 Jul 20201 new · 1 fix
    • New

      Add missing optional peerDependencies for webpack-cli and webpack-command to support Yarn 2

    • Fixed

      Fix bug in sideEffects optimization when using export * from "non-esm" and a default export.

  6. 4.44.0

    24 Jul 20203 new · 3 fixes
    • New

      Improve sideEffects flag behavior when dynamic modules are part of the tree

    • New

      Add splitChunks.enforceSizeThreshold to allow enfore splitting larger chunks unrelated from other limiations

    • New

      Add support for resolve.roots and default resolve.roots: [context]

    • Fixed

      Fix bug where splitChunks produced non-optimal results when minSize is set to 0

    • Fixed

      Fix bug which lead to HMR not working for splitChunks in entrypoints

    • Fixed

      Force update watchpack and chokidar for chokidar bugfix which causes files to stop being watched

  7. 4.43.0

    21 Apr 20201 new
    • New

      Add module.hot.invalidate() to HMR API

  8. 4.42.1

    24 Mar 20202 fixes
    • Fixed

      Update webassemblyjs dependencies for instruction update

    • Fixed

      Update mkdirp dependency for security reasons

6 other lines we could not sort, mostly version bumps
  • Disallow cache group named test with shorthand syntax to point out a potential config error

    4.41.0
  • CI tests node.js 12 now too

    4.32.0
  • webpack-bot now merges dependabot PRs automatically when status checks succeed

    4.32.0
  • Run prettier on examples markdown

    4.30.0
  • Functions imports with i64 parameters or return values

    4.10.0
  • Memory and table imports

    4.10.0

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