import { transform } from "https://deno.land/x/aleph@v0.3.0-alpha.32/compiler/mod.ts";
transform module by swc.
transform(
'/app.tsx',
`
export default App() {
return <h1>Hello World</h1>
}
`,
{
url: '/app.tsx'
swcOptions: {
target: 'es2020'
}
}
)
Parameters
optional
options: TransformOptions = [UNSUPPORTED]- the transform options.
Returns
Promise<TransformResult>