This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Use the Resolve API to define ResolveLoader according to webpack #99
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
According to the webpack docs:
This tells me that the
Resolve
API and theResolveLoader
API should actually be identical. According to the webpack schema, bothresolve
andresolveLoader
are ref'd to theresolve
definition:https://github.com/webpack/webpack/blob/dfe6379052598a00f13bfa4f34ac73856ddf3dd0/schemas/WebpackOptions.json#L1668
This should not be breaking at all, and should only be a feature bump due to the addition of the
resolve
methods. The only reason we aren't just new-ing aResolve
inConfig
is that there are some legacy methods that would cause a breaking change if removed.Fixes #97.