Bun

interface

HTMLBundle

interface HTMLBundle

Used when importing an HTML file at runtime or at build time.

import app from "./index.html";
  • files?: { headers: { content-type: string; etag: string }; input: string; isEntry: boolean; loader: Loader; path: string }[]

    Array of generated output files with metadata. This only exists when built ahead of time with Bun.build or bun build

  • index: string