Skip to content

Commit

Permalink
fix: set hashFunction to xxhash64 to fix Node 17 compatibility (#6781)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Oct 25, 2021
1 parent a38dc8e commit f986340
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@vue/cli-service/lib/config/base.js
Expand Up @@ -10,6 +10,9 @@ module.exports = (api, options) => {
const isLegacyBundle = process.env.VUE_CLI_MODERN_MODE && !process.env.VUE_CLI_MODERN_BUILD
const resolveLocal = require('../util/resolveLocal')

// https://github.com/webpack/webpack/issues/14532#issuecomment-947525539
webpackConfig.output.set('hashFunction', 'xxhash64')

// https://github.com/webpack/webpack/issues/11467#issuecomment-691873586
webpackConfig.module
.rule('esm')
Expand Down

0 comments on commit f986340

Please sign in to comment.