@module-federation/enhanced
Version:
This package provides enhanced features for module federation.
30 lines (29 loc) • 1.37 kB
TypeScript
import { ExposeOptions } from "./ContainerEntryModule.js";
import { containerPlugin } from "@module-federation/sdk";
import * as webpack$1 from "webpack";
//#region src/lib/container/ContainerEntryDependency.d.ts
declare const Dependency: typeof webpack$1.Dependency;
declare class ContainerEntryDependency extends Dependency {
name: string;
exposes: [string, ExposeOptions][];
shareScope: string | string[];
injectRuntimeEntry: string;
dataPrefetch: containerPlugin.ContainerPluginOptions['dataPrefetch'];
/**
* @param {string} name entry name
* @param {[string, ExposeOptions][]} exposes list of exposed modules
* @param {string|string[]} shareScope name of the share scope
* @param {string[]} injectRuntimeEntry the path of injectRuntime file.
* @param {containerPlugin.ContainerPluginOptions['dataPrefetch']} dataPrefetch whether enable dataPrefetch
*/
constructor(name: string, exposes: [string, ExposeOptions][], shareScope: string | string[], injectRuntimeEntry: string, dataPrefetch: containerPlugin.ContainerPluginOptions['dataPrefetch']);
/**
* @returns {string | null} an identifier to merge equal requests
*/
getResourceIdentifier(): string | null;
get type(): string;
get category(): string;
}
//#endregion
export { ContainerEntryDependency as default };
//# sourceMappingURL=ContainerEntryDependency.d.ts.map