Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/gustwind/server-deps.ts>esbuild.initialize

πŸ³πŸ’¨ – Deno powered JSON oriented site generator
Go to Latest
function esbuild.initialize
import { esbuild } from "https://deno.land/x/gustwind@v0.34.0/server-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

Returns

Promise<void>