Skip to main content
Module

x/aleph/compiler/mod.ts>transform

The Full-stack Framework in Deno.
Very Popular
Go to Latest
function transform
import { transform } from "https://deno.land/x/aleph@1.0.0-alpha.8/compiler/mod.ts";

Transforms the module with esbuild/swc.

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

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

Parameters

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