Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function esbuildTypes.analyzeMetafile
import { esbuildTypes } from "https://deno.land/x/fresh@1.3.0/src/build/deps.ts";
const { analyzeMetafile } = esbuildTypes;

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.

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

Documentation: https://esbuild.github.io/api/#analyze

Parameters

metafile: Metafile | string
optional
options: AnalyzeMetafileOptions

Returns

Promise<string>