Skip to main content
Module

x/emit/mod.ts>TranspileOptions

Transpile and bundle JavaScript and TypeScript under Deno and Deno Deploy
Go to Latest
interface TranspileOptions
import { type TranspileOptions } from "https://deno.land/x/emit@0.37.0/mod.ts";

Options which can be set when using the transpile function.

Properties

optional
allowRemote: boolean

Allow remote modules to be loaded or read from the cache.

optional
cacheRoot: string

The cache root to use, overriding the default inferred DENO_DIR.

optional
cacheSetting: CacheSetting

The setting to use when loading sources from the Deno cache.

optional
compilerOptions: CompilerOptions

Compiler options which can be set when transpiling.

optional
importMap: ImportMap | URL | string

An import-map which will be applied to the imports, or the URL of an import map, or the path to an import map

optional
load: FetchCacher["load"]

Override the default loading mechanism with a custom loader. This can provide a way to use "in-memory" resources instead of fetching them remotely.