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
10 lines (9 loc) • 335 B
TypeScript
import type { ImportMap } from 'lib/1.domain';
export type ImportMapConfig = {
loadModuleFn: (url: string) => Promise<unknown>;
setImportMapFn: SetImportMap;
};
export type SetImportMap = (importMap: ImportMap, opts?: {
override?: boolean;
}) => Promise<ImportMap>;
export type ImportMapOptions = Partial<ImportMapConfig>;