First baby steps towards requirejs

This commit is contained in:
Egil Moeller 2015-04-11 13:22:27 +02:00
parent f5d1cd1751
commit 0e5cd65d8d
3 changed files with 8 additions and 0 deletions

View file

@ -15,6 +15,7 @@ function loadFn(path, hookName) {
functionName = parts[1];
}
console.log(["LOADING", path]);
var fn = require(path);
functionName = functionName ? functionName : hookName;