Packages

webpack

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

Your version

5.62.0

5 Nov 2021Where it was published

5.113.0 is the newest release of 5.x.

In short

4 new5 fixed

Security

Release note

Features

  • Add options to configure export presence checking

    • parser.javascript.reexportExportsPresence: false allows to disable warnings for non-existing exports during the migration from export ... from "..." to export type ... from "..." for type reexports in TypeScript

  • Add experiments.backCompat: false to disable some expensive deprecations for better performance

Bugfixes

  • Use ['catch'] instead of .catch for better ES3 support

  • Fix removed parentheses when using new (require("...")).Something()

  • Fix { require } object literals

  • splitChunks.chunks option is now correctly used for splitChunks.fallbackCacheGroup.maxSize too

  • Fix schema of listen option, allow to omit port

  • Add better support for Promises from different isolates

Developer Experience

  • Add typings for the webpack API that is available within modules

    • use /// <reference types="webpack/module" /> to use the typings in typescript modules

    • or "types": [..., "webpack/module"] in tsconfig

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.