From 48ccafccbf55c44de9cf74ddb4b4a429ef614518 Mon Sep 17 00:00:00 2001 From: ericlewis Date: Tue, 12 Mar 2019 21:48:10 -0700 Subject: [PATCH] Enable inline requires for RNTester (#23881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Turns on inline requires feature for RNTester! 🏎 [General] [Added] - Inline requires for RNTester Pull Request resolved: https://github.com/facebook/react-native/pull/23881 Differential Revision: D14435862 Pulled By: cpojer fbshipit-source-id: b75541d359937326178129371b6db0305731fceb --- rn-cli.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rn-cli.config.js b/rn-cli.config.js index 2733bb8ec..275e1283f 100644 --- a/rn-cli.config.js +++ b/rn-cli.config.js @@ -29,6 +29,12 @@ module.exports = { hasteImplModulePath: require.resolve('./jest/hasteImpl'), }, transformer: { + getTransformOptions: () => ({ + transform: { + experimentalImportSupport: true, + inlineRequires: true, + }, + }), assetRegistryPath: require.resolve('./Libraries/Image/AssetRegistry'), }, };