Please provide the following:
SDK Version: ~36.0.0
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?
.babelrc:
{
"presets": ["module:metro-react-native-babel-preset"]
}
babel.config.js:
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
wodin
January 15, 2020, 3:34am
2
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.
wodin
January 15, 2020, 11:48am
4
I see. You did not specify that you were using the bare workflow. Then I don’t know the answer to your question, sorry.
system
Closed
February 14, 2020, 3:40pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.