This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 158
fix(utils/normalizeFallback): correctly pass all options
to the default fallback (file-loader
)
#139
Merged
michael-ciniawsky
merged 2 commits into
webpack-contrib:master
from
insin:default-fallback-options
Aug 15, 2018
Merged
fix(utils/normalizeFallback): correctly pass all options
to the default fallback (file-loader
)
#139
michael-ciniawsky
merged 2 commits into
webpack-contrib:master
from
insin:default-fallback-options
Aug 15, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wait review and we will release |
src/utils/normalizeFallback.js
Outdated
return { | ||
loader: fallbackString, | ||
}; | ||
} |
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.
We really need in this? Looks better always return query
.
michael-ciniawsky
changed the title
fix: pass other options when defaulting fallback to file-loader (#138)
fix(utils/normalizeFallback): correctly pass all Aug 15, 2018
options
to the default fallback (file-loader
)
michael-ciniawsky
approved these changes
Aug 15, 2018
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.
@insin Thx
The |
6 tasks
@evilebottnawi can you publish a new version |
@zhangyuheng Soon we are discussing this and try to release a fix asap |
This was referenced Aug 16, 2018
Released in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR contains a:
Motivation / Use-Case
Fixes #138 by passing on all non-
url-loader
options when defaulting tofile-loader
as the fallback.This also implements the suggestion which was previously in a code comment to strip out url-loader specific options when passing them to the fallback - this shouldn't be a breaking change as they were never accepted by
file-loader
.Breaking Changes
Should undo a breaking change for people who depended on options being passed on to
file-loader
😹Additional Info
❤️