import { esbuild } from "https://deno.land/x/esbuild_deno_loader@0.5.2/test_deps.ts";
const { initialize } = esbuild;
This configures the browser-based version of esbuild. It is necessary to call this first and wait for the returned promise to be resolved before making other API calls when using esbuild in the browser.
- Works in node: yes
- Works in browser: yes ("options" is required)
Documentation: https://esbuild.github.io/api/#running-in-the-browser
Parameters
options: InitializeOptions