(module)
| 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 | }) |
nothing calls this directly
no test coverage detected