Closed olof-nord closed 1 year ago
Why don't update to webpack5? Is is deprecated
If it is deprecated you can get all webpack configuration and runner from this package and move to own, so you will have access to update deps and start to migrate
appreciating your input!
Feature Proposal
Feature Use Case
With Node.js v17+ removing the
md4
hashing algorithm, the usage of theCompressionPlugin
unfortunately breaks the build.If Webpack 4 is detected, the Node.js createHash function is unfortunately called assuming that "md4" is available.
https://github.com/webpack-contrib/compression-webpack-plugin/blob/v6.1.1/src/index.js#L232
If a project is not able to upgrade from Webpack 4, and thus cannot move to
compression-webpack-plugin
v7+, then it is stuck with Node.js 16 or forced to configure the--openssl-legacy-provider
Node.js flag.I suggest to release a 6.2.0 version of the library, and allow the hashing algorithm to optionally be provided.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationNode.js 18.12.1 webpack 4.46.0 compression-webpack-plugin 6.1.1
This issue is related to this PR which is trying to update mastodon to use Node.js v18. https://github.com/mastodon/mastodon/pull/20586