Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/esbuild_deno_loader/deps.ts>esbuild.InitializeOptions

Deno module resolution for `esbuild`
Go to Latest
interface esbuild.InitializeOptions
import { type esbuild } from "https://deno.land/x/esbuild_deno_loader@0.7.1/deps.ts";
const { InitializeOptions } = esbuild;

Properties

optional
wasmURL: string | URL

The URL of the "esbuild.wasm" file. This must be provided when running esbuild in the browser.

optional
wasmModule: WebAssembly.Module

The result of calling "new WebAssembly.Module(buffer)" where "buffer" is a typed array or ArrayBuffer containing the binary code of the "esbuild.wasm" file.

You can use this as an alternative to "wasmURL" for environments where it's not possible to download the WebAssembly module.

optional
worker: boolean

By default esbuild runs the WebAssembly-based browser API in a web worker to avoid blocking the UI thread. This can be disabled by setting "worker" to false.