diff --git a/config/app.webpack.config.js b/config/app.webpack.config.js index 15d8f080..0da45f6d 100644 --- a/config/app.webpack.config.js +++ b/config/app.webpack.config.js @@ -9,6 +9,10 @@ import makeConfig from "./base.webpack.config"; const root = fs.realpathSync(process.cwd()); const outputPath = path.join(root, "build/app"); +import crypto from "crypto"; +const crypto_orig_createHash = crypto.createHash; +crypto.createHash = algorithm => crypto_orig_createHash(algorithm == "md4" ? "sha256" : algorithm); + export default makeConfig({ name: "app", diff --git a/package.json b/package.json index bf32e7a0..bfda974f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "tsconfig.json" ], "engines": { - "node": ">=14 <16", + "node": ">=14", "npm": ">= 5.2.0", "yarn": "^1.13.0" },