From b90cbd195a806875a660fd109709780104a68941 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Fri, 1 Jun 2018 06:40:41 -0700 Subject: [PATCH] Rename default RN transformer Differential Revision: D8235001 fbshipit-source-id: 59a4b2f13185dd9be0d33f01589d907d49493a26 --- jest/preprocessor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jest/preprocessor.js b/jest/preprocessor.js index b8264eb21..b9ae6faf2 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -34,7 +34,7 @@ const nodeOptions = babelRegisterOnly.config([nodeFiles]); babelRegisterOnly([]); /* $FlowFixMe(site=react_native_oss) */ -const transformer = require('metro/src/transformer.js'); +const transformer = require('metro/src/reactNativeTransformer'); module.exports = { process(src /*: string */, file /*: string */) { if (nodeFiles.test(file)) { @@ -118,7 +118,7 @@ module.exports = { getCacheKey: createCacheKeyFunction([ __filename, - require.resolve('metro/src/transformer.js'), + require.resolve('metro/src/reactNativeTransformer'), require.resolve('@babel/core/package.json'), ]), };