Strip flow types from production builds #810
Replies: 2 comments 1 reply
-
Hello again 👋 I'm willing to work on it if needed. I just need to know if it was ultimately intentional to ship the flow code or not 🙏 |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is about Flow types in production builds or being shipped with React Native.
I think Babel strips Flow types at build time, so there wouldn't be any Flow types in production builds.
Are you referring to the Flow types being included when installing React Native from NPM? If so, it seems that is no longer the case in 0.81: facebook/react-native@38acb4c. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Heyo all 👋
As you might know, React Native ships with Flow code included when it's installed. I'm curious whether this was intentional for a specific reason. Does it provide some advantages or benefits that we should be aware of?
I'm asking because stripping flow types can simplify the usage of other tools like
@swc/jest
.Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions