From 7e2f3d2b5ca7142a336c763588da4e334c0d261a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 14 Dec 2021 09:13:48 +0100 Subject: [PATCH] webpack: Drop obsolete md4 hash hack webpack 5.54 solved this properly, bump the dependency. --- package.json | 4 ++-- webpack.config.js | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index ef8ba5f..ae24af9 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "stdio": "^2.1.0", "string-replace-loader": "^3.0.0", "terser-webpack-plugin": "^5.1.4", - "webpack": "^5.31.0", - "webpack-cli": "^4.6.0" + "webpack": "^5.54.0", + "webpack-cli": "^4.9.1" }, "dependencies": { "@patternfly/patternfly": "4.159.1", diff --git a/webpack.config.js b/webpack.config.js index 667a58c..5c2bdd4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,11 +8,6 @@ const CompressionPlugin = require("compression-webpack-plugin"); const ESLintPlugin = require('eslint-webpack-plugin'); const CockpitPoPlugin = require("./src/lib/cockpit-po-plugin"); -// HACK: OpenSSL 3 does not support md4 any more, but webpack hardcodes it all over the place: https://github.com/webpack/webpack/issues/13572 -const crypto = require("crypto"); -const crypto_orig_createHash = crypto.createHash; -crypto.createHash = algorithm => crypto_orig_createHash(algorithm == "md4" ? "sha256" : algorithm); - /* A standard nodejs and webpack pattern */ const production = process.env.NODE_ENV === 'production';