MCPcopy
hub / github.com/webpack/webpack / getIncomingConnectionsByOriginModule

Method getIncomingConnectionsByOriginModule

lib/ModuleGraph.js:637–640  ·  view source on GitHub ↗

* Gets incoming connections by origin module. * @param {Module} module the module * @returns {ReadonlyMap<Module | undefined | null, ReadonlyArray<ModuleGraphConnection>>} reasons why a module is included, in a map by source module

(module)

Source from the content-addressed store, hash-verified

635 * @returns {ReadonlyMap<Module | undefined | null, ReadonlyArray<ModuleGraphConnection>>} reasons why a module is included, in a map by source module
636 */
637 getIncomingConnectionsByOriginModule(module) {
638 const connections = this._getModuleGraphModule(module).incomingConnections;
639 return connections.getFromUnorderedCache(getConnectionsByOriginModule);
640 }
641
642 /**
643 * Gets outgoing connections by module.

Callers 10

createModulesListMessageFunction · 0.80
hasReasonForChunkMethod · 0.80
_tryToAddMethod · 0.80
countOccursInEntryMethod · 0.80
countOccursMethod · 0.80
renderBootstrapMethod · 0.80
getModulesInOrderMethod · 0.80
applyMethod · 0.80

Calls 2

_getModuleGraphModuleMethod · 0.95
getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected