-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
API - Resolver documentation confusing #1505
Comments
Another example is that the same page specifies Presumably the second parameter is a callback and the first is some sort of object representing what the docs think are in it? |
This seems pretty related to #1458 and @mlcohen's description of resolvers and the enhanced-resolve package. @mlcohen I've dug into this a bit more the over the last day or two and here's what I think we should do:
What do you all think about this approach? @43081j in the meantime I would recommend reading @mlcohen's detailed comment and checking out the |
Created an issue over at webpack/enhanced-resolve#133 and rewrote the We can look into creating that Utilities section later on. |
Regarding this page.
I noticed webpack allows plugins in the
resolve
config (resolve.plugins
). So I assumed these kind of plugins are defined as per the documentation found here.However, this page gives absolutely no information at all about creating a "resolver" or how to go about implementing one. It mentions what methods a resolver has access to and should use, but not how to create one.
It would be of great use if there was at least a linked example, or the boilerplate of such a plugin.
Edit: Removed second issue, as it was a scoping problem on my end.
The text was updated successfully, but these errors were encountered: