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:
+2
-1
@@ -62,7 +62,8 @@ function bundle (input, complete) {
|
|||||||
filter: function (id) {
|
filter: function (id) {
|
||||||
if (id == 'nexeres') { return false; } //treat our new moudle as a builtin module
|
if (id == 'nexeres') { return false; } //treat our new moudle as a builtin module
|
||||||
return !~builtins.indexOf(id);
|
return !~builtins.indexOf(id);
|
||||||
}
|
},
|
||||||
|
extensions: ['.js', '.json' ]
|
||||||
});
|
});
|
||||||
md.pipe(through(function (chunk) {
|
md.pipe(through(function (chunk) {
|
||||||
deps.push(chunk);
|
deps.push(chunk);
|
||||||
|
|||||||
Reference in New Issue
Block a user