[react-native] Update graceful-fs and use it in _build_bundle.js

This commit is contained in:
Amjad Masad 2015-08-20 12:57:05 -07:00
parent 4a423d7bba
commit 1d7b858d74
1 changed files with 1 additions and 8 deletions

View File

@ -58,14 +58,7 @@ exports.getDependencies = function(options, main) {
function useGracefulFs() {
var fs = require('fs');
var gracefulFs = require('graceful-fs');
// A bit sneaky but it's not straightforward to update all the
// modules we depend on.
Object.keys(fs).forEach(function(method) {
if (typeof fs[method] === 'function' && gracefulFs[method]) {
fs[method] = gracefulFs[method];
}
});
gracefulFs.gracefulify(fs);
}
function createServer(options) {