@module-federation/modern-js 0.0.0-next-20250703030214 → 0.0.0-next-20250704061325
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.
|
@@ -264,7 +264,7 @@ function patchBundlerConfig(options) {
|
|
|
264
264
|
const uniqueName = mfConfig.name || chain.output.get("uniqueName");
|
|
265
265
|
const chunkFileName = chain.output.get("chunkFilename");
|
|
266
266
|
if (typeof chunkFileName === "string" && uniqueName && !chunkFileName.includes(uniqueName)) {
|
|
267
|
-
const suffix = `${(0, import_sdk.encodeName)(uniqueName)}-[
|
|
267
|
+
const suffix = `${(0, import_sdk.encodeName)(uniqueName)}-[contenthash].js`;
|
|
268
268
|
chain.output.chunkFilename(chunkFileName.replace(".js", suffix));
|
|
269
269
|
}
|
|
270
270
|
}
|
|
@@ -252,7 +252,7 @@ function patchBundlerConfig(options) {
|
|
|
252
252
|
var uniqueName = mfConfig.name || chain.output.get("uniqueName");
|
|
253
253
|
var chunkFileName = chain.output.get("chunkFilename");
|
|
254
254
|
if (typeof chunkFileName === "string" && uniqueName && !chunkFileName.includes(uniqueName)) {
|
|
255
|
-
var suffix = "".concat(encodeName(uniqueName), "-[
|
|
255
|
+
var suffix = "".concat(encodeName(uniqueName), "-[contenthash].js");
|
|
256
256
|
chain.output.chunkFilename(chunkFileName.replace(".js", suffix));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -223,7 +223,7 @@ function patchBundlerConfig(options) {
|
|
|
223
223
|
const uniqueName = mfConfig.name || chain.output.get("uniqueName");
|
|
224
224
|
const chunkFileName = chain.output.get("chunkFilename");
|
|
225
225
|
if (typeof chunkFileName === "string" && uniqueName && !chunkFileName.includes(uniqueName)) {
|
|
226
|
-
const suffix = `${encodeName(uniqueName)}-[
|
|
226
|
+
const suffix = `${encodeName(uniqueName)}-[contenthash].js`;
|
|
227
227
|
chain.output.chunkFilename(chunkFileName.replace(".js", suffix));
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GlobalModuleInfo } from '@module-federation/sdk';
|
|
2
2
|
import type { DataFetchParams, MF_DATA_FETCH_MAP, NoSSRRemoteInfo } from '../interfaces/global';
|
|
3
|
-
import type {
|
|
3
|
+
import type { FederationHost } from '@module-federation/enhanced/runtime';
|
|
4
4
|
export declare const getDataFetchInfo: ({ name, alias, id, remoteSnapshot, }: {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -22,5 +22,5 @@ export declare function getDataFetchMapKey(dataFetchInfo?: ReturnType<typeof get
|
|
|
22
22
|
name: string;
|
|
23
23
|
version?: string;
|
|
24
24
|
}): string | undefined;
|
|
25
|
-
export declare function loadDataFetchModule(instance:
|
|
25
|
+
export declare function loadDataFetchModule(instance: FederationHost, id: string): Promise<(params: DataFetchParams) => Promise<unknown>>;
|
|
26
26
|
export declare function isDataLoaderExpose(exposeKey: string): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function getLoadedRemoteInfos(id: string, instance:
|
|
1
|
+
import type { FederationHost } from '@module-federation/enhanced/runtime';
|
|
2
|
+
export declare function getLoadedRemoteInfos(id: string, instance: FederationHost | null): {
|
|
3
3
|
snapshot: import("@module-federation/sdk/.").ModuleInfo | import("@module-federation/sdk/.").ManifestProvider | import("@module-federation/sdk/.").PureEntryProvider | undefined;
|
|
4
4
|
expose: string;
|
|
5
5
|
alias?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250704061325",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
"@swc/helpers": "^0.5.17",
|
|
121
121
|
"node-fetch": "~3.3.0",
|
|
122
122
|
"react-error-boundary": "4.1.2",
|
|
123
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
124
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
125
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
126
|
-
"@module-federation/node": "0.0.0-next-
|
|
127
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
128
|
-
"@module-federation/cli": "0.0.0-next-
|
|
123
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250704061325",
|
|
124
|
+
"@module-federation/enhanced": "0.0.0-next-20250704061325",
|
|
125
|
+
"@module-federation/runtime": "0.0.0-next-20250704061325",
|
|
126
|
+
"@module-federation/node": "0.0.0-next-20250704061325",
|
|
127
|
+
"@module-federation/sdk": "0.0.0-next-20250704061325",
|
|
128
|
+
"@module-federation/cli": "0.0.0-next-20250704061325"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@modern-js/core": "2.67.5",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@modern-js/module-tools": "2.67.6",
|
|
136
136
|
"@modern-js/runtime": "2.67.6",
|
|
137
137
|
"@modern-js/tsconfig": "2.67.6",
|
|
138
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
138
|
+
"@module-federation/manifest": "0.0.0-next-20250704061325"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"react": ">=17",
|