diff --git a/lib/bundle.js b/lib/bundle.js index 277347e..b45a885 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -61,16 +61,17 @@ function bundle (input, complete) { }, filter: function (id) { - if (id == 'nexeres') { return false; } //treat our new moudle as a builtin module + if (id == 'nexeres') { return false; } //treat our new module as a builtin module return !~builtins.indexOf(id); }, - extensions: ['.js', '.json' ], - ignoreMissing: true + extensions: [ '.js', '.json' ], + ignoreMissing: true, + modules: { sys: __dirname + '/empty.js' } }); /** event for missing packages, fixes conditional requires **/ md.on('missing', function(id, parent) { - _log("warn", "couldn't find require '"+id+"', errors may occur."); + _log("warn", "couldn't find require '" + id + "', errors may occur."); }); md.pipe(through(function (chunk) { diff --git a/lib/empty.js b/lib/empty.js new file mode 100644 index 0000000..e69de29