(chunk, chunkGraph)
| 200 | * @returns {boolean} true, when a JS file is needed for this chunk |
| 201 | */ |
| 202 | const chunkHasRuntimeOrJs = (chunk, chunkGraph) => { |
| 203 | if (chunkHasJs(chunk, chunkGraph)) { |
| 204 | return true; |
| 205 | } |
| 206 | |
| 207 | if ( |
| 208 | chunkGraph.getChunkModulesIterableBySourceType( |
| 209 | chunk, |
| 210 | WEBPACK_MODULE_TYPE_RUNTIME |
| 211 | ) |
| 212 | ) { |
| 213 | for (const chunkGroup of chunk.groupsIterable) { |
| 214 | for (const c of chunkGroup.chunks) { |
| 215 | if (chunkHasJs(c, chunkGraph)) return true; |
| 216 | } |
| 217 | } |
| 218 | return false; |
| 219 | } |
| 220 | |
| 221 | return false; |
| 222 | }; |
| 223 | |
| 224 | /** |
| 225 | * Print generated code for stack. |
no test coverage detected