webpack-contrib / terser-webpack-plugin

Terser Plugin
MIT License
1.95k stars 157 forks source link

fix: compatibility with Node.js@18 #608

Closed Fitz6 closed 3 months ago

Fitz6 commented 3 months ago

This PR contains a:

Motivation / Use-Case

Similar to https://github.com/webpack-contrib/compression-webpack-plugin/pull/373

Related to https://github.com/webpack/webpack/pull/17659.

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

linux-foundation-easycla[bot] commented 3 months ago

CLA Signed


The committers listed above are authorized under a signed CLA.

Fitz6 commented 3 months ago

I am fine with it, can you accept CLA?

done.