Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pagic/src/utils/compile.ts>compile

A static site generator powered by Deno + React
Go to Latest
function compile
import { compile } from "https://deno.land/x/pagic@v1.6.1/src/utils/compile.ts";

Compile input code from tsx to js, by typescript compiler Will replace .tsx to .js in import statement, and remove react and react-dom imports

Parameters

input: string