Created
November 28, 2018 22:51
-
-
Save TimoGlastra/b9ba48b3451504a2afab4fab25c86aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "./babel.config.js" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Because of a bug in react-native / babel / jest the presets can't be read | |
// from the .babelrc file. So the .babelrc extends this file, cause react-native needs .babelrc | |
module.exports = function(api) { | |
api.cache(true); | |
return { | |
presets: ["module:metro-react-native-babel-preset"], | |
plugins: ["@babel/plugin-transform-runtime"] | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment