@module-federation/modern-js 0.0.0-next-20241017090853 → 0.0.0-next-20241017102355
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.
|
@@ -41,7 +41,7 @@ var import_exportRoutePlugin = require("./exportRoutePlugin");
|
|
|
41
41
|
var import_importRoutesPlugin = require("./importRoutesPlugin");
|
|
42
42
|
var import_utils3 = require("./utils");
|
|
43
43
|
var import_constant2 = require("../../constant");
|
|
44
|
-
const moduleFederationRoutesPlugin = ({ userConfig, internalOptions }) => {
|
|
44
|
+
const moduleFederationRoutesPlugin = ({ userConfig, internalOptions, serverPlugin, transformRuntimeOptions }) => {
|
|
45
45
|
const entries = /* @__PURE__ */ new Set();
|
|
46
46
|
const remotePathMap = {};
|
|
47
47
|
const ssrByRouteIdsMap = {};
|
|
@@ -50,7 +50,9 @@ const moduleFederationRoutesPlugin = ({ userConfig, internalOptions }) => {
|
|
|
50
50
|
internalOptions,
|
|
51
51
|
entries,
|
|
52
52
|
remotePathMap,
|
|
53
|
-
ssrByRouteIdsMap
|
|
53
|
+
ssrByRouteIdsMap,
|
|
54
|
+
serverPlugin,
|
|
55
|
+
transformRuntimeOptions
|
|
54
56
|
};
|
|
55
57
|
return {
|
|
56
58
|
name: "@modern-js/plugin-module-federation-route",
|
|
@@ -11,7 +11,7 @@ import { moduleFederationImportRoutePlugin } from "./importRoutesPlugin";
|
|
|
11
11
|
import { addShared } from "./utils";
|
|
12
12
|
import { DEFAULT_ENTRY, ROUTE_ID } from "../../constant";
|
|
13
13
|
var moduleFederationRoutesPlugin = function(param) {
|
|
14
|
-
var userConfig = param.userConfig, internalOptions = param.internalOptions;
|
|
14
|
+
var userConfig = param.userConfig, internalOptions = param.internalOptions, serverPlugin = param.serverPlugin, transformRuntimeOptions = param.transformRuntimeOptions;
|
|
15
15
|
var entries = /* @__PURE__ */ new Set();
|
|
16
16
|
var remotePathMap = {};
|
|
17
17
|
var ssrByRouteIdsMap = {};
|
|
@@ -20,7 +20,9 @@ var moduleFederationRoutesPlugin = function(param) {
|
|
|
20
20
|
internalOptions,
|
|
21
21
|
entries,
|
|
22
22
|
remotePathMap,
|
|
23
|
-
ssrByRouteIdsMap
|
|
23
|
+
ssrByRouteIdsMap,
|
|
24
|
+
serverPlugin,
|
|
25
|
+
transformRuntimeOptions
|
|
24
26
|
};
|
|
25
27
|
return {
|
|
26
28
|
name: "@modern-js/plugin-module-federation-route",
|
|
@@ -7,7 +7,7 @@ import { moduleFederationExportRoutePlugin } from "./exportRoutePlugin";
|
|
|
7
7
|
import { moduleFederationImportRoutePlugin } from "./importRoutesPlugin";
|
|
8
8
|
import { addShared } from "./utils";
|
|
9
9
|
import { DEFAULT_ENTRY, ROUTE_ID } from "../../constant";
|
|
10
|
-
const moduleFederationRoutesPlugin = ({ userConfig, internalOptions }) => {
|
|
10
|
+
const moduleFederationRoutesPlugin = ({ userConfig, internalOptions, serverPlugin, transformRuntimeOptions }) => {
|
|
11
11
|
const entries = /* @__PURE__ */ new Set();
|
|
12
12
|
const remotePathMap = {};
|
|
13
13
|
const ssrByRouteIdsMap = {};
|
|
@@ -16,7 +16,9 @@ const moduleFederationRoutesPlugin = ({ userConfig, internalOptions }) => {
|
|
|
16
16
|
internalOptions,
|
|
17
17
|
entries,
|
|
18
18
|
remotePathMap,
|
|
19
|
-
ssrByRouteIdsMap
|
|
19
|
+
ssrByRouteIdsMap,
|
|
20
|
+
serverPlugin,
|
|
21
|
+
transformRuntimeOptions
|
|
20
22
|
};
|
|
21
23
|
return {
|
|
22
24
|
name: "@modern-js/plugin-module-federation-route",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CliPlugin, AppTools } from '@modern-js/app-tools';
|
|
2
2
|
import type { RoutesPluginOptions } from '../../types/routes';
|
|
3
|
-
export declare const moduleFederationRoutesPlugin: ({ userConfig, internalOptions, }: RoutesPluginOptions) => CliPlugin<AppTools>;
|
|
3
|
+
export declare const moduleFederationRoutesPlugin: ({ userConfig, internalOptions, serverPlugin, transformRuntimeOptions, }: RoutesPluginOptions) => CliPlugin<AppTools>;
|
|
4
4
|
export default moduleFederationRoutesPlugin;
|
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-20241017102355",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"@babel/parser": "7.25.3",
|
|
95
95
|
"@babel/traverse": "7.25.3",
|
|
96
96
|
"@babel/types": "7.25.2",
|
|
97
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
98
|
-
"@module-federation/node": "0.0.0-next-
|
|
99
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
97
|
+
"@module-federation/enhanced": "0.0.0-next-20241017102355",
|
|
98
|
+
"@module-federation/node": "0.0.0-next-20241017102355",
|
|
99
|
+
"@module-federation/sdk": "0.0.0-next-20241017102355"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@modern-js/app-tools": "2.60.2",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@types/babel__traverse": "7.20.6",
|
|
109
109
|
"@types/babel__generator": "7.6.8",
|
|
110
110
|
"@modern-js/server-core": "2.60.2",
|
|
111
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
111
|
+
"@module-federation/manifest": "0.0.0-next-20241017102355"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"@modern-js/runtime": "^2.60.2",
|