Packages

webpack

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

Your version

4.32.0

20 May 2019Where it was published

4.47.0 is the newest release of 4.x.

In short

2 new5 fixed2 changed

Release note

Features

  • Added this.mode to the loader API, to allow loaders to choose defaults by mode similar to webpacks options

  • Stack Trace for Errors in rejected Promises from import() now includes the stack from where the import() was called

Bugfixes

  • The Parser can now analyse identifiers in rest patterns too

    • const { a, ...rest } = obj, where rest conflicts with an imported binding etc.

  • node: false now correctly disables __dirname and __filename too

  • __dirname and __filename now no longer evaluates to something when node: false or node.__file/dirname: false is set

    • if(__dirname !== "") is no longer replaced with if(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.