Skip to content

API - Clarify Pitch vs Normal Loader #116

Closed
@pksjce

Description

@pksjce

From @gaearon on July 15, 2014 8:10

I'd submit a PR but honestly, having written two loaders, I'm not sure I really understand what a pitch loader is.

Is my understanding correct here:

  • normal loaders always transform the source and thus rely on previous loader's output
  • pitch loaders don't depend on the source itself and are happy with being given just a module name (that they can require), thus they are cacheable even if module's content changes
  • everything that can be implemented as a pitch loader, can also be implemented as a normal loader, but pitch loaders are faster (cacheable with no regards to module output, may be run in parallel, etc)

?

Copied from original issue: webpack/webpack#360

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions