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

x/esbuild_deno_loader/test_deps.ts>esbuildNative.build

Deno module resolution for `esbuild`
Go to Latest
function esbuildNative.build
import { esbuildNative } from "https://deno.land/x/esbuild_deno_loader@0.7.2/test_deps.ts";
const { build } = esbuildNative;

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

SpecificOptions extends BuildOptions