Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions prelude.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// modules are defined as an array
// [ module function, map of requireuires ]
//
Expand Down Expand Up @@ -27,7 +26,7 @@
if (previousRequire) return previousRequire(name, true);
throw new Error('Cannot find module \'' + name + '\'');
}
var m = cache[name] = {exports:{}};
var m = cache[name] = {exports:{},require:newRequire};
modules[name][0].call(m.exports, function(x){
var id = modules[name][1][x];
return newRequire(id ? id : x);
Expand Down