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

22 lines (21 loc) 556 B
import type { RemoteName } from '../remote/remote-info.contract'; export type VersionName = string; export type Version = { tag: VersionName; }; export type ScopedVersion = Version & { file: string; }; export type SharedVersion = Version & { host: boolean; action: SharedVersionAction; remotes: SharedVersionMeta[]; }; export type SharedVersionAction = 'skip' | 'scope' | 'share'; export type SharedVersionMeta = { file: string; requiredVersion: string; strictVersion: boolean; cached: boolean; name: RemoteName; };