hsnaydd/moveTo

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

steriley opened this issue · 1 comments

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.

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.