From 39665a8d5c42dcf76a1499e5c5c0f1a2b7288f1d Mon Sep 17 00:00:00 2001 From: Christopher Karper Date: Sun, 15 Feb 2015 17:51:05 -0500 Subject: [PATCH] Lighter weight way to accomplish the exclusion of the sys module --- lib/bundle.js | 5 ++--- lib/empty.js | 0 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 lib/empty.js diff --git a/lib/bundle.js b/lib/bundle.js index 476b9b8..e4dc08e 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -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 **/ diff --git a/lib/empty.js b/lib/empty.js deleted file mode 100644 index e69de29..0000000