Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

fix(utils/normalizeFallback): correctly pass all options to the default fallback (file-loader) #139

Merged
merged 2 commits into from
Aug 15, 2018

Conversation

insin
Copy link
Contributor

@insin insin commented Aug 15, 2018

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

Fixes #138 by passing on all non-url-loader options when defaulting to file-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

❤️

@alexander-akait
Copy link
Member

Wait review and we will release

return {
loader: fallbackString,
};
}
Copy link
Member

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 michael-ciniawsky changed the title fix: pass other options when defaulting fallback to file-loader (#138) fix(utils/normalizeFallback): correctly pass all options to the default fallback (file-loader) Aug 15, 2018
Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@insin Thx

@michael-ciniawsky
Copy link
Member

The utils/normalizeFallback code is really wierd imho, I personally think It should not have been landed in that way tbh :)

@insin insin deleted the default-fallback-options branch August 15, 2018 14:45
@zhangyuheng
Copy link

@evilebottnawi can you publish a new version

@michael-ciniawsky
Copy link
Member

@zhangyuheng Soon we are discussing this and try to release a fix asap

@michael-ciniawsky
Copy link
Member

Released in v1.1.2 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v1.1.0 options.name is failure
4 participants