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
CRA already has decent support of Flow: the user can simply create CRA project, install Flow and just use it. It is possible because Babel config includes necessary Flow-related plugins. Ideally, I'd like CRA team to consider adding babel-plugin-transform-flow-enums to Babel config. The required runtime dependency flow-enums-runtime can be added by the user, whenever they actually consider using Flow (and its enums).
Describe alternatives you've considered
Craco and the rest of solutions for extending CRA configs were considered. Personally, I'd like to avoid them because of possible issues with upgrading CRA versions in the future and simply because those are like Pandora's boxes.
Another alternative solution I'd consider is having a separate template (alike TypeScript) for Flow projects: create-react-app my-project --template flowtype. This can also help moving existing Flow-related plugins out of default settings (if it can make users life easier in any way). (Edit: I forgot templates don't change configs)
Activity