import * as mod from "https://email@example.com/mod.js";
Pretty-prints an analysis of the metafile JSON to a string. This is just for convenience to be able to match esbuild's pretty-printing exactly. If you want to customize it, you can just inspect the data in the metafile yourself.
A synchronous version of "analyzeMetafile".
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.
A synchronous version of "build".
Converts log messages to formatted message strings suitable for printing in the terminal. This allows you to reuse the built-in behavior of esbuild's log message formatter. This is a batch-oriented API for efficiency.
A synchronous version of "formatMessages".
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.
This function is similar to "build" but it serves the resulting files over HTTP on a localhost address with the specified port.
A synchronous version of "transform".