-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
feat(alias): customResolver instead of built-in resolving algorithm #21
Conversation
According to pnpm actual version and included packages
Allow to use customResolver instead of built-in resolving algorithm in
customResolver option
packages/alias/README.md
Outdated
} | ||
] | ||
}, | ||
customResolver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be added to the ##Options and documented in the same fashion as the other options. you can then link to an expanded section like we did for the regular expressions. This section of the readme needs some error correction as well. Please give it another read through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shellscape, please find changes in latest commit. Thanks for pointing on mistakes.
How about the suggestion to always use The advantage of directly using |
No worries, that's why PR was created before you have replied :) Hope you have had a nice trip.
It is a good idea to use I still think that |
We'll leave this open until you are ready to merge |
Agreed, I see there might be further use for this. In that case, I guess it makes more sense to merge this as it is and switch to using |
Note that @shellscape's review comment is still valid and should be addressed before this is merged. |
customResolver description
Hi, @shellscape, i've made changes according your comment. |
Thanks for your work on this. We'll release this soon. We don't have automation setup for this as yet so it will require a manual publish. |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
#14
Description
New feature related to my discussion with @lukastaegert.
customResolver
option allows to pass plugin or function to be used instead of built-in algorithm for files resolving. Most common expected usage - together withnode-resolve
plugin.