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

31 lines (30 loc) 849 B
import type { SharedVersionAction } from '../externals/version.contract'; import type { RemoteEntryUrl } from './manifest.contract'; import type { ExposesInfo } from '@softarc/native-federation-runtime'; type SharedInfo = { singleton: boolean; strictVersion: boolean; requiredVersion: string; version?: string; packageName: string; outFileName: string; shareScope?: string; dev?: { entryPoint: string; }; }; interface FederationInfo { name: string; exposes: ExposesInfo[]; shared: SharedInfo[]; } type RemoteEntry = FederationInfo & { url: RemoteEntryUrl; host?: boolean; override?: boolean; }; type SharedInfoActions = Record<string, { action: SharedVersionAction; override?: string; }>; export { RemoteEntry, FederationInfo, ExposesInfo, SharedInfo, SharedInfoActions };