2016-07-05 17:05:40 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2016-07-05 17:05:40 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-09-26 19:54:44 +00:00
|
|
|
*
|
|
|
|
* @flow
|
|
|
|
* @format
|
2016-07-05 17:05:40 +00:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2017-07-13 10:30:06 +00:00
|
|
|
const getPolyfills = require('./rn-get-polyfills');
|
|
|
|
|
2016-07-05 17:05:40 +00:00
|
|
|
/**
|
|
|
|
* 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,
|
|
|
|
},
|
2019-01-21 17:08:36 +00:00
|
|
|
serializer: {
|
|
|
|
getModulesRunBeforeMainModule: () => [
|
|
|
|
require.resolve('./Libraries/Core/InitializeCore'),
|
|
|
|
],
|
|
|
|
getPolyfills,
|
|
|
|
},
|
|
|
|
resolver: {
|
|
|
|
hasteImplModulePath: require.resolve('./jest/hasteImpl'),
|
|
|
|
},
|
|
|
|
transformer: {
|
|
|
|
assetRegistryPath: require.resolve('./Libraries/Image/AssetRegistry'),
|
|
|
|
},
|
2016-07-05 17:05:40 +00:00
|
|
|
};
|