FynMesh API
    Preparing search index...

    Type Alias FederationRuntime

    Type for the federation runtime

    type FederationRuntime = {
        collectedShares: CollectedShares;
        containerId: string;
        debug: (...args: unknown[]) => void;
        declaredRanges: DeclaredRanges;
        dynamicImports: any[];
        entryId: string;
        fynappManifest?: any;
        graphSettled?: ModuleWaitAlarm;
        lastModuleWait: ModuleWaitAlarm;
        options: FederationPluginOptions;
        rvmTails?: RvmTails;
        shareSurfaces?: Record<string, ShareSurface>;
    }
    Index
    collectedShares: CollectedShares
    containerId: string
    debug: (...args: unknown[]) => void
    declaredRanges: DeclaredRanges
    dynamicImports: any[]

    Collected dynamic import data for custom types that have collectData: true

    entryId: string
    fynappManifest?: any

    FynApp manifest data to be embedded in entry file (optional)

    graphSettled?: ModuleWaitAlarm

    Settles once every module but the share surfaces themselves has loaded, which is when a surface can be told what its package covers

    lastModuleWait: ModuleWaitAlarm

    Module timing coordination mechanism that ensures proper container initialization

    This alarm mechanism serves several critical purposes:

    • Ensures all modules are resolved before finalizing the federation container
    • Coordinates the asynchronous module resolution process
    • Prevents race conditions where the container might be generated prematurely
    • Waits until the container entry is the only remaining unresolved module
    • Allows for complete dependency graph and version information collection
    • Provides synchronization between module discovery and container code generation

    The alarm resets its timer whenever new modules are processed and resolves when only the federation container entry point remains unresolved.

    rvmTails?: RvmTails
    shareSurfaces?: Record<string, ShareSurface>

    Generated modules that stand in for a shared package's whole export surface, by module id - see utils/shared-chunks.mts