(chunkGraph, cache, module)
| 40 | * @returns {RuntimeSpec} the merged runtime |
| 41 | */ |
| 42 | const getMergedModuleRuntime = (chunkGraph, cache, module) => { |
| 43 | const cached = cache.get(module); |
| 44 | if (cached !== undefined || cache.has(module)) return cached; |
| 45 | /** @type {RuntimeSpec} */ |
| 46 | let runtime; |
| 47 | for (const r of chunkGraph.getModuleRuntimes(module)) { |
| 48 | runtime = mergeRuntimeOwned(runtime, r); |
| 49 | } |
| 50 | cache.set(module, runtime); |
| 51 | return runtime; |
| 52 | }; |
| 53 | |
| 54 | /** |
| 55 | * Defines the statistics type used by this module. |
no test coverage detected