-
-
Notifications
You must be signed in to change notification settings - Fork 158
Need for utils/normalizeFallback
#144
Comments
WIP on this |
It supports the behaviour proposed/requested in #108 #118. Essentially, it allows your example to be written in a way which feels more consistent and hygienic to me:
As a bonus, it supports the unlikely edge case in which option names would otherwise collide:
|
I see, but then we need to remove the default fallback handling from it and apply it only for a custom fallback since this causes issue(s) with current workflows in conjunction with the |
Do you have an example of an issue which is still reproducible after #139? |
Please wait i will send PR in near time |
? :) Nope it fixed the current issue(s), but I was under the impression that passing all options was not the original intend here (only pass But let's wait for the PR and continue discussion there then please :) |
I think
utils/normalizeFallback
is not needed and we should revert the logic insrc/index.js
back to justfallback.call(this, src)
since we need to pass all options anyways as it seems e.gwebpack.config.js
should be sufficient
Since #139 all options are again passed to the fallback loader (default && custom), so in case I don't misunderstand the logic in
utils/normalizeFallback
this change basically neglects all extra 'work' we are currently doing there.Someone please correct me if I'm wrong 😛
The text was updated successfully, but these errors were encountered: