method
Transpiler.transform
): Promise<string>;
Transpile code from TypeScript or JSX into valid JavaScript. This function does not resolve imports.
@param code
The code to transpile
Referenced types
type StringOrBuffer = string | NodeJS.TypedArray | ArrayBufferLike
type JavaScriptLoader =
| 'jsx'
| 'js'
| 'ts'
| 'tsx'