MCPcopy
hub / github.com/webpack/webpack / getOutgoingConnectionsByModule

Method getOutgoingConnectionsByModule

lib/ModuleGraph.js:647–652  ·  view source on GitHub ↗

* Gets outgoing connections by module. * @param {Module} module the module * @returns {ReadonlyMap<Module | undefined, ReadonlyArray<ModuleGraphConnection>> | undefined} connections to modules, in a map by module

(module)

Source from the content-addressed store, hash-verified

645 * @returns {ReadonlyMap<Module | undefined, ReadonlyArray<ModuleGraphConnection>> | undefined} connections to modules, in a map by module
646 */
647 getOutgoingConnectionsByModule(module) {
648 const connections = this._getModuleGraphModule(module).outgoingConnections;
649 return connections === undefined
650 ? undefined
651 : connections.getFromUnorderedCache(getConnectionsByModule);
652 }
653
654 /**
655 * Returns the module profile.

Callers 3

computeReferencesMethod · 0.80
assignDepthsMethod · 0.80
getOutgoingAsyncModulesFunction · 0.80

Calls 2

_getModuleGraphModuleMethod · 0.95
getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected