vanilla-native-federation
Version:
A lightweight **runtime micro frontend orchestrator** that loads micro frontends built with native federation into any web page. It can cache dependencies across page reloads, making it perfect for traditional server-rendered hosts (PHP, Java, Rails, etc.
10 lines (9 loc) • 337 B
TypeScript
import type { ImportMap } from '../../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>;