Skip to content

Commit

Permalink
ignore babelrc in git-upgrade
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ngraef authored Aug 22, 2018
1 parent 9c1ea45 commit af248e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react-native-git-upgrade/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'use strict';

require('babel-register')({
babelrc: false,
presets: [
require('babel-preset-es2015-node'),
require('babel-preset-stage-3'),
Expand Down

0 comments on commit af248e0

Please sign in to comment.