(source: string)
| 347 | })); |
| 348 | |
| 349 | const splitImports = (source: string): [imports: string, body: string] => { |
| 350 | const lines = source.split('\n'); |
| 351 | let index = 0; |
| 352 | for (; index < lines.length; index++) { |
| 353 | const line = lines[index]; |
| 354 | if (line.trim() == '' || line.trim().startsWith('import ')) { |
| 355 | continue; |
| 356 | } |
| 357 | break; |
| 358 | } |
| 359 | return [lines.slice(0, index).join('\n'), lines.slice(index).join('\n')]; |
| 360 | }; |
| 361 | |
| 362 | const HTML_HELPERS = ` |
| 363 | const VOID_ELEMENTS = new Set([ |
no outgoing calls
no test coverage detected
searching dependent graphs…