3 ms·
> React Native already requires Babel. Could you elaborate on that please? Is it impossible to skip Babel when using React Native? > Not at all. Installation
by ash 10y ago
> React Native already requires Babel.
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.
- nathan_f77 10y agoAh, 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 https://github.com/flowtype/flow-typed/issues/247
- ash 10y agoSure! I'll just note there are more CI systems than CircleCI and TravisCI. Especially on premise and on older distros.
- nathan_f77 10y ago> 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.