Open MattIPv4 opened 2 years ago
It looks like uglify-es has been deprecated on NPM. Further, terser seems to a more common tool used for compressing JS assets, so we should replace uglify-js with it.
uglify-es
terser
uglify-js
Hopefully this may also resolve issues seen with newer syntax such as top-level await (https://github.com/cdnjs/packages/runs/5103276658?check_suite_focus=true), and issues with bad compression of libraries (https://github.com/cdnjs/packages/issues/1363).
There are other examples of bad compression with uglify-js resulting in broken libraries: see, e.g. https://github.com/firebase/firebase-js-sdk/issues/5962#issuecomment-1035597821
It looks like
uglify-es
has been deprecated on NPM. Further,terser
seems to a more common tool used for compressing JS assets, so we should replaceuglify-js
with it.Hopefully this may also resolve issues seen with newer syntax such as top-level await (https://github.com/cdnjs/packages/runs/5103276658?check_suite_focus=true), and issues with bad compression of libraries (https://github.com/cdnjs/packages/issues/1363).