(compilation, getItems)
| 424 | * @returns {number} total number |
| 425 | */ |
| 426 | const countWithChildren = (compilation, getItems) => { |
| 427 | let count = getItems(compilation, "").length; |
| 428 | for (const child of compilation.children) { |
| 429 | count += countWithChildren(child, (c, type) => |
| 430 | getItems(c, `.children[].compilation${type}`) |
| 431 | ); |
| 432 | } |
| 433 | return count; |
| 434 | }; |
| 435 | |
| 436 | /** @type {ExtractorsByOption<string | ErrorWithCause | AggregateError | WebpackError, StatsError>} */ |
| 437 | const EXTRACT_ERROR = { |
no outgoing calls
no test coverage detected