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

Need for utils/normalizeFallback #144

@michael-ciniawsky

Description

@michael-ciniawsky

I think utils/normalizeFallback is not needed and we should revert the logic in src/index.js back to just fallback.call(this, src) since we need to pass all options anyways as it seems e.g

webpack.config.js

{
  loader; 'url-loader',
  options: {
      limit: 1,
      name: '',
      fallback: 'x-loader',
      any: '',
      option: '',
      you: '',
      want: '',
  }
}

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 😛

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions