mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
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
41 lines
971 B
JavaScript
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'),
|
|
},
|
|
};
|