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

Pre-compiled for ES5 #11

Closed
jakubgereg opened this issue Jun 15, 2018 · 1 comment
Closed

Pre-compiled for ES5 #11

jakubgereg opened this issue Jun 15, 2018 · 1 comment

Comments

@jakubgereg
Copy link

Im trying to use this package with my React app, but it will get build fails.

Failed to minify the code from this file:
./node_modules/round-to/index.js:17

Could this package be pre-compiled to ES5?

Thanks

@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.

Repository owner locked as resolved and limited conversation to collaborators Jun 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants