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:
David Aurelio 2016-10-14 11:11:35 -07:00 committed by Facebook Github Bot
parent bd5f803982
commit 9383f292aa
1 changed files with 0 additions and 7 deletions

View File

@ -11,7 +11,6 @@
require('../babelRegisterOnly')([/react-packager\/src/]);
require('./src/node-haste/fastpath').replace();
useGracefulFs();
var debug = require('debug');
var Activity = require('./src/Activity');
@ -73,12 +72,6 @@ exports.getOrderedDependencyPaths = function(options, bundleOptions) {
});
};
function useGracefulFs() {
var fs = require('fs');
var gracefulFs = require('graceful-fs');
gracefulFs.gracefulify(fs);
}
function enableDebug() {
// react-packager logs debug messages using the 'debug' npm package, and uses
// the following prefix throughout.