Files
hedgedoc-hedgeagent/webpack.common.js
David Mehren 6a916d060a 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>
2023-05-29 11:23:21 +02:00

14 KiB