Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Adding custom config for babel #345

Closed
seleckis opened this issue Jun 25, 2018 · 2 comments
Closed

Adding custom config for babel #345

seleckis opened this issue Jun 25, 2018 · 2 comments

Comments

@seleckis
Copy link

I want to use babel-plugin-styled-components. To enable this I need to add configuration like this:

{
  "plugins": [
    ["babel-plugin-styled-components", {
      "displayName": false
    }]
  ]
}

in .babelrc. But there is no .babelrc in this project.

Is it possible to add babel config params without ejecting react scripts?

@davidbaiguini
Copy link

davidbaiguini commented Jul 1, 2018

Have a look here: https://github.com/timarney/react-app-rewired

You can create your own version of react-scripts as well as per the documentation here: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#alternatives-to-ejecting

@seleckis
Copy link
Author

seleckis commented Jul 2, 2018

Oh, rewired, right. I have used it before but forgot about it. Thank you.

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