From 0cdcf631914c2027daa2fa36c0170e341677c460 Mon Sep 17 00:00:00 2001 From: Zach Rose Date: Thu, 11 Dec 2014 14:52:03 -0800 Subject: [PATCH] Adds dubious fix for a possible error with loadTransform --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 669ee51..712e1b2 100644 --- a/index.js +++ b/index.js @@ -237,7 +237,9 @@ Deps.prototype.getTransforms = function (file, pkg, opts) { } function loadTransform (id, trOpts, cb) { - var params = { basedir: path.dirname(file) }; + var params = { + basedir: trOpts.basedir || path.dirname(file) + }; nodeResolve(id, params, function nr (err, res, again) { if (err && again) return cb(err);