Lighter weight way to accomplish the exclusion of the sys module

This commit is contained in:
Christopher Karper
2015-02-15 17:51:05 -05:00
parent 17c506c9cc
commit fb637e0da3
2 changed files with 2 additions and 3 deletions
+2 -3
View File
@@ -61,12 +61,11 @@ function bundle (input, complete) {
},
filter: function (id) {
if (id == 'nexeres') { return false; } //treat our new module as a builtin module
if ([ 'nexeres', 'sys' ].indexOf(id) > -1) { return false; }
return !~builtins.indexOf(id);
},
extensions: [ '.js', '.json' ],
ignoreMissing: true,
modules: { sys: __dirname + '/empty.js' }
ignoreMissing: true
});
/** event for missing packages, fixes conditional requires **/
View File