Skip to content

Commit 89a358f

Browse files
rafecafacebook-github-bot
authored andcommitted
Expose enableBabelRuntime config param externally
Summary: Up until now the `enableBabelRuntime` option in the `metro-react-native-preset` package was hardcoded in the transformer: our internal transformer set it to `false` and the opensource one was `true`. This diff now exposes this param out to the config of Metro (now that it's quite easy to expose things) so anybody can set it to false or true. This allows our end to end tests to set it to false to not have to deal with requires to `babel/runtime`. Reviewed By: davidaurelio Differential Revision: D10123776 fbshipit-source-id: 97e744eeb567c8e86ab3c613ac71970d226ed2ca
1 parent 6967a4f commit 89a358f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jest/preprocessor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
options: {
5353
ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
5454
dev: true,
55-
disableBabelRuntime: true,
55+
enableBabelRuntime: false,
5656
experimentalImportSupport: false,
5757
hot: false,
5858
inlineRequires: true,

0 commit comments

Comments
 (0)