mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 12:01:00 +00:00
20 lines
1.1 KiB
TypeScript
20 lines
1.1 KiB
TypeScript
import type { Compiler, RspackPluginInstance } from '@rspack/core';
|
|
import { moduleFederationPlugin } from '@module-federation/sdk';
|
|
import { RemoteEntryPlugin } from './RemoteEntryPlugin';
|
|
export declare const PLUGIN_NAME = "RspackModuleFederationPlugin";
|
|
type ResolveFn = typeof require.resolve;
|
|
export declare function resolveRspackRuntimeImplementation(implementation?: string, resolve?: ResolveFn): string;
|
|
export declare function resolveRspackRuntimeAlias(implementation: string, resolve?: ResolveFn): string;
|
|
export declare class ModuleFederationPlugin implements RspackPluginInstance {
|
|
readonly name = "RspackModuleFederationPlugin";
|
|
private _options;
|
|
private _statsPlugin?;
|
|
constructor(options: moduleFederationPlugin.ModuleFederationPluginOptions);
|
|
private _patchBundlerConfig;
|
|
private _checkSingleton;
|
|
apply(compiler: Compiler): void;
|
|
private _patchChunkSplit;
|
|
}
|
|
export declare const GetPublicPathPlugin: typeof RemoteEntryPlugin;
|
|
export { TreeShakingSharedPlugin, type TreeShakingSharedPluginOptions, } from './TreeShakingSharedPlugin';
|