(pagePath: string, code: string)
| 452 | } |
| 453 | |
| 454 | const registryDepsForBlock = async (pagePath: string, code: string) => { |
| 455 | const privates = await collectBlocks(pagePath, code) |
| 456 | const allFiles = new Set<string>([pagePath, ...privates]) |
| 457 | const urls: string[] = [] |
| 458 | for (const file of allFiles) { |
| 459 | const src = file === pagePath ? code : await read(file) |
| 460 | const specs = importSpecifiers(src) |
| 461 | const fileUrls = await findInternalDepsForFile(file, specs) |
| 462 | for (const u of fileUrls) urls.push(u) |
| 463 | } |
| 464 | return [...new Set(urls)] |
| 465 | } |
| 466 | |
| 467 | const buildBlockItem = async (pagePath: string) => { |
| 468 | const code = await read(pagePath) |
no test coverage detected