@esmx/core
Version:
A high-performance microfrontend framework supporting Vue, React, Preact, Solid, and Svelte with SSR and Module Federation capabilities.
17 lines (16 loc) • 503 B
TypeScript
import type { ImportMap } from '@esmx/import';
export interface ImportMapManifest {
name: string;
imports: Record<string, string>;
exports: Record<string, {
name: string;
file: string;
identifier: string;
rewrite: boolean;
}>;
}
export declare function getImportMap({ manifests, getFile, getScope }: {
manifests: readonly ImportMapManifest[];
getScope: (name: string) => string;
getFile: (name: string, file: string) => string;
}): ImportMap;