You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
babel-preset-react-app with babel-preset-env #4068
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.
Activity
miraage commentedon Feb 23, 2018
https://github.com/facebook/create-react-app/blob/v1.1.1/packages/babel-preset-react-app/index.js
It uses
babel-preset-env.Timer commentedon 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 thesrc/directory.djfdev commentedon Apr 23, 2018
Is there a way to configure
babel-preset-envwhen using it via thebabel-preset-react-apppackage?miraage commentedon Apr 23, 2018
@djfdev atm it is only supported if you
ejectapplication.alexcroox commentedon Jul 18, 2018
@miraage doesn't
babel-preset-envusebrowserslistso you could add the key to yourpackage.jsonto configure?"browserslist": ["> 1%", "IE 10"]