MCPcopy
hub / github.com/webpack/webpack / getOrigin

Method getOrigin

lib/ModuleGraph.js:597–600  ·  view source on GitHub ↗

* Returns the referencing module. * @param {Dependency} dependency the dependency to look for a referencing module * @returns {Module | null} the referencing module

(dependency)

Source from the content-addressed store, hash-verified

595 * @returns {Module | null} the referencing module
596 */
597 getOrigin(dependency) {
598 const connection = this.getConnection(dependency);
599 return connection !== undefined ? connection.originModule : null;
600 }
601
602 /**
603 * Gets resolved origin.

Callers

nothing calls this directly

Calls 1

getConnectionMethod · 0.95

Tested by

no test coverage detected