Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/src/build/deps.ts>esbuildTypes.initialize

The next-gen web framework.
Extremely Popular
Go to Latest
function esbuildTypes.initialize
import { esbuildTypes } from "https://deno.land/x/fresh@1.4.0/src/build/deps.ts";
const { initialize } = esbuildTypes;

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/#browser

Returns

Promise<void>