ezekielaquino / Marquee3000

Marquees for the new millenium
https://ezekielaquino.com/2019/marquee
MIT License
438 stars 81 forks source link

Issue with UglifyJs: Unexpected token: name (Marquee3k) #11

Open dayneh88 opened 6 years ago

dayneh88 commented 6 years ago

The package is working great but my terminal keeps throwing this error whenever I compile my bundle.js

More annoying than anything haha.

RyanGosden commented 6 years ago

Same here. Works fine when testing in dev, but ugifying it for production throws an error. @dayneh88 - Did you manage to get to the bottom of the issue?

Update: issue is due to uglifyJS not being able to handle ES6 syntax.

kennycrosby commented 6 years ago

Same issue, @RyanGosden did you figure it out?

Edit: I had to update my uglifyjs version

moay commented 5 years ago

Just stumbled upon this. The classname seems to be an issue. Just use the minified version of the script.