exports.require = function () {
    var fs = require("fs");
    if (process && process.versions && process.versions["electron"]) {
        try {
            originalFs = require("original-fs");
            if (Object.keys(originalFs).length > 0) {
                fs = originalFs;
            }
        } catch (e) {}
    }
    return fs;
};

@@ -33,47 +33,39 @@
     
-var fs = require(%22fs%22);%0A    i
+if (typeo
 f 
-(
 process
+ === %22object%22
  && 
@@ -142,16 +142,22 @@
         
+const 
 original
@@ -259,12 +259,14 @@
     
-fs =
+return
  ori
@@ -328,15 +328,26 @@
  return 
-fs
+require(%22fs%22)
 ;%0A%7D;%0A

update filesystem to be lazy