mirror of https://github.com/status-im/metro.git
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:
parent
bd5f803982
commit
9383f292aa
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue