| 44 | export type RenderableSourceKind = 'html' | 'jsx' | 'tsx' | 'unknown'; |
| 45 | |
| 46 | export interface BuildPreviewDocumentOptions { |
| 47 | /** Workspace-relative path, used to classify .jsx/.tsx/.html files. */ |
| 48 | path?: string | undefined; |
| 49 | /** Optional absolute file:// base URL so relative assets resolve in srcdoc/data URLs. */ |
| 50 | baseHref?: string | undefined; |
| 51 | } |
| 52 | |
| 53 | function extensionKind(path: string | undefined): RenderableSourceKind { |
| 54 | const lower = path?.toLowerCase() ?? ''; |
nothing calls this directly
no outgoing calls
no test coverage detected