@module-federation/modern-js 0.0.0-next-20250714115720 → 0.0.0-next-20250717203314
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.
- package/dist/cjs/cli/configPlugin.js +4 -2
- package/dist/esm/cli/configPlugin.js +4 -2
- package/dist/esm-node/cli/configPlugin.js +4 -2
- package/dist/types/cli/index.d.ts +1 -1
- package/dist/types/cli/mfRuntimePlugins/inject-node-fetch.d.ts +2 -2
- package/dist/types/cli/mfRuntimePlugins/resolve-entry-ipv4.d.ts +2 -2
- package/dist/types/cli/mfRuntimePlugins/shared-strategy.d.ts +2 -2
- package/dist/types/types/index.d.ts +1 -3
- package/package.json +17 -17
|
@@ -351,11 +351,13 @@ const moduleFederationConfigPlugin = (userConfig) => ({
|
|
|
351
351
|
headers: corsHeaders
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
|
-
|
|
354
|
+
resolve: {
|
|
355
355
|
alias: {
|
|
356
356
|
// TODO: deprecated
|
|
357
357
|
"@modern-js/runtime/mf": require.resolve("@module-federation/modern-js/runtime")
|
|
358
|
-
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
source: {
|
|
359
361
|
define: defineConfig,
|
|
360
362
|
enableAsyncEntry: bundlerType === "rspack" ? (_modernjsConfig_source_enableAsyncEntry = (_modernjsConfig_source = modernjsConfig.source) === null || _modernjsConfig_source === void 0 ? void 0 : _modernjsConfig_source.enableAsyncEntry) !== null && _modernjsConfig_source_enableAsyncEntry !== void 0 ? _modernjsConfig_source_enableAsyncEntry : true : (_modernjsConfig_source1 = modernjsConfig.source) === null || _modernjsConfig_source1 === void 0 ? void 0 : _modernjsConfig_source1.enableAsyncEntry
|
|
361
363
|
},
|
|
@@ -348,11 +348,13 @@ var moduleFederationConfigPlugin = function(userConfig) {
|
|
|
348
348
|
headers: corsHeaders
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
|
-
|
|
351
|
+
resolve: {
|
|
352
352
|
alias: {
|
|
353
353
|
// TODO: deprecated
|
|
354
354
|
"@modern-js/runtime/mf": require.resolve("@module-federation/modern-js/runtime")
|
|
355
|
-
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
source: {
|
|
356
358
|
define: defineConfig,
|
|
357
359
|
enableAsyncEntry: bundlerType === "rspack" ? (_modernjsConfig_source_enableAsyncEntry = (_modernjsConfig_source = modernjsConfig.source) === null || _modernjsConfig_source === void 0 ? void 0 : _modernjsConfig_source.enableAsyncEntry) !== null && _modernjsConfig_source_enableAsyncEntry !== void 0 ? _modernjsConfig_source_enableAsyncEntry : true : (_modernjsConfig_source1 = modernjsConfig.source) === null || _modernjsConfig_source1 === void 0 ? void 0 : _modernjsConfig_source1.enableAsyncEntry
|
|
358
360
|
},
|
|
@@ -310,11 +310,13 @@ const moduleFederationConfigPlugin = (userConfig) => ({
|
|
|
310
310
|
headers: corsHeaders
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
|
-
|
|
313
|
+
resolve: {
|
|
314
314
|
alias: {
|
|
315
315
|
// TODO: deprecated
|
|
316
316
|
"@modern-js/runtime/mf": require.resolve("@module-federation/modern-js/runtime")
|
|
317
|
-
}
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
source: {
|
|
318
320
|
define: defineConfig,
|
|
319
321
|
enableAsyncEntry: bundlerType === "rspack" ? (_modernjsConfig_source_enableAsyncEntry = (_modernjsConfig_source = modernjsConfig.source) === null || _modernjsConfig_source === void 0 ? void 0 : _modernjsConfig_source.enableAsyncEntry) !== null && _modernjsConfig_source_enableAsyncEntry !== void 0 ? _modernjsConfig_source_enableAsyncEntry : true : (_modernjsConfig_source1 = modernjsConfig.source) === null || _modernjsConfig_source1 === void 0 ? void 0 : _modernjsConfig_source1.enableAsyncEntry
|
|
320
322
|
},
|
|
@@ -3,4 +3,4 @@ import type { PluginOptions } from '../types';
|
|
|
3
3
|
export declare const moduleFederationPlugin: (userConfig?: PluginOptions) => CliPluginFuture<AppTools>;
|
|
4
4
|
export default moduleFederationPlugin;
|
|
5
5
|
export { createModuleFederationConfig } from '@module-federation/enhanced';
|
|
6
|
-
export type {
|
|
6
|
+
export type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const injectNodeFetchPlugin: () =>
|
|
1
|
+
import type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
|
|
2
|
+
declare const injectNodeFetchPlugin: () => ModuleFederationRuntimePlugin;
|
|
3
3
|
export default injectNodeFetchPlugin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const resolveEntryIpv4Plugin: () =>
|
|
1
|
+
import type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
|
|
2
|
+
declare const resolveEntryIpv4Plugin: () => ModuleFederationRuntimePlugin;
|
|
3
3
|
export default resolveEntryIpv4Plugin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const sharedStrategy: () =>
|
|
1
|
+
import type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
|
|
2
|
+
declare const sharedStrategy: () => ModuleFederationRuntimePlugin;
|
|
3
3
|
export default sharedStrategy;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { moduleFederationPlugin } from '@module-federation/sdk';
|
|
2
|
-
import type { ModuleFederationPlugin as WebpackModuleFederationPlugin } from '@module-federation/enhanced';
|
|
3
|
-
import type { ModuleFederationPlugin as RspackModuleFederationPlugin } from '@module-federation/enhanced/rspack';
|
|
4
2
|
export interface PluginOptions {
|
|
5
3
|
config?: moduleFederationPlugin.ModuleFederationPluginOptions;
|
|
6
4
|
configPath?: string;
|
|
@@ -21,4 +19,4 @@ export interface InternalModernPluginOptions {
|
|
|
21
19
|
userConfig?: PluginOptions;
|
|
22
20
|
fetchServerQuery?: Record<string, unknown>;
|
|
23
21
|
}
|
|
24
|
-
export type BundlerPlugin =
|
|
22
|
+
export type BundlerPlugin = any;
|
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-20250717203314",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -112,30 +112,30 @@
|
|
|
112
112
|
"author": "hanric <hanric.zhang@gmail.com>",
|
|
113
113
|
"license": "MIT",
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@modern-js/utils": "2.
|
|
116
|
-
"@modern-js/node-bundle-require": "2.
|
|
115
|
+
"@modern-js/utils": "2.68.2",
|
|
116
|
+
"@modern-js/node-bundle-require": "2.68.2",
|
|
117
117
|
"fs-extra": "11.3.0",
|
|
118
118
|
"lru-cache": "10.4.3",
|
|
119
119
|
"@swc/helpers": "^0.5.17",
|
|
120
120
|
"node-fetch": "~3.3.0",
|
|
121
121
|
"react-error-boundary": "4.1.2",
|
|
122
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
123
|
-
"@module-federation/bridge-react": "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-
|
|
122
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250717203314",
|
|
123
|
+
"@module-federation/bridge-react": "0.0.0-next-20250717203314",
|
|
124
|
+
"@module-federation/enhanced": "0.0.0-next-20250717203314",
|
|
125
|
+
"@module-federation/runtime": "0.0.0-next-20250717203314",
|
|
126
|
+
"@module-federation/node": "0.0.0-next-20250717203314",
|
|
127
|
+
"@module-federation/sdk": "0.0.0-next-20250717203314",
|
|
128
|
+
"@module-federation/cli": "0.0.0-next-20250717203314"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@modern-js/core": "2.
|
|
131
|
+
"@modern-js/core": "2.68.2",
|
|
132
132
|
"@rsbuild/core": "1.3.21",
|
|
133
|
-
"@modern-js/app-tools": "2.
|
|
134
|
-
"@modern-js/server-runtime": "2.
|
|
135
|
-
"@modern-js/module-tools": "2.
|
|
136
|
-
"@modern-js/runtime": "2.
|
|
137
|
-
"@modern-js/tsconfig": "2.
|
|
138
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
133
|
+
"@modern-js/app-tools": "2.68.2",
|
|
134
|
+
"@modern-js/server-runtime": "2.68.2",
|
|
135
|
+
"@modern-js/module-tools": "2.68.2",
|
|
136
|
+
"@modern-js/runtime": "2.68.2",
|
|
137
|
+
"@modern-js/tsconfig": "2.68.2",
|
|
138
|
+
"@module-federation/manifest": "0.0.0-next-20250717203314"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"react": ">=17",
|