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

babel-preset-react-app with babel-preset-env #4068

Closed
matthewdordal opened this issue Feb 23, 2018 · 5 comments
Closed

babel-preset-react-app with babel-preset-env #4068

matthewdordal opened this issue Feb 23, 2018 · 5 comments

Comments

@matthewdordal
Copy link

I see that creat-react-app includes the babel-preset-react-app plugin for babel. Can I use this plugin with babel-preset-env or is that not necessary? I am not really sure what babel-preset-react-app includes.

@miraage
Copy link

miraage commented Feb 23, 2018

@Timer
Copy link
Contributor

Timer commented Mar 5, 2018

It's unnecessary as we already include it 😄. Take a peek at the source to see what it includes as advised above!

Please note that if you're using CRA (react-scripts) configuring babel is unnecessary and will "just work" for any files in the src/ directory.

@djfdev
Copy link

djfdev commented Apr 23, 2018

Is there a way to configure babel-preset-env when using it via the babel-preset-react-app package?

@miraage
Copy link

miraage commented Apr 23, 2018

@djfdev atm it is only supported if you eject application.

@alexcroox
Copy link

@miraage doesn't babel-preset-env use browserslist so you could add the key to your package.json to configure?

"browserslist": ["> 1%", "IE 10"]

@lock lock bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants