(file: string)
| 414 | const modules = new Set<string>() |
| 415 | const seen = new Set<string>() |
| 416 | const read = (file: string) => { |
| 417 | if (seen.has(file)) return |
| 418 | seen.add(file) |
| 419 | for (const [, imported] of (host.readFile(file) ?? "").matchAll( |
| 420 | importOrComputed |
| 421 | )) { |
| 422 | if (!imported || arktypeEntries.includes(packageNameOf(imported))) |
| 423 | modules.add(file) |
| 424 | else { |
| 425 | const resolved = host.resolve(imported, file) |
| 426 | if (resolved) read(resolved) |
| 427 | } |
| 428 | } |
| 429 | } |
| 430 | read(entry) |
| 431 | return [...modules] |
| 432 | } |
no test coverage detected