(source: string, loader: "ts" | "jsx" | "tsx", sourcePath?: string)
| 263 | } |
| 264 | |
| 265 | export function transformJavaScriptSync(source: string, loader: "ts" | "jsx" | "tsx", sourcePath?: string): string { |
| 266 | return transformSync(source, getTransformOptions(loader, sourcePath)).code; |
| 267 | } |
| 268 | |
| 269 | function getTransformOptions(loader: "ts" | "jsx" | "tsx", sourcePath?: string): TransformOptions { |
| 270 | switch (loader) { |
no test coverage detected