Repository navigation
How to use Babel preset with Expo #2753
|
I want to use So, should I use only one: or should I use both at the same time? (Also in which order?) |
Replies: 1 comment 4 replies
|
Had a quick look at |
|
I want to use So, should I use only one: or should I use both at the same time? (Also in which order?) |
|
Had a quick look at |
Had a quick look at
babel-preset-expo, it looks like it importsmetro-react-native-babel-presetand adds more things on top of it.@rnx-kit/babel-preset-metro-react-nativedoes the same thing. If you use both, we cannot guarantee that the same version ofmetro-react-native-babel-presetis used for both. Since you're using Expo, I would stick to only usingbabel-preset-expo, and only add what you need from@rnx-kit/babel-preset-metro-react-native. If you know what you need from it, we can at least make it easier for you to import those things.