From 4c89f5c87226b6f6607337c6af7035489a89e97f Mon Sep 17 00:00:00 2001 From: Jonny Reeves Date: Mon, 22 Jun 2015 20:47:45 +0100 Subject: [PATCH 1/2] Supply supplied `paths` through to `resolve` module. This allows us to resolve transform modules from the NODE_PATH --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 53fe143..db212be 100644 --- a/index.js +++ b/index.js @@ -260,7 +260,7 @@ Deps.prototype.getTransforms = function (file, pkg, opts) { } function loadTransform (id, trOpts, cb) { - var params = { basedir: path.dirname(file) }; + var params = { basedir: path.dirname(file), paths: self.paths }; nodeResolve(id, params, function nr (err, res, again) { if (err && again) return cb && cb(err); From eb8bcb94ccd6cb7b138ce6bb1eeddc7bf56fcba6 Mon Sep 17 00:00:00 2001 From: Jonny Reeves Date: Mon, 22 Jun 2015 20:50:40 +0100 Subject: [PATCH 2/2] Patched up undefined variable in loadTransform Error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index db212be..4194f4a 100644 --- a/index.js +++ b/index.js @@ -272,7 +272,7 @@ Deps.prototype.getTransforms = function (file, pkg, opts) { } if (!res) return cb(new Error( - 'cannot find transform module ' + tr + 'cannot find transform module ' + id + ' while transforming ' + file ));