@module-federation/sdk 0.0.0-next-20240307082121 → 0.0.0-next-20240307111914
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type webpack from 'webpack';
|
|
1
2
|
import { Stats } from '../stats';
|
|
2
3
|
/**
|
|
3
4
|
* Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
|
|
@@ -63,11 +64,18 @@ export type Shared = (SharedItem | SharedObject)[] | SharedObject;
|
|
|
63
64
|
* A module that should be shared in the share scope.
|
|
64
65
|
*/
|
|
65
66
|
export type SharedItem = string;
|
|
67
|
+
export interface AdditionalDataOptions {
|
|
68
|
+
stats: Stats;
|
|
69
|
+
pluginOptions: ModuleFederationPluginOptions;
|
|
70
|
+
compiler: webpack.Compiler;
|
|
71
|
+
compilation: webpack.Compilation;
|
|
72
|
+
bundler: 'webpack' | 'rspack';
|
|
73
|
+
}
|
|
66
74
|
export interface PluginManifestOptions {
|
|
67
75
|
filePath?: string;
|
|
68
76
|
disableAssetsAnalyze?: boolean;
|
|
69
77
|
fileName?: string;
|
|
70
|
-
additionalData?: (
|
|
78
|
+
additionalData?: (options: AdditionalDataOptions) => Promise<Stats | void> | Stats | void;
|
|
71
79
|
}
|
|
72
80
|
export interface ModuleFederationPluginOptions {
|
|
73
81
|
/**
|