Make our Webpack config compatible with Node 18+
Node 18 and newer switched to OpenSSL 3, which does not support the MD4 hash algorithm. Unfortunately, Webpack 4 hardcodes the use of MD4 at various places. This leaves us no other option than to monkey-patch node to transform calls to the MD4 hash to use SHA256. References: https://github.com/webpack/webpack/issues/14532 https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported/69691525#69691525 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
committed by
Tilman Vatteroth
parent
b1928b77b4
commit
6a916d060a
@@ -107,7 +107,7 @@
|
||||
"xss": "^1.0.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "16.x"
|
||||
"node": ">=16"
|
||||
},
|
||||
"bugs": "https://github.com/hedgedoc/hedgedoc/issues",
|
||||
"keywords": [
|
||||
|
||||
Reference in New Issue
Block a user