v5.107.2
📦 webpackView on GitHub →
🐛 6 fixes🔧 9 symbols
Summary
This patch release focuses heavily on performance improvements, especially around watch mode rebuilds and context resolution overhead, alongside several fixes for caching, lazy compilation activation, and HTML asset hashing.
Migration Steps
- For directory items explicitly watched as contexts, ensure you are using `enhanced-resolve@5.22.0` or newer to benefit from the fix that calls `purge` with `{ exact: true }` to only invalidate the directory entry instead of all contained files' stats.
🐛 Bug Fixes
- Fixed HTML `[contenthash]` for referenced asset and inline-style URL changes.
- Resolved chunk-hash placeholders in chunk URLs embedded into extracted HTML.
- Removed unnecessary `__webpack_require__` runtime helpers in ESM library output with multi-module chunks.
- Fixed runtime `ReferenceError` on the first activation of a lazy-compiled module when `output.library.type` produces a closure-wrapped bundle (`umd`, `umd2`, `amd`, `amd-require`, `system`).
- Filled in missing `entryOptions` when an async block joins an existing entrypoint.
- Fixed slow `require.context()` / dynamic `import()` rebuilds in watch mode by preventing full stat cache purging for context directories.