MCPcopy
hub / github.com/webpack/webpack / getActiveStateOfConnections

Function getActiveStateOfConnections

lib/buildChunkGraph.js:94–106  ·  view source on GitHub ↗
(connections, runtime)

Source from the content-addressed store, hash-verified

92 * @returns {ConnectionState} connection state
93 */
94const getActiveStateOfConnections = (connections, runtime) => {
95 let merged = connections[0].getActiveState(runtime);
96 if (merged === true) return true;
97 for (let i = 1; i < connections.length; i++) {
98 const c = connections[i];
99 merged = ModuleGraphConnection.addConnectionStates(
100 merged,
101 c.getActiveState(runtime)
102 );
103 if (merged === true) return true;
104 }
105 return merged;
106};
107
108/**
109 * Extract block modules.

Callers 2

deriveBlockModulesFunction · 0.85

Calls 1

getActiveStateMethod · 0.80

Tested by

no test coverage detected