-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dependency-extraction-webpack-plugin: Calculate vendor hash from file…
… output rather than Webpack internal state (#34969) * Use `contentHash` in dependency-extraction-webpack-plugin Webpack 5 recommends using the content hash over the old-style chunk hash for cache invalidation, as the chunk hash can change even if the output does not. dependency-extraction-webpack-plugin will now include the content hash for each content type in the asset file. The `version` field is still present, now as a combined hash for all the content types reported, to maintain backwards compatibility. Fixes #34660 * Don't expose individual assets' contentHashes, it's considered too scary. * Hash assets directly, chunk.contentHash doesn't get updated by minification * Switch hash to match #40503 * Changelog entry
- Loading branch information
Showing
3 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters