mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-22 19:39:40 +08:00
Monkey-patch fs with graceful-fs before anything else runs
Reviewed By: matryoshcow, kentaromiura Differential Revision: D4020645 fbshipit-source-id: a7985109476b78b588c3e2a75ae6f25ea8f09237
This commit is contained in:
committed by
Facebook Github Bot
parent
46a3bea350
commit
d26af5811d
@@ -8,6 +8,9 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
// gracefulify() has to be called before anything else runs
|
||||
require('graceful-fs').gracefulify(require('fs'));
|
||||
|
||||
// This file must be able to run in node 0.12 without babel so we can show that
|
||||
// it is not supported. This is why the rest of the cli code is in `cliEntry.js`.
|
||||
require('./server/checkNodeVersion')();
|
||||
@@ -15,7 +18,7 @@ require('./server/checkNodeVersion')();
|
||||
require('../packager/babelRegisterOnly')([
|
||||
/private-cli\/src/,
|
||||
/local-cli/,
|
||||
/react-packager\/src/
|
||||
/react-packager\/src/,
|
||||
]);
|
||||
|
||||
var cliEntry = require('./cliEntry');
|
||||
|
||||
Reference in New Issue
Block a user