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
- 1
- change to make
- 0
- advisories fixed
- 14
- new
- 25
- fixes
Before you upgrade
Tick each one off as you go- Breaking5.107.0
Release by release
- Breaking
Drop the
__webpack_require__,__webpack_require__.d, and__webpack_require__.oruntime helpers fromlibrary: { 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.anonymousDefaultExportNameoption to control whether webpack sets.nameto"default"for anonymous default export functions and classes per ES spec. Defaults totruefor applications andfalsefor libraries (whenoutput.libraryis set) to avoid unnecessary bundle size overhead. Also extract anonymous default export.namefix-up into a shared runtime helper (__webpack_require__.dn), replacing repeated inlineObject.defineProperty/Object.getOwnPropertyDescriptorcalls 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, andlinkexport types - New
The
generator.exportsConventionfunction form for CSS modules now acceptsstringin addition tostring.
- Breaking
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.