interface BuildError

An esbuild failure, captured for display on the run's error page.

const error: BuildError = {
  type: 'Build Error',
  formatted: '✘ [ERROR] Could not resolve "./missing.ts"',
};
error.type; // 'Build Error' — becomes the fallback page's heading

Properties

type: string

Short error class used as the page heading (e.g. 'Build Error').

formatted: string

Pre-formatted esbuild message block.

Usage

import { type BuildError } from "lib/types.ts";