Merge pull request #101 from CKarper/master
Lighter weight way to accomplish the exclusion of the sys module
This commit is contained in:
+2
-3
@@ -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 **/
|
||||
|
||||
Reference in New Issue
Block a user