MCPcopy
hub / github.com/webpack/webpack / getModule

Method getModule

lib/ModuleGraph.js:587–590  ·  view source on GitHub ↗

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

(dependency)

Source from the content-addressed store, hash-verified

585 * @returns {Module | null} the referenced module
586 */
587 getModule(dependency) {
588 const connection = this.getConnection(dependency);
589 return connection !== undefined ? connection.module : null;
590 }
591
592 /**
593 * Returns the referencing module.

Callers 15

getUserRequestMapMethod · 0.45
getFakeMapMethod · 0.45
getLazySourceMethod · 0.45
asyncModuleFactoryMethod · 0.45
syncModuleFactoryMethod · 0.45
applyMethod · 0.45
iteratorBlockFunction · 0.45
walkSideEffectsIterativeFunction · 0.45
walkSideEffectsRecursiveFunction · 0.45
applyMethod · 0.45

Calls 1

getConnectionMethod · 0.95

Tested by

no test coverage detected