webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
4.47.0 is the newest release of 4.x.
In short
2 new5 fixed2 changed
Release note
Features
Added
this.modeto the loader API, to allow loaders to choose defaults bymodesimilar to webpacks optionsStack Trace for Errors in rejected Promises from
import()now includes the stack from where theimport()was called
Bugfixes
The Parser can now analyse identifiers in rest patterns too
const { a, ...rest } = obj, whererestconflicts with an imported binding etc.
node: falsenow correctly disables__dirnameand__filenametoo__dirnameand__filenamenow no longer evaluates to something whennode: falseornode.__file/dirname: falseis setif(__dirname !== "")is no longer replaced withif(true)in such scenarios
Prefetching chunks is no executed after the initial module evaluation
This allows to override i. e.
__webpack_public_path__for prefetching too
Fixes a runtime crash when using side-effect-free modules with the DllPlugin
Contribute
CI tests node.js 12 now too
webpack-bot now merges dependabot PRs automatically when status checks succeed
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.