Module

x/aleph/server/deps.ts>transform

The Full-stack Framework in Deno.
Go to Latest
function transform
import { transform } from "https://dotland.deno.dev/x/aleph@1.0.0-beta.15/server/deps.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]