Skip to main content
Module

x/dynamic_import_ponyfill/deps.ts>esbuildNative.formatMessages

🐎 A ponyfill for using dynamic imports within Deno Deploy.
Go to Latest
function esbuildNative.formatMessages
import { esbuildNative } from "https://deno.land/x/dynamic_import_ponyfill@v0.1.5/deps.ts";
const { formatMessages } = esbuildNative;

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.

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

Returns

Promise<string[]>