Update or replace uglify-js to handle ES6
See original GitHub issueError when minifying DracoLoader source. It looks it’s the only part of THREE js shipping ES6
uglify-js failed on node_modules/super-three/examples/js/loaders/DRACOLoader.js : SyntaxError: Unexpected token: operator (>)
Build still generates but DracoLoader code is not minimized.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Unexpected token: operator (>) | update or replace uglify-js to ...
Hey, so I tried installing terser-webpack-plugin but i'm still getting the same uglify error? I did the following steps - (1) npm uninstall ......
Read more >uglify-js-es6 - npm
Start using uglify-js-es6 in your project by running `npm i ... mangling changing with different inputs (e.g. as you update the input script ......
Read more >Fun surprise: UglifyJS can't ES6 - Swizec Teller
These three lines make it better. preversion runs a command before updating the version number. If the command fails, the version doesn't change...
Read more >gulp-uglify | Yarn - Package Manager
0, the CHANGELOG is maintained on GitHub Releases. Change Log. 1.5.4 (2016-06-22). 1.5.3. Updated UglifyJS to 2.6.2 ...
Read more >Terser vs. Uglify vs. babel-minify: Comparing JavaScript ...
Terser vs. Uglify vs. babel-minify: Comparing JavaScript minifiers. Editor's note: This tutorial was last updated on 1 July 2021 to remove ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The replacement of uglify is terser https://github.com/terser/terser I use it myself for my own aframe build like this:
@dmarcos you can close this issue.