ignore babelrc in git-upgrade (#20790)

Summary:
Per [this comment on the issue](https://github.com/facebook/react-native/issues/20710#issuecomment-414631827):

> Babel by default tries to find .babelrc files to configure itself, and once it finds the one from the RN app (which links to the RN preset that only works on Babel 7) it fails.
> The easiest patch to fix this issue is to add babelrc: false to the babel-register method, so Babel does not read any additional .babelrc file.

Fixes #20710
Pull Request resolved: https://github.com/facebook/react-native/pull/20790

Differential Revision: D9458502

Pulled By: hramos

fbshipit-source-id: 3a0ed7261322fdd9e0c0840f8a3944974f38b233
This commit is contained in:
Nick Graef 2018-08-22 10:39:11 -07:00 committed by Facebook Github Bot
parent 8a21abcd6b
commit b4a8630ea5
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@
'use strict';
require('babel-register')({
babelrc: false,
presets: [
require('babel-preset-es2015-node'),
require('babel-preset-stage-3'),