(content: string)
| 54 | } |
| 55 | |
| 56 | function collectRelativeImportSpecifiers(content: string): string[] { |
| 57 | const specifiers = new Set<string>(); |
| 58 | collectImportMatches(content, STATIC_IMPORT_RE, specifiers); |
| 59 | collectImportMatches(content, DYNAMIC_IMPORT_RE, specifiers); |
| 60 | return [...specifiers]; |
| 61 | } |
| 62 | |
| 63 | function collectImportMatches(content: string, pattern: RegExp, specifiers: Set<string>): void { |
| 64 | pattern.lastIndex = 0; |
no test coverage detected