Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function esbuildNative.transformSync
import { esbuildNative } from "https://deno.land/x/esbuild_deno_loader@0.8.5/test_deps.ts";
const { transformSync } = esbuildNative;

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>