;(function (f) {
  // module name and requires
  var name = '';
  var requires = [];

  // CommonJS
  if (typeof exports === "object" && typeof module !== "undefined") {
    module.exports = f.apply(null, requires.map(function(r) { return require(r); }));

  // RequireJS
  } else if (typeof define === "function" && define.amd) {
    define(requires, f);

  // <script>
  } else {
    var g
    if (typeof window !== "undefined") {
      g = window;
    } else if (typeof global !== "undefined") {
      g = global;
    } else if (typeof self !== "undefined") {
      g = self;
    } else {
      // works providing we're not in "use strict";
      // needed for Java 8 Nashorn
      // seee https://github.com/facebook/react/issues/3037
      g = this;
    }
    g[name] = f.apply(null, requires.map(function(r) { return require(r); }));
  }

})(function () {
  // code
  return something;
});

@@ -812,34 +812,28 @@
 r) %7B return 
-require(r)
+g%5Br%5D
 ; %7D));%0A  %7D%0A%0A

Fix when using a <script> tag