Babel.config.js or .babelrc?

Please provide the following:

  1. SDK Version: ~36.0.0
  2. Platforms: all

Why do we have 2 files for babel? First .babelrc and second babel.config.js. Can I remove .babelrc? If so, where to add module:metro-react-native-babel-preset?


  "presets": ["module:metro-react-native-babel-preset"]


module.exports = function(api) {
  return {
    presets: ['babel-preset-expo'],

If you run expo init to create a new app you’ll see that there is no .babelrc so I suspect you can get rid of it.

No. If I run expo init for bare workflow then I get .babelrc.
If I run expo init for manage workflow then I don’t get .babelrc.

But I use bare workflow.

I see. You did not specify that you were using the bare workflow. Then I don’t know the answer to your question, sorry.

Ok, thanks.

Expo, help me, please.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.