Skip to main content
Go to Latest
function transform
import { transform } from "https://deno.land/x/aleph_compiler@0.7.4/mod.ts";

Transforms the JSX/TS module into a JS module.

transform(
  '/app.tsx',
  `
   import React from 'https://esm.sh/react';

   export default function App() {
     return <h1>Hello world!</h1>
   }
  `
)

Parameters

specifier: string
code: string
optional
options: TransformOptions = [UNSUPPORTED]