Skip to main content
Module

x/enzastdlib/vendor/@deno-emit.ts>transpile

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
function transpile
import { transpile } from "https://deno.land/x/enzastdlib@v0.0.4/vendor/@deno-emit.ts";

Transpile TypeScript (or JavaScript) into JavaScript, returning a promise which resolves with a map of the emitted files.

Parameters

root: string | URL

The root module specifier to use for the bundle.

optional
options: TranspileOptions = [UNSUPPORTED]

Options to use when emitting.

Returns

Promise<Map<string, string>>

A promise which resolves with a map of the emitted files, where the key is the emitted files name and the value is the source for the file.