diff --git a/packages/config/src/options.js b/packages/config/src/options.js index 16f38e547b..ff90acde9c 100644 --- a/packages/config/src/options.js +++ b/packages/config/src/options.js @@ -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