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.5.2/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

Parameters

input: string | Uint8Array
optional
options: SameShape<TransformOptions, T>