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

Failed to minify code from this file #84

Closed
Eason-Wu opened this issue Aug 27, 2018 · 1 comment
Closed

Failed to minify code from this file #84

Eason-Wu opened this issue Aug 27, 2018 · 1 comment

Comments

@Eason-Wu
Copy link

It occured an error when use it with create-react-app. because of socre code wrote with ES6, can you please release an ES5 libs ?

@sindresorhus
Copy link
Member

This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: sindresorhus/ama#446

I'm sorry that create-react-app is lacking in this aspect, but it's up to them to support the community. Each package should not be required to specially support create-react-app. Please do open an issue on create-react-app about this pain point.

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