(source: string, path: string)
| 444 | const isSvelteModule = (path: string): boolean => /\.svelte\.[jt]s$/.test(path); |
| 445 | |
| 446 | const compileSvelteModule = (source: string, path: string): string => |
| 447 | compileModule( |
| 448 | transformSync(source, { |
| 449 | format: 'esm', |
| 450 | loader: extname(path).slice(1) as 'js' | 'ts', |
| 451 | target: 'esnext', |
| 452 | }).code, |
| 453 | { |
| 454 | filename: path, |
| 455 | generate: 'client', |
| 456 | }, |
| 457 | ).js.code; |
| 458 | |
| 459 | const prepareBundledResults = async ( |
| 460 | files: {[path: string]: string}, |
no test coverage detected
searching dependent graphs…