diff --git a/index.js b/index.js index 53fe143..4194f4a 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); @@ -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 ));