import { transpileSync } from "https://deno.land/x/aleph@v0.3.0-alpha.4/compiler/mod.ts";
transpile code synchronously by swc.
transpileSync(`
export default App() {
return <h1>Hello World</h1>
}
`,
{
url: '/app.tsx'
swcOptions: {
target: 'es2020'
}
})
Parameters
optional
opts: TransformOptions- transform options.