From e79b0fb23e2cbe6535cf4a9ea0ed7574fb879996 Mon Sep 17 00:00:00 2001 From: Christopher Karper Date: Sun, 15 Feb 2015 14:52:40 -0500 Subject: [PATCH] Stub to ignore require('sys') --- lib/bundle.js | 9 +++++---- lib/empty.js | 0 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 lib/empty.js 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