We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98cd356 commit 7fab952Copy full SHA for 7fab952
packages/config/src/options.js
@@ -520,7 +520,7 @@ export function getNuxtConfig (_options) {
520
}
521
522
// Monkey patch crypto.createHash in dev/build to upgrade hashing fnction
523
- 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')) {
524
options.buildModules.push(function patchMD4 () {
525
const crypto = require('crypto')
526
const _createHash = crypto.createHash
0 commit comments