Making babel to use the babelrc file if we find it
Making babel to use the babelrc file if we find it

Summary:
This PR tells babel where the babelrc file is if it has been found in the project root. I know you guys are relying on babel to find it when you tell babel the filename and sourceFilename, this works fine in normal js/node projects, here is an example where this will not work.

We have a big repo that can contain a few react-native / js projects. Our build system is similar to BUCK and we keep our third party dependencies in a separate folder (having a global package.json at the project route is not feasible as everyone will have to install every apps dependencies even when they don't need them), the structure looks a bit like this:

`third_party/js/.` packages from node_modules
`common/js/` common code used by numerous apps, common components, services etc.
`my_app/native` the app

What's happening is something from `my_app/native` (where the .babelrc file is) is requiring something from `common/js` which is then requiring something from `third_party/js` and so babel has no idea what .babelrc file to use and
Closes https://github.com/facebook/react-native/pull/8131

Differential Revision: D4167844

Pulled By: hramos

fbshipit-source-id: 3569981e26ff8f8c632d8ae365a1f43a3483b13b

doochik/react-native,shrutic123/react-native,mironiasty/react-native,skevy/react-native,tszajna0/react-native,CodeLinkIO/react-native,lprhodes/react-native,clozr/react-native,PlexChat/react-native,satya164/react-native,Swaagie/react-native,pandiaraj44/react-native,Maxwell2022/react-native,imjerrybao/react-native,esauter5/react-native,Purii/react-native,lprhodes/react-native,forcedotcom/react-native,adamjmcgrath/react-native,tadeuzagallo/react-native,cpunion/react-native,orenklein/react-native,janicduplessis/react-native,chnfeeeeeef/react-native,DannyvanderJagt/react-native,ankitsinghania94/react-native,imDangerous/react-native,adamjmcgrath/react-native,Maxwell2022/react-native,cpunion/react-native,hoastoolshop/react-native,kesha-antonov/react-native,Bhullnatik/react-native,facebook/react-native,jadbox/react-native,peterp/react-native,callstack-io/react-native,hammerandchisel/react-native,farazs/react-native,facebook/react-native,formatlos/react-native,jasonnoahchoi/react-native,salanki/react-native,adamjmcgrath/react-native,orenklein/react-native,gitim/react-native,pandiaraj44/react-native,Andreyco/react-native,aaron-goshine/react-native,farazs/react-native,thotegowda/react-native,aaron-goshine/react-native,skevy/react-native,farazs/react-native,imDangerous/react-native,Livyli/react-native,Guardiannw/react-native,ndejesus1227/react-native,xiayz/react-native,thotegowda/react-native,janicduplessis/react-native,shrutic/react-native,brentvatne/react-native,tszajna0/react-native,satya164/react-native,imDangerous/react-native,jevakallio/react-native,DannyvanderJagt/react-native,alin23/react-native,clozr/react-native,exponentjs/react-native,formatlos/react-native,Livyli/react-native,skevy/react-native,PlexChat/react-native,shrutic/react-native,myntra/react-native,gitim/react-native,jasonnoahchoi/react-native,myntra/react-native,DannyvanderJagt/react-native,eduardinni/react-native,happypancake/react-native,exponent/react-native,chnfeeeeeef/react-native,tsjing/react-native,myntra/react-native,javache/react-native,doochik/react-native,exponent/react-native,cosmith/react-native,gilesvangruisen/react-native,shrutic/react-native,cdlewis/react-native,tsjing/react-native,tszajna0/react-native,salanki/react-native,jevakallio/react-native,pandiaraj44/react-native,javache/react-native,DannyvanderJagt/react-native,eduardinni/react-native,orenklein/react-native,lprhodes/react-native,facebook/react-native,formatlos/react-native,peterp/react-native,forcedotcom/react-native,Andreyco/react-native,tszajna0/react-native,DanielMSchmidt/react-native,jadbox/react-native,Livyli/react-native,tadeuzagallo/react-native,frantic/react-native,tszajna0/react-native,htc2u/react-native,chnfeeeeeef/react-native,negativetwelve/react-native,jadbox/react-native,mironiasty/react-native,cosmith/react-native,aaron-goshine/react-native,Ehesp/react-native,makadaw/react-native,arthuralee/react-native,dikaiosune/react-native,Guardiannw/react-native,imDangerous/react-native,Maxwell2022/react-native,gilesvangruisen/react-native,eduardinni/react-native,formatlos/react-native,forcedotcom/react-native,shrutic123/react-native,hammerandchisel/react-native,jevakallio/react-native,gitim/react-native,csatf/react-native,satya164/react-native,shrutic123/react-native,happypancake/react-native,Ehesp/react-native,cosmith/react-native,kesha-antonov/react-native,imDangerous/react-native,hoangpham95/react-native,arthuralee/react-native,jasonnoahchoi/react-native,shrutic/react-native,happypancake/react-native,brentvatne/react-native,salanki/react-native,pandiaraj44/react-native,PlexChat/react-native,jevakallio/react-native,alin23/react-native,adamjmcgrath/react-native,myntra/react-native,lprhodes/react-native,esauter5/react-native,brentvatne/react-native,Guardiannw/react-native,alin23/react-native,cosmith/react-native,Ehesp/react-native,clozr/react-native,htc2u/react-native,jevakallio/react-native,peterp/react-native,tsjing/react-native,forcedotcom/react-native,facebook/react-native,hammerandchisel/react-native,Guardiannw/react-native,salanki/react-native,hammerandchisel/react-native,clozr/react-native,mironiasty/react-native,htc2u/react-native,myntra/react-native,facebook/react-native,aaron-goshine/react-native,Livyli/react-native,shrutic123/react-native,aljs/react-native,negativetwelve/react-native,tszajna0/react-native,forcedotcom/react-native,janicduplessis/react-native,exponentjs/react-native,adamjmcgrath/react-native,DanielMSchmidt/react-native,kesha-antonov/react-native,Guardiannw/react-native,jadbox/react-native,thotegowda/react-native,DanielMSchmidt/react-native,xiayz/react-native,imDangerous/react-native,formatlos/react-native,exponent/react-native,janicduplessis/react-native,esauter5/react-native,Swaagie/react-native,Purii/react-native,rickbeerendonk/react-native,Andreyco/react-native,skevy/react-native,mironiasty/react-native,gilesvangruisen/react-native,happypancake/react-native,brentvatne/react-native,shrutic123/react-native,Bhullnatik/react-native,janicduplessis/react-native,esauter5/react-native,esauter5/react-native,cosmith/react-native,charlesvinette/react-native,Andreyco/react-native,mironiasty/react-native,cpunion/react-native,facebook/react-native,rickbeerendonk/react-native,csatf/react-native,facebook/react-native,thotegowda/react-native,aljs/react-native,htc2u/react-native,Guardiannw/react-native,negativetwelve/react-native,callstack-io/react-native,shrutic/react-native,eduardinni/react-native,cpunion/react-native,adamjmcgrath/react-native,alin23/react-native,imjerrybao/react-native,charlesvinette/react-native,ptmt/react-native-macos,cdlewis/react-native,dikaiosune/react-native,Swaagie/react-native,brentvatne/react-native,javache/react-native,adamjmcgrath/react-native,callstack-io/react-native,myntra/react-native,Ehesp/react-native,ptmt/react-native-macos,pandiaraj44/react-native,ptomasroos/react-native,charlesvinette/react-native,Swaagie/react-native,cdlewis/react-native,tsjing/react-native,CodeLinkIO/react-native,adamjmcgrath/react-native,hoastoolshop/react-native,javache/react-native,makadaw/react-native,hoangpham95/react-native,csatf/react-native,exponent/react-native,ankitsinghania94/react-native,rickbeerendonk/react-native,arthuralee/react-native,csatf/react-native,Livyli/react-native,farazs/react-native,Bhullnatik/react-native,exponentjs/react-native,clozr/react-native,cpunion/react-native,ptmt/react-native-macos,cpunion/react-native,eduardinni/react-native,DannyvanderJagt/react-native,CodeLinkIO/react-native,eduardinni/react-native,gilesvangruisen/react-native,CodeLinkIO/react-native,tadeuzagallo/react-native,rickbeerendonk/react-native,clozr/react-native,alin23/react-native,xiayz/react-native,exponentjs/react-native,myntra/react-native,formatlos/react-native,mironiasty/react-native,cpunion/react-native,orenklein/react-native,charlesvinette/react-native,salanki/react-native,satya164/react-native,Swaagie/react-native,ankitsinghania94/react-native,ptomasroos/react-native,ptmt/react-native-macos,PlexChat/react-native,javache/react-native,csatf/react-native,gitim/react-native,dikaiosune/react-native,clozr/react-native,farazs/react-native,hoangpham95/react-native,csatf/react-native,kesha-antonov/react-native,ptomasroos/react-native,gitim/react-native,rickbeerendonk/react-native,ankitsinghania94/react-native,kesha-antonov/react-native,xiayz/react-native,chnfeeeeeef/react-native,doochik/react-native,frantic/react-native,xiayz/react-native,imjerrybao/react-native,exponent/react-native,rickbeerendonk/react-native,chnfeeeeeef/react-native,satya164/react-native,ankitsinghania94/react-native,Guardiannw/react-native,formatlos/react-native,esauter5/react-native,aaron-goshine/react-native,hoangpham95/react-native,Guardiannw/react-native,ptomasroos/react-native,salanki/react-native,skevy/react-native,hoastoolshop/react-native,ankitsinghania94/react-native,shrutic/react-native,gilesvangruisen/react-native,hoangpham95/react-native,facebook/react-native,ptomasroos/react-native,jasonnoahchoi/react-native,DanielMSchmidt/react-native,doochik/react-native,Maxwell2022/react-native,CodeLinkIO/react-native,tadeuzagallo/react-native,farazs/react-native,hammerandchisel/react-native,negativetwelve/react-native,Bhullnatik/react-native,jevakallio/react-native,facebook/react-native,callstack-io/react-native,satya164/react-native,Bhullnatik/react-native,hoastoolshop/react-native,cdlewis/react-native,chnfeeeeeef/react-native,ptmt/react-native-macos,makadaw/react-native,lprhodes/react-native,htc2u/react-native,salanki/react-native,exponent/react-native,csatf/react-native,ndejesus1227/react-native,makadaw/react-native,kesha-antonov/react-native,Maxwell2022/react-native,CodeLinkIO/react-native,peterp/react-native,charlesvinette/react-native,Swaagie/react-native,ndejesus1227/react-native,csatf/react-native,tadeuzagallo/react-native,callstack-io/react-native,brentvatne/react-native,janicduplessis/react-native,cdlewis/react-native,charlesvinette/react-native,hoastoolshop/react-native,ptmt/react-native-macos,brentvatne/react-native,farazs/react-native,hoangpham95/react-native,negativetwelve/react-native,aljs/react-native,ptomasroos/react-native,skevy/react-native,imjerrybao/react-native,gitim/react-native,doochik/react-native,hammerandchisel/react-native,javache/react-native,tadeuzagallo/react-native,hoastoolshop/react-native,forcedotcom/react-native,shrutic123/react-native,javache/react-native,PlexChat/react-native,Purii/react-native,ptomasroos/react-native,negativetwelve/react-native,imjerrybao/react-native,cosmith/react-native,dikaiosune/react-native,Ehesp/react-native,charlesvinette/react-native,farazs/react-native,esauter5/react-native,formatlos/react-native,jevakallio/react-native,myntra/react-native,imDangerous/react-native,pandiaraj44/react-native,tadeuzagallo/react-native,lprhodes/react-native,ankitsinghania94/react-native,tszajna0/react-native,lprhodes/react-native,shrutic123/react-native,Andreyco/react-native,imjerrybao/react-native,CodeLinkIO/react-native,xiayz/react-native,Ehesp/react-native,esauter5/react-native,thotegowda/react-native,mironiasty/react-native,negativetwelve/react-native,aaron-goshine/react-native,jadbox/react-native,exponentjs/react-native,arthuralee/react-native,eduardinni/react-native,pandiaraj44/react-native,Bhullnatik/react-native,aljs/react-native,Andreyco/react-native,Purii/react-native,hoangpham95/react-native,ndejesus1227/react-native,negativetwelve/react-native,makadaw/react-native,gilesvangruisen/react-native,dikaiosune/react-native,jasonnoahchoi/react-native,imjerrybao/react-native,javache/react-native,shrutic123/react-native,rickbeerendonk/react-native,peterp/react-native,skevy/react-native,jevakallio/react-native,exponentjs/react-native,Andreyco/react-native,shrutic/react-native,mironiasty/react-native,hoastoolshop/react-native,farazs/react-native,salanki/react-native,Swaagie/react-native,happypancake/react-native,DannyvanderJagt/react-native,chnfeeeeeef/react-native,Swaagie/react-native,gilesvangruisen/react-native,thotegowda/react-native,orenklein/react-native,tsjing/react-native,jasonnoahchoi/react-native,DanielMSchmidt/react-native,doochik/react-native,alin23/react-native,aaron-goshine/react-native,callstack-io/react-native,aaron-goshine/react-native,orenklein/react-native,gilesvangruisen/react-native,PlexChat/react-native,skevy/react-native,jadbox/react-native,javache/react-native,alin23/react-native,eduardinni/react-native,kesha-antonov/react-native,Ehesp/react-native,happypancake/react-native,cdlewis/react-native,exponentjs/react-native,gitim/react-native,Bhullnatik/react-native,cosmith/react-native,Maxwell2022/react-native,lprhodes/react-native,Purii/react-native,cpunion/react-native,htc2u/react-native,makadaw/react-native,exponentjs/react-native,peterp/react-native,tsjing/react-native,cdlewis/react-native,Maxwell2022/react-native,Purii/react-native,forcedotcom/react-native,frantic/react-native,orenklein/react-native,rickbeerendonk/react-native,satya164/react-native,brentvatne/react-native,peterp/react-native,cdlewis/react-native,ndejesus1227/react-native,Andreyco/react-native,PlexChat/react-native,Livyli/react-native,doochik/react-native,hoastoolshop/react-native,Maxwell2022/react-native,janicduplessis/react-native,imDangerous/react-native,makadaw/react-native,htc2u/react-native,ndejesus1227/react-native,ndejesus1227/react-native,pandiaraj44/react-native,brentvatne/react-native,chnfeeeeeef/react-native,hoangpham95/react-native,xiayz/react-native,jadbox/react-native,frantic/react-native,callstack-io/react-native,formatlos/react-native,tszajna0/react-native,cdlewis/react-native,Ehesp/react-native,Bhullnatik/react-native,dikaiosune/react-native,makadaw/react-native,negativetwelve/react-native,dikaiosune/react-native,exponent/react-native,satya164/react-native,happypancake/react-native,kesha-antonov/react-native,charlesvinette/react-native,Purii/react-native,forcedotcom/react-native,peterp/react-native,tadeuzagallo/react-native,Livyli/react-native,Livyli/react-native,happypancake/react-native,thotegowda/react-native,jadbox/react-native,jasonnoahchoi/react-native,rickbeerendonk/react-native,aljs/react-native,exponent/react-native,callstack-io/react-native,CodeLinkIO/react-native,ptmt/react-native-macos,clozr/react-native,doochik/react-native,Purii/react-native,cosmith/react-native,arthuralee/react-native,tsjing/react-native,shrutic/react-native,jasonnoahchoi/react-native,DanielMSchmidt/react-native,frantic/react-native,DanielMSchmidt/react-native,aljs/react-native,xiayz/react-native,gitim/react-native,tsjing/react-native,imjerrybao/react-native,kesha-antonov/react-native,makadaw/react-native,PlexChat/react-native,hammerandchisel/react-native,alin23/react-native,DannyvanderJagt/react-native,ankitsinghania94/react-native,htc2u/react-native,dikaiosune/react-native,aljs/react-native,DannyvanderJagt/react-native,ptmt/react-native-macos,aljs/react-native,DanielMSchmidt/react-native,janicduplessis/react-native,hammerandchisel/react-native,ndejesus1227/react-native,jevakallio/react-native,orenklein/react-native,thotegowda/react-native,ptomasroos/react-native,mironiasty/react-native,doochik/react-native,myntra/react-native