Migrating to Webpack v5.108.0
Version v5.108.0 introduces 1 breaking change. This guide details how to update your code.
Released: 6/25/2026
1
Breaking Changes
1
Migration Steps
9
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
module.parser.html.sourcesmodule.parser.html.templateoutput.environment.logicalAssignmentoutput.environment.letoptimization.inlineExportscompiler.platformoutput.strictModuleResolutionlocalIdentNamegetConditionBreaking Changes
●Issue #1
CSS `[hash]` in `localIdentName` now resolves to the local ident hash, matching css-loader behavior. Users relying on `[hash]` for the module hash must switch to using `[modulehash]`.
Migration Steps
- 1If you relied on `[hash]` in `localIdentName` to resolve to the module hash, change it to use `[modulehash]` instead.
Release Summary
This release introduces significant enhancements for module resolution, targeting environments like Bun and Deno, alongside major improvements to tree-shaking, HTML module parsing, and runtime code generation using modern JavaScript features like `let`/`const`.
Need More Details?
View the full release notes and all changes for Webpack v5.108.0.
View Full Changelog