Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function esbuildTypes.transformSync
import { esbuildTypes } from "https://deno.land/x/fresh@1.1.1/src/server/deps.ts";
const { transformSync } = esbuildTypes;

A synchronous version of "transform".

  • Works in node: yes
  • Works in browser: no

Documentation: https://esbuild.github.io/api/#transform-api

Parameters

input: string
optional
options: TransformOptions