@module-federation/sdk 0.0.0-refactor-manifest-20251015114345 → 0.0.0-refactor-manifest-20251017031825
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.
|
@@ -72,7 +72,6 @@ export type DataPrefetch = boolean;
|
|
|
72
72
|
export interface AdditionalDataOptions {
|
|
73
73
|
stats: Stats;
|
|
74
74
|
manifest?: Manifest;
|
|
75
|
-
pluginOptions: ModuleFederationPluginOptions;
|
|
76
75
|
compiler: webpack.Compiler;
|
|
77
76
|
compilation: webpack.Compilation;
|
|
78
77
|
bundler: 'webpack' | 'rspack';
|
|
@@ -81,7 +80,7 @@ export interface PluginManifestOptions {
|
|
|
81
80
|
filePath?: string;
|
|
82
81
|
disableAssetsAnalyze?: boolean;
|
|
83
82
|
fileName?: string;
|
|
84
|
-
additionalData?: (options: AdditionalDataOptions) => Promise<
|
|
83
|
+
additionalData?: (options: AdditionalDataOptions) => Promise<void> | void;
|
|
85
84
|
}
|
|
86
85
|
export interface PluginDevOptions {
|
|
87
86
|
disableLiveReload?: boolean;
|
|
@@ -216,8 +215,23 @@ export interface ModuleFederationPluginOptions {
|
|
|
216
215
|
};
|
|
217
216
|
bridge?: {
|
|
218
217
|
/**
|
|
218
|
+
* Enables bridge router functionality for React applications.
|
|
219
|
+
* When enabled, automatically handles routing context and basename injection
|
|
220
|
+
* for micro-frontend applications using react-router-dom.
|
|
221
|
+
*
|
|
222
|
+
* @default false
|
|
223
|
+
*/
|
|
224
|
+
enableBridgeRouter?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* @deprecated Use `enableBridgeRouter: false` instead.
|
|
227
|
+
*
|
|
219
228
|
* Disables the default alias setting in the bridge.
|
|
220
229
|
* When true, users must manually handle basename through root component props.
|
|
230
|
+
*
|
|
231
|
+
* Migration:
|
|
232
|
+
* - `disableAlias: true` → `enableBridgeRouter: false`
|
|
233
|
+
* - `disableAlias: false` → `enableBridgeRouter: true`
|
|
234
|
+
*
|
|
221
235
|
* @default false
|
|
222
236
|
*/
|
|
223
237
|
disableAlias?: boolean;
|
package/package.json
CHANGED