Open jasonmit opened 9 years ago
Totally! We actually do it for other options already. We'd just need to come up with a name, although path
sounds good to me.
Edit: although if it's an array of paths
then plural
Okay, I'll send a PR tonight tomorrow :+1:
@ianstormtaylor PR opened if you can take a look and provide feedback. Thanks :)
Is it within the scope of the project to permit passing options, such as
path
toimporter
?For example:
https://github.com/segmentio/myth/blob/master/lib/features.js#L26
Would permit:
Right now I need to use relative paths everywhere for imports outside of the source directory to be importable. I thought this was what the
paths
option was for, but then noticed it never gets passed to the importer.