Skip to content

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

Closed

Description

@matthewdordal

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

  1. Timer commented on Mar 5, 2018

    @Timer
    Contributor

    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.

  2. djfdev commented on Apr 23, 2018

    @djfdev

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

  3. miraage commented on Apr 23, 2018

    @miraage

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

  4. alexcroox commented on Jul 18, 2018

    @alexcroox

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

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

  5. locked and limited conversation to collaborators on Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions