Closed pPanda-beta closed 2 years ago
I guess the version of uglifyjs doesn’t support es6.
Minimalistic test data :
<script> const x = 123; const y = () => { console.log("Nothing"); }; </script>
Expected output:
<script>const x=123,y=()=>{console.log("Nothing")};</script>
Suggestions: Please use babel-minify along with uglifyjs.
Please see https://github.com/kangax/html-minifier/issues/1040
uglifyjs.
This does not support ES6. And uglify-es has also many issues. terseris the new solution now.
terser
Closing as duplicate of #1040.
I guess the version of uglifyjs doesn’t support es6.
Minimalistic test data :
Expected output:
Suggestions: Please use babel-minify along with uglifyjs.