Skip to content

Commit efa2997

Browse files
ngraefhramos
authored andcommitted
ignore babelrc in git-upgrade (facebook#20790)
Summary: Per [this comment on the issue](facebook#20710 (comment)): > 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 facebook#20710 Pull Request resolved: facebook#20790 Differential Revision: D9458502 Pulled By: hramos fbshipit-source-id: 3a0ed7261322fdd9e0c0840f8a3944974f38b233
1 parent b444493 commit efa2997

File tree

1 file changed

+1
-0
lines changed
  • react-native-git-upgrade

1 file changed

+1
-0
lines changed

react-native-git-upgrade/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'use strict';
1111

1212
require('babel-register')({
13+
babelrc: false,
1314
presets: [
1415
require('babel-preset-es2015-node'),
1516
require('babel-preset-stage-3'),

0 commit comments

Comments
 (0)