react-native/metro.config.js
Daiki Ihara 0f3f6c0938 fix warning of root metro config (#27883)
Summary:
fix https://github.com/facebook/react-native/issues/27620

## Changelog

[Internal] [Fixed] - Fix warning of packager
Pull Request resolved: https://github.com/facebook/react-native/pull/27883

Test Plan: - run `./scripts/packager.sh` and no warning displayed

Differential Revision: D19619571

Pulled By: cpojer

fbshipit-source-id: 3cd6383d9b0f7e133a9253b19ad626fcc93d5bed
2020-01-29 03:53:42 -08:00

29 lines
570 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 = {
resolver: {
extraNodeModules: {
'react-native': __dirname,
},
},
serializer: {
getPolyfills,
},
};