Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/dep/esbuild.ts>build

A frugal web framework
Latest
function build
import { build } from "https://deno.land/x/frugal@0.9.6/dep/esbuild.ts";

This function invokes the "esbuild" command-line tool for you. It returns a promise that either resolves with a "BuildResult" object or rejects with a "BuildFailure" object.

  • Works in node: yes
  • Works in browser: yes

Documentation: https://esbuild.github.io/api/#build

Type Parameters

T extends BuildOptions

Parameters

options: SameShape<BuildOptions, T>

Returns

Promise<BuildResult<T>>