question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update or replace uglify-js to handle ES6

See original GitHub issue

Error 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:open
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
vincentfretincommented, Dec 22, 2019

The replacement of uglify is terser https://github.com/terser/terser I use it myself for my own aframe build like this:

npm run dist:max
npm i terser
npx terser --compress -- dist/aframe-master.js >dist/aframe-master.min.js
0reactions
vincentfretincommented, Sep 13, 2022

@dmarcos you can close this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found