mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
perf(config): avoid recursive md4 patching
This commit is contained in:
parent
98cd356659
commit
7fab952528
@ -520,7 +520,7 @@ export function getNuxtConfig (_options) {
|
||||
}
|
||||
|
||||
// Monkey patch crypto.createHash in dev/build to upgrade hashing fnction
|
||||
if (parseInt(process.versions.node.slice(0, 2)) > 16) {
|
||||
if (parseInt(process.versions.node.slice(0, 2)) > 16 && !options.buildModules.some(m => m.name === 'patchMD4')) {
|
||||
options.buildModules.push(function patchMD4 () {
|
||||
const crypto = require('crypto')
|
||||
const _createHash = crypto.createHash
|
||||
|
Loading…
Reference in New Issue
Block a user