Error.captureStackTrace = Error.captureStackTrace || function (obj) {
  if (Error.prepareStackTrace) {
    var frame = {
      isEval: function () { return false; },
      getFileName: function () { return "filename"; },
      getLineNumber: function () { return 1; },
      getColumnNumber: function () { return 1; },
      getFunctionName: function () { return "functionName" }
    };

    obj.stack = Error.prepareStackTrace(obj, [frame, frame, frame]);
  } else {
    obj.stack = obj.stack || obj.name || "Error";
  }
};

console.log("omg hi");

exports.generate  = require("./generator");
exports.transform = require("./transform");

@@ -523,49 +523,32 @@
 %7D;%0A%0A
-console.log(%22omg hi%22);%0A%0Aexports.generate 
+exports = module.exports
  = r
@@ -561,17 +561,17 @@
 (%22./
-generat
+transf
 or
+m
 %22);%0A
@@ -589,16 +589,44 @@
 nsform =
+ exports;%0Aexports.generate =
  require
@@ -621,29 +621,29 @@
 te = require(%22./
-transf
+generat
 or
-m
 %22);%0A

make browser api backwards compatible