Files
react-native/rn-cli.config.js
ericlewis 48ccafccbf Enable inline requires for RNTester (#23881)
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
2019-03-12 21:52:29 -07:00

41 lines
971 B
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const getPolyfills = require('./rn-get-polyfills');
/**
* This cli config is needed for development purposes, e.g. for running
* integration tests during local development or on CI services.
*/
module.exports = {
extraNodeModules: {
'react-native': __dirname,
},
serializer: {
getModulesRunBeforeMainModule: () => [
require.resolve('./Libraries/Core/InitializeCore'),
],
getPolyfills,
},
resolver: {
hasteImplModulePath: require.resolve('./jest/hasteImpl'),
},
transformer: {
getTransformOptions: () => ({
transform: {
experimentalImportSupport: true,
inlineRequires: true,
},
}),
assetRegistryPath: require.resolve('./Libraries/Image/AssetRegistry'),
},
};