import { build } from "https://deno.land/x/esbuild@v0.17.0/mod.d.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-api
Type Parameters
SpecificOptions extends BuildOptions
Parameters
options: SpecificOptions
Returns
Promise<BuildResult<SpecificOptions>>
Parameters
options: BuildOptions
Returns
Promise<BuildResult>