MCPcopy
hub / github.com/webpack/webpack / addOrigin

Method addOrigin

lib/ChunkGroup.js:460–466  ·  view source on GitHub ↗

* Records where this chunk group originated from in user code. * The origin is used for diagnostics, ordering, and reporting. * @param {Module | null} module origin module * @param {DependencyLocation} loc location of the reference in the origin module * @param {string} request request name

(module, loc, request)

Source from the content-addressed store, hash-verified

458 * @returns {void}
459 */
460 addOrigin(module, loc, request) {
461 this.origins.push({
462 module,
463 loc,
464 request
465 });
466 }
467
468 /**
469 * Collects the emitted files produced by every chunk in the group.

Callers 4

addChunkInGroupMethod · 0.95
iteratorBlockFunction · 0.80
sealMethod · 0.80
addAsyncEntrypointMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected