From 8669f4a077c3ede93ea2f427bca297d177b20f3d Mon Sep 17 00:00:00 2001 From: David Beck Date: Wed, 2 Apr 2014 12:18:13 -0300 Subject: [PATCH] fix for packageTransform option bug --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e1c45d0..055a4b2 100644 --- a/index.js +++ b/index.js @@ -131,7 +131,7 @@ module.exports = function (mains, opts) { if (!p) p = {}; if (!p.__dirname) p.__dirname = path.dirname(file); pkgCache[file] = p; - f(err, file, p); + f(err, file, opts.packageFilter ? opts.packageFilter(p) : p); }); return; }