12

I am developing a React-Native app, which was installed using Expo, that creates .babelrc config with this code:

{
    "presets": ["babel-preset-expo"],
    "env": {
        "development": {
            "plugins": ["transform-react-jsx-source"]
        }
    }
}

Recently I have encountered 2 other libraries that require the installation of other types of babel presets named: "react-native" and "flow".

Question: How can I merge 3 presets?

Eduard
  • 8,437
  • 10
  • 42
  • 64

1 Answers1

14

add them as items to the array of presets

{
    "presets": ["babel-preset-expo","react-native","flow"]
    "env": {
        "development": {
            "plugins": ["transform-react-jsx-source"]
        }
    }
}
Jay Lane
  • 1,379
  • 15
  • 28