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

Not supporting when npm run build #53

Closed
sravanshty opened this issue Nov 5, 2018 · 2 comments
Closed

Not supporting when npm run build #53

sravanshty opened this issue Nov 5, 2018 · 2 comments

Comments

@sravanshty
Copy link

Hello,

I utilized in my sample application, when i start using "npm start" it is working fine. But when i try to build using "npm run build" showing error like Missing( > ) with UglifyJs. Could you please let me know how to resolve this issue.
Thanks in advance.

@sindresorhus
Copy link
Owner

It's up to you to transpile it with Babel if you want to use it in the browser. Uglify doesn't support ES2015 syntax.

If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

If you use Create React App, upgrade to Create React App v2. It supports automatic transpilation of dependencies, which will make this package just work.

@sravanshty
Copy link
Author

Thanks @sindresorhus for your support

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