Packages

webpack

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

Upgrading webpack From 5.106.2 to 5.107.0

1 release in betweenevery note read

Other targets from 5.106.2Newest 5.x5.113.0Latest5.112.2
  1. 5.106.2yours
  2. 5.107.0target

Before you upgrade

Tick each one off as you go
  • Breaking5.107.0

Release by release

  1. 5.107.0

    Migration needed20 May 202614 new · 25 fixes
    • Breaking

      Drop the __webpack_require__, __webpack_require__.d, and __webpack_require__.o runtime helpers from library: { type: "module" } bundles when the on-demand exports source they were emitted for ends up dropped (e.g. a single concatenated entry without an IIFE).

    • New

      Add module.generator.javascript.anonymousDefaultExportName option to control whether webpack sets .name to "default" for anonymous default export functions and classes per ES spec. Defaults to true for applications and false for libraries (when output.library is set) to avoid unnecessary bundle size overhead. Also extract anonymous default export .name fix-up into a shared runtime helper (__webpack_require__.dn), replacing repeated inline Object.defineProperty / Object.getOwnPropertyDescriptor calls with a single short call per module to reduce output size.

    • New

      Support module concatenation (scope hoisting) for CSS modules with text, css-style-sheet, style, and link export types

    • New

      The generator.exportsConvention function form for CSS modules now accepts string in addition to string.

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.