Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token: punc ()) - version 1.5.2 #6

Closed
steriley opened this issue Mar 24, 2017 · 1 comment
Closed

SyntaxError: Unexpected token: punc ()) - version 1.5.2 #6

steriley opened this issue Mar 24, 2017 · 1 comment
Labels

Comments

@steriley
Copy link

I'm currently including moveto in a project and it appears to work great in development.

However when I attempt a production build with webpack it will throw an error from Uglify:
ERROR in vendor.js from UglifyJs
SyntaxError: Unexpected token: punc ()) [vendor.js:xx,xx]

commenting out the import will allow the build to be successful:
import MoveTo from 'moveto';

Any help appreciated.

@hsnaydd
Copy link
Owner

hsnaydd commented Mar 24, 2017

Hi @steriley
I guess your development environment doesn't support ES2015. But this is my fault. I will fix this problem.

Thanks for your report.

@hsnaydd hsnaydd added the bug label Mar 24, 2017
@hsnaydd hsnaydd assigned hsnaydd and unassigned hsnaydd Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants