mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-11 19:24:32 +08:00
Differential Revision: D14472633 Original commit changeset: b7ea92ee130d fbshipit-source-id: ed5bce3ba4a39c8b60e787cb678747231583f6f5
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'),
|
|
},
|
|
};
|