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

arrow function cause yarn run build error #20

Open
vagusX opened this issue Mar 15, 2017 · 1 comment
Open

arrow function cause yarn run build error #20

vagusX opened this issue Mar 15, 2017 · 1 comment

Comments

@vagusX
Copy link

vagusX commented Mar 15, 2017

https://github.com/jscissr/react-polymer/blob/master/index.js#L65

static/js/main.ba291ce8.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [./~/react-polymer/index.js:65,0]

error Command failed with exit code 1.
@jscissr
Copy link
Owner

jscissr commented Mar 15, 2017

This should work when mishoo/UglifyJS#448 is fixed. Until then, you need to use a transpiler, for example Babel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants