Skip to content

How to use Babel preset with Expo #2753

Answered by tido64
songpola asked this question in Q&A
Discussion options

You must be logged in to vote

Had a quick look at babel-preset-expo, it looks like it imports metro-react-native-babel-preset and adds more things on top of it. @rnx-kit/babel-preset-metro-react-native does the same thing. If you use both, we cannot guarantee that the same version of metro-react-native-babel-preset is used for both. Since you're using Expo, I would stick to only using babel-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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@songpola
Comment options

@tido64
Comment options

@songpola
Comment options

@tido64
Comment options

Answer selected by songpola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants