Re:TypeScript at Slack
by nathan_f77 on Wednesday April 12, 2017 @04:44AM
(#14095891)
> Could you elaborate on that please? Is it impossible to skip Babel when using React Native?
Yes, the React Native packager depends on Babel, and uses a react-native preset. When you start a new project, you get this default .babelrc:
{
"presets": [
"react-native-stage-0"
]
}
They basically wrote their own version of webpack, to solve some performance problems and make development as fast as possible.
Re:TypeScript at Slack
by nathan_f77 on Wednesday April 12, 2017 @04:38AM
(#14095864)
Ah, I see. Well, I'm sure it's common enough that you would have no problems getting it running on CircleCI and TravisCI.
Here's the only issue I found, which is now closed: https://github.com/flowtype/flow-typed/issues/247
Could you elaborate on that please? Is it impossible to skip Babel when using React Native?
> Not at all. Installation is very fast and easy.
(Last time I checked Flow npm package gives you binaries.)
I'm sure Flow installs fine in "standard" environments, like an OSX laptop. I was thinking about more weird places, like CI servers where you can't fully control the environment. I was burned enough about stuff like that in the past.