type alias ModuleLoader

Loads an ES module by absolute URL.

This is the seam unit tests replace. The default implementation performs a REAL dynamic import(), so the production path is the one exercised by test/integration/custom-schematic-real-import.test.ts.

Definition

(url: string) => Promise<Record<string, unknown>>

Usage

import { type ModuleLoader } from "cli/src/index.ts";