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.2.0/src/build/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

Type Parameters

SpecificOptions extends TransformOptions

Parameters

input: string
optional
options: SpecificOptions

Parameters

input: string | Uint8Array
optional
options: TransformOptions