module-deps icon indicating copy to clipboard operation
module-deps copied to clipboard

Alternative Paths when loading Transforms

Open jonnyreeves opened this issue 10 years ago • 2 comments

Pass the collection of paths through to resolve to support environments with 'interesting' node module environments ala https://github.com/tkellen/js-liftoff/pull/44/files

Patched up a minor bug in an error message whilst I was here as well.

jonnyreeves avatar Jun 22 '15 19:06 jonnyreeves

ping @zertosh

jonnyreeves avatar Aug 01 '15 12:08 jonnyreeves

params gets passed to resolve as opts, where it's given a default value of []. By passing self.paths, it'll actually get a value. I think there's an expectation that modules have within their path resolution hierarchy the transform they need, so you shouldn't be passing in paths for that.

Am I missing something?

zertosh avatar Aug 05 '15 03:08 zertosh