webpack-contrib / compression-webpack-plugin

Prepare compressed versions of assets to serve them with Content-Encoding
MIT License
1.41k stars 108 forks source link

fix: compatibility with Node.js@18 #373

Closed alexander-akait closed 9 months ago

alexander-akait commented 9 months ago

This PR contains a:

Motivation / Use-Case

fixes https://github.com/webpack-contrib/compression-webpack-plugin/issues/364

Breaking Changes

No

Additional Info

Compatibility for Node.js@18 and allow to reuse require("crypto").createHash if webpack is lower then https://github.com/webpack/webpack/pull/17628