Packages

webpack

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

Your version

5.25.0

12 Mar 2021Where it was published

5.113.0 is the newest release of 5.x.

In short

1 deprecated6 new5 fixed

  • Deprecated

    Deprecate output.strictModuleExceptionHandling (this is the CommonJS way of handling errors, and the name is weird)

Security

2 advisories affect 5.25.0; 5.94.0 fixes them

Release note

Features

  • Refactor the startup logic to improve library support

  • Add __webpack_runtime_id__ to access the current runtime id

  • Improve error handling for HMR

    • add second argument to self accept error handler to pass new module and module id

    • add error handler argument to dependency accept, passing error and module ids

  • Add output.strictModuleErrorHandling to opt into stricter evaluation error handling semantics according to ESM spec

    • used by default when HMR is enabled

  • When ignoring a module used by new URL() this will result in an url to a empty file ("data:,")

  • Add module.generator.asset.emit option to disable creating assets from asset modules (e. g. for SSR)

Bugfixes

  • Fix problem when library options apply to a non-runtime chunk

  • Fix crash in splitChunks.maxSize where negative indicies are accessed

  • Fix sub-optimal splitting of splitChunks.maxSize in some cases when multiple size types are involved

  • Fix a memory leak in AssetGenerator

  • Fix usage of runtime globals in SharedPlugin to support HMR updates

Deprecations

  • Deprecated

    Deprecate output.strictModuleExceptionHandling (this is the CommonJS way of handling errors, and the name is weird)

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.