Packages

webpack

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

Your version

5.22.0

15 Feb 2021Where it was published

5.113.0 is the newest release of 5.x.

In short

5 new9 fixed5 changed

Security

2 advisories affect 5.22.0; 5.94.0 fixes them

Release note

Features

  • Generate shorter output code for JSON data by using a '...' string instead of "..." (only affects output side when not minimized)

  • The dependencies configuration option now works for watch builds too

    • It will build compilation when any of dependencies has changed

    • It will wait for compiling until all of dependencies have finished

  • Add parallelism config option on the array of configurations to limit the compilers that are running in parallel

Developer Experience

  • Add hints (Did you mean ...) to resolve errors when

    • resolving fails due to enforceExtension

    • relative request is missing leading ./

  • When all modules of an entrypoint fail resolving and another entrypoints depend(s)On it, webpack no longer crashes with a weird error

  • Add hint to stats how to get details about errors/warnings in child compilations

  • Improve error message for lazyCompilation when using IE11

Bugfixes

  • Async entries e.g. for Workers are now implicitly flagged as "having side effects" even if they are affects by "sideEffects": false

    • in future we might add a warning for this

  • Avoid crash when using this.loadModule (loader) and the loaded module has errors

  • Refactor libraries to inline exporting code into runtime to allow using with output.iife: false

  • Fix invalid code when using define for local modules and arrow functions are supported

  • Fix missing runtime requirement for system.js context

  • Fix parsing of define function, which missed declarations before

  • Avoid unnecessary calls to loaders when serializer are already registered

  • Fix inner graph analysis for exports when export { x } is before pure declaration const x = /*#__PURE__*/ f()

  • Fix hashing order of runtime chunks when there are async entries involved

Contribution

  • CI run tests on node.js 15 too

  • CI run tests on github actions too

Experiments

  • Improvements on experimental output.library: { type: "module" } (experiments.outputModule: true)

    • it can generate export { ... } now, but that can't handle live-bindings yet

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.