Skip to content

Commit

Permalink
fix warning of root metro config (facebook#27883)
Browse files Browse the repository at this point in the history
Summary:
fix facebook#27620

## Changelog

[Internal] [Fixed] - Fix warning of packager
Pull Request resolved: facebook#27883

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

Differential Revision: D19619571

Pulled By: cpojer

fbshipit-source-id: 3cd6383d9b0f7e133a9253b19ad626fcc93d5bed
  • Loading branch information
sasurau4 authored and facebook-github-bot committed Jan 29, 2020
1 parent b549d0e commit 0f3f6c0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ const getPolyfills = require('./rn-get-polyfills');
* integration tests during local development or on CI services.
*/
module.exports = {
extraNodeModules: {
'react-native': __dirname,
resolver: {
extraNodeModules: {
'react-native': __dirname,
},
},
serializer: {
getPolyfills,
},
getPolyfills,
};

0 comments on commit 0f3f6c0

Please sign in to comment.