Skip to content

Instantly share code, notes, and snippets.

@sebmarkbage
Created March 1, 2012 01:21
Show Gist options
  • Save sebmarkbage/1946430 to your computer and use it in GitHub Desktop.
Save sebmarkbage/1946430 to your computer and use it in GitHub Desktop.
require
function require(module){
if (module.cached) return module.cached;
module(module.cached = {});
return module.cached;
};
function MODULE1(exports){
};
function MODULE2(exports){
var n = require(MODULE1);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment