Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/packup/deps.ts>build

📦 Zero-config web application packager for Deno
Go to Latest
function build
import { build } from "https://deno.land/x/packup@v0.2.4/deps.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

Parameters

options: BuildOptions & { write: false; }

Returns

Promise<BuildResult & { outputFiles: OutputFile[]; }>

Parameters

options: BuildOptions & { incremental: true; metafile: true; }

Returns

Promise<BuildIncremental & { metafile: Metafile; }>

Parameters

options: BuildOptions & { incremental: true; }

Returns

Promise<BuildIncremental>

Parameters

options: BuildOptions & { metafile: true; }

Returns

Promise<BuildResult & { metafile: Metafile; }>

Parameters

options: BuildOptions

Returns

Promise<BuildResult>