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