@module-federation/enhanced
Version:
This package provides enhanced features for module federation.
31 lines (30 loc) • 1.05 kB
TypeScript
import { Compiler } from "webpack";
//#region src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts
interface EmbedFederationRuntimePluginOptions {
/**
* Whether to enable runtime module embedding for all chunks.
* If false, only chunks that explicitly require it will be embedded.
*/
enableForAllChunks?: boolean;
}
/**
* Plugin that embeds Module Federation runtime code into chunks.
* It ensures proper initialization of federated modules and manages runtime requirements.
*/
declare class EmbedFederationRuntimePlugin {
private readonly options;
private readonly processedChunks;
constructor(options?: EmbedFederationRuntimePluginOptions);
/**
* Determines if runtime embedding should be enabled for a given chunk.
*/
private isEnabledForChunk;
/**
* Checks if a hook has already been tapped by this plugin.
*/
private isHookAlreadyTapped;
apply(compiler: Compiler): void;
}
//#endregion
export { EmbedFederationRuntimePlugin as default };
//# sourceMappingURL=EmbedFederationRuntimePlugin.d.ts.map