mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
6dd9d16833
Summary: Move the returned type of `getPolyfills` from a standard `Array` to a read-only one, so that we make sure the array is not modified once created. Also, refactor the list of polyfills included by default to a generic, central file, then require it both from the CLI utils as well as the development server. Reviewed By: jeanlauliac Differential Revision: D5406553 fbshipit-source-id: ab980288bb1c625338de469da77dd6fc70bcedbc
23 lines
618 B
JavaScript
23 lines
618 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
'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,
|
|
},
|
|
getPolyfills,
|
|
};
|