Skip to main content
Module

x/import/deps.ts>esbuildNative.analyzeMetafile

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

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>