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

Compile to ES5? #39

Closed
trungdq88 opened this issue Aug 8, 2018 · 2 comments
Closed

Compile to ES5? #39

trungdq88 opened this issue Aug 8, 2018 · 2 comments

Comments

@trungdq88
Copy link

Can we compile index.js to ES5? create-react-app is complaining when I try to build.

image

@sindresorhus
Copy link
Owner

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.

@trungdq88
Copy link
Author

Thank you

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