diff --git a/webpack.config.js b/webpack.config.js index 83d469a8..aae4b99b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,6 +6,13 @@ const VersionPlugin = require('./build/version_plugin'); const AndroidIndexPlugin = require('./build/android_index_plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); +// Fix for node 18+ +// See: +const crypto = require('crypto'); +const crypto_orig_createHash = crypto.createHash; +crypto.createHash = algorithm => + crypto_orig_createHash(algorithm == 'md4' ? 'sha256' : algorithm); + const webJsOptions = { babelrc: false, presets: [