Support .json extensions in require() resolution

Embarrassingly simple fix.  Added .json to the list of extensions to search when a require with no extension is found.  

This resolves #57
This commit is contained in:
Christopher Karper
2015-02-15 00:33:28 -05:00
parent a0017ed3fe
commit 3a7eb91d3b
+2 -1
View File
@@ -62,7 +62,8 @@ function bundle (input, complete) {
filter: function (id) {
if (id == 'nexeres') { return false; } //treat our new moudle as a builtin module
return !~builtins.indexOf(id);
}
},
extensions: ['.js', '.json' ]
});
md.pipe(through(function (chunk) {
deps.push(chunk);