UNPKG

vanilla-native-federation

Version:

A lightweight **runtime micro frontend orchestrator** that loads micro frontends built with native federation into any web page. Unlike other solutions, it caches dependencies across page reloads, making it perfect for traditional server-rendered apps (PH

15 lines (14 loc) 563 B
import type { SharedVersion, ScopedVersion } from './version.contract'; export type ExternalName = string; export type ScopedExternals = Record<string, ScopedExternal>; export declare const GLOBAL_SCOPE = "__GLOBAL__"; export declare const STRICT_SCOPE = "strict"; export type SharedExternal = { dirty: boolean; versions: SharedVersion[]; }; export type shareScope = Record<string, SharedExternal>; export type SharedExternals = Record<string, shareScope> & { [GLOBAL_SCOPE]: shareScope; }; export type ScopedExternal = Record<string, ScopedVersion>;