Skip to content

Commit f986340

Browse files
authored
fix: set hashFunction to xxhash64 to fix Node 17 compatibility (#6781)
1 parent a38dc8e commit f986340

File tree

1 file changed

+3
-0
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+3
-0
lines changed

packages/@vue/cli-service/lib/config/base.js

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ module.exports = (api, options) => {
1010
const isLegacyBundle = process.env.VUE_CLI_MODERN_MODE && !process.env.VUE_CLI_MODERN_BUILD
1111
const resolveLocal = require('../util/resolveLocal')
1212

13+
// https://github.com/webpack/webpack/issues/14532#issuecomment-947525539
14+
webpackConfig.output.set('hashFunction', 'xxhash64')
15+
1316
// https://github.com/webpack/webpack/issues/11467#issuecomment-691873586
1417
webpackConfig.module
1518
.rule('esm')

0 commit comments

Comments
 (0)