kitze / custom-react-scripts

[DEPRECATED, use customize-cra] Allow custom config for create-react-app without ejecting
https://custom-react-scripts.netlify.com
MIT License
993 stars 97 forks source link

question about decorators #67

Closed smmoosavi closed 7 years ago

smmoosavi commented 7 years ago

I read your code and I can't find how decorator added to babel

I find this code in customizers.js file and how getCustomConfig function use toArray value. But I can't find where babelPlugins variable used.

can you help me I find where babelPlugins value added to babel config?

kitze commented 7 years ago

The point of this fork is to add decorators by just adding: REACT_APP_DECORATORS=true to an .env file in your project root. You don't have to mess with babel.