@module-federation/enhanced
Version:
This package provides enhanced features for module federation.
26 lines (25 loc) • 893 B
TypeScript
import { ShareFallback } from "./IndependentSharedPlugin.js";
import * as webpack$1 from "webpack";
//#region src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts
/**
* Map of shared module name to Map of runtime id to Set of exported names
* @example {
* 'antd': {
* 'main': Set(['Button', 'exportedName2']),
* },
* }
*/
type ReferencedExports = Map<string, Map<string, Set<string>>>;
declare const RuntimeModule: typeof webpack$1.RuntimeModule;
declare class IndependentSharedRuntimeModule extends RuntimeModule {
buildAssets: ShareFallback;
libraryType: string;
constructor(buildAssets: ShareFallback, libraryType: string);
/**
* @returns {string | null} runtime code
*/
generate(): string | null;
}
//#endregion
export { ReferencedExports, IndependentSharedRuntimeModule as default };
//# sourceMappingURL=IndependentSharedRuntimeModule.d.ts.map