-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get only an array of paths #8
Comments
Sorry for the delay here, but nice idea! Love it. Just to be clear, the return value would be the exact same structure of map that This should be pretty easy to do. I'll see if I can get to it, but pull requests welcome too. =) |
Is this a feature you're still interested in? I'd take a PR for it if it doesn't add too much surface and is done in a generic way. |
Thx for the follow up. Yep, I am still interested. It is to allow the listing and loading of plug-in modules on-demand. Now, I had to put my project on hold, so if I go back to it and still need that feature, I can look into writing a PR for you. As for @aseemk's first question, yes it would return string paths instead of the result of |
@jlgrall Great, looking forward to a PR from you (or somebody else reading this) - it shouldn't be too hard to replace the |
Add a
requireDir.resolve()
which would return a map of the paths instead of a map of the required paths.It would help plugins like browserify to follow your requires, without loosing time loading unnecessary modules.
I chose the name
.resolve()
to stay consistent withrequire.resolve()
.The text was updated successfully, but these errors were encountered: