Setu-TS
    Preparing search index...

    Type Alias ModuleLoader

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

    Loads an ES module by absolute URL.

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

    Type Declaration

      • (url: string, root?: string): Promise<Record<string, unknown>>
      • Parameters

        • url: string

          Absolute module URL to import

        • Optionalroot: string

          The project the module belongs to (absolute). The default loader looks for configuration no higher than this, so a file planted above the project cannot redirect the module's imports; a loader may ignore it.

        Returns Promise<Record<string, unknown>>

        The module's exports