A tool to generate an HTML report from esbuild's metafile output, visualizing bundle metadata such as file sizes, dependencies, and timings. Version 1.0.3, stable. Designed for esbuild, it works as a plugin or standalone function. Differentiable by its interactive, self-contained HTML report that aids debugging and optimization of esbuild builds. Supports CommonJS only.
npm install esbuild-metadata-reportNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using esbuild-metadata-report as an esbuild plugin to generate an HTML report from the build metafile.
Install @types/esbuild-metadata-report if available, or create custom declarations.
Ensure metafile: true is set in esbuild.build options.
Use dynamic import() in ESM projects if needed, but prefer require for now.
npm install esbuild-metadata-report
Use const metadataReport = require('esbuild-metadata-report')Pass metafile: result.metafile in options object.