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

Why code works with react-app preset? #21

Open
bondom opened this issue Nov 20, 2017 · 0 comments
Open

Why code works with react-app preset? #21

bondom opened this issue Nov 20, 2017 · 0 comments

Comments

@bondom
Copy link

bondom commented Nov 20, 2017

There is used next code to enable import and jsx:
require('babel-register')({ ignore: /\/(build|node_modules)\//, presets: ['env','react-app'] })

But at the same time next code also works(react-app was changed to react):
require('babel-register')({ ignore: /\/(build|node_modules)\//, presets: ['env','react'] })

As I understand there is used babel-preset-react. But I can’t understand why it works with react-app..

Please explain this moment..

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

1 participant