Last active
March 17, 2016 21:26
-
-
Save lekoder/5c86efb5a1ef996308c4 to your computer and use it in GitHub Desktop.
Revisions
-
lekoder revised this gist
Mar 17, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ var wires={}; function want(mod) { return function(name) { return wires[name] || (mod || require.main).require(name); } } want.wire = function(name, to) { -
lekoder created this gist
Mar 17, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ var wires={}; function want(mod) { return function(name) { (mod || require.main).require(wires[name] || name); } } want.wire = function(name, to) { wires[name] = to; } module.exports = want;