MCPcopy
hub / github.com/webpack/webpack / addDependencies

Method addDependencies

lib/ChunkGraph.js:369–380  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

367 * @param {Module} module module
368 */
369 const addDependencies = (module) => {
370 for (const connection of moduleGraph.getOutgoingConnections(module)) {
371 if (!connection.module) continue;
372 const activeState = connection.getActiveState(undefined);
373 if (activeState === false) continue;
374 if (activeState === ModuleGraphConnection.TRANSITIVE_ONLY) {
375 addDependencies(connection.module);
376 continue;
377 }
378 set.add(connection.module);
379 }
380 };
381 addDependencies(module);
382 return set;
383 })

Callers

nothing calls this directly

Calls 3

getActiveStateMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected