FynMesh API
    Preparing search index...

    Class Container

    Federation Container class

    Index
    • Parameters

      • id: string
      • name: string
      • scopeName: string
      • version: string = "0.0.0"

        version of the container

      • Optionalfederation: any

      Returns Container

    $E: Record<string, string>

    exposed modules

    $P: Record<string, (ns: any) => unknown>

    For an expose that shares its chunk with other modules: takes that one module's exports off the chunk's namespace. Only federation reads it.

    share config

    Manglable: _S builds it and only federation reads it. Its neighbours $SS and $E are not — a generated container entry reads $SS, and the kernel reads $E off a container when a manifest is missing.

    the share scope object from the federation this container is sharing modules to/from

    id: string

    ID FederationJS given to the container, derived from name

    name: string

    Original name of the container from developer

    scope: string

    default scope name for this container

    url?: string

    URL of the container entry.

    The first url a registration for this container arrived with, and only that one -- a copy, kept for readers outside the runtime. Resolution asks getUrlForId instead, because the registration slot is where a container's one address lives; this is consulted only when that slot has no url to give.

    version: string

    version of this container

    • declare combined bundles

      Called from the container entry's top level rather than from _mfInit, because a module can be imported without anyone having initialized the container, and the map has to be in place before the first import either way.

      Parameters

      • bundles: Record<string, string[]>

        combined fileName -> the fileNames it carries

      Returns void

    • add expose

      Rollup can put several exposed modules in one chunk. The entry then hands in pick, which takes this module's exports off the chunk's namespace.

      Parameters

      • key: string
      • chunkId: any

      Returns void

    • Parameters

      • name: string

      Returns Promise<() => unknown>

    • Parameters

      • dep: string[]
      • declare: any
      • metas: any

      Returns unknown