From 9383f292aa2bb492a8e414f8b513fc2f76b28d91 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Fri, 14 Oct 2016 11:11:35 -0700 Subject: [PATCH] Monkey-patch `fs` with graceful-fs before anything else runs Reviewed By: matryoshcow, kentaromiura Differential Revision: D4020645 fbshipit-source-id: a7985109476b78b588c3e2a75ae6f25ea8f09237 --- react-packager/index.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/react-packager/index.js b/react-packager/index.js index 240c5fab..65892a14 100644 --- a/react-packager/index.js +++ b/react-packager/index.js @@ -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.