@module-federation/modern-js 0.0.0-next-20240910102933 → 0.0.0-next-20240911025149
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/{dataLoader/ast/index.js → constant.js} +6 -6
- package/dist/cjs/cli/index.js +1 -5
- package/dist/cjs/cli/mfRuntimePlugins/{node-fetch.js → inject-node-fetch.js} +6 -6
- package/dist/cjs/cli/mfRuntimePlugins/resolve-entry-ipv4.js +38 -40
- package/dist/cjs/{runtime/withMFRouteId.js → cli/mfRuntimePlugins/shared-strategy.js} +23 -11
- package/dist/cjs/cli/ssrPlugin.js +1 -1
- package/dist/cjs/cli/utils.js +6 -11
- package/dist/cjs/cli/utils.spec.js +6 -5
- package/dist/cjs/constant.js +2 -32
- package/dist/cjs/runtime/index.js +1 -4
- package/dist/cjs/ssr-runtime/plugin.js +7 -7
- package/dist/esm/cli/constant.js +4 -0
- package/dist/esm/cli/index.js +1 -4
- package/dist/esm/cli/mfRuntimePlugins/{node-fetch.js → inject-node-fetch.js} +3 -3
- package/dist/esm/cli/mfRuntimePlugins/shared-strategy.js +25 -0
- package/dist/esm/cli/ssrPlugin.js +1 -1
- package/dist/esm/cli/utils.js +5 -9
- package/dist/esm/cli/utils.spec.js +6 -5
- package/dist/esm/constant.js +1 -21
- package/dist/esm/runtime/index.js +1 -3
- package/dist/esm/ssr-runtime/plugin.js +10 -7
- package/dist/esm-node/cli/constant.js +4 -0
- package/dist/esm-node/cli/index.js +1 -5
- package/dist/esm-node/cli/mfRuntimePlugins/{node-fetch.js → inject-node-fetch.js} +3 -3
- package/dist/esm-node/cli/mfRuntimePlugins/resolve-entry-ipv4.js +38 -40
- package/dist/esm-node/cli/mfRuntimePlugins/shared-strategy.js +23 -0
- package/dist/esm-node/cli/ssrPlugin.js +1 -1
- package/dist/esm-node/cli/utils.js +5 -9
- package/dist/esm-node/cli/utils.spec.js +6 -5
- package/dist/esm-node/constant.js +1 -21
- package/dist/esm-node/runtime/index.js +1 -3
- package/dist/esm-node/ssr-runtime/plugin.js +7 -7
- package/dist/types/cli/constant.d.ts +1 -0
- package/dist/types/cli/mfRuntimePlugins/shared-strategy.d.ts +3 -0
- package/dist/types/cli/utils.d.ts +0 -2
- package/dist/types/constant.d.ts +0 -10
- package/dist/types/runtime/index.d.ts +0 -1
- package/dist/types/types/index.d.ts +0 -9
- package/package.json +11 -48
- package/dist/cjs/cli/dataLoader/ast/constant.js +0 -49
- package/dist/cjs/cli/dataLoader/ast/generateRoutes.js +0 -141
- package/dist/cjs/cli/dataLoader/generateRouteFile.js +0 -143
- package/dist/cjs/cli/dataLoader/patchMFConfig.js +0 -140
- package/dist/cjs/cli/dataLoader/plugin.js +0 -199
- package/dist/cjs/cli/mfRuntimePlugins/node.js +0 -41
- package/dist/cjs/cli/server/dataLoaderPlugin.js +0 -82
- package/dist/cjs/cli/server/fetchRemoteFullRoutesMap.js +0 -69
- package/dist/cjs/interfaces/route.js +0 -16
- package/dist/cjs/runtime/dataLoader/plugin-inject-assets.js +0 -84
- package/dist/cjs/runtime/dataLoader/plugin.js +0 -74
- package/dist/cjs/runtime/dataLoader/utils.js +0 -106
- package/dist/esm/cli/dataLoader/ast/constant.js +0 -18
- package/dist/esm/cli/dataLoader/ast/generateRoutes.js +0 -108
- package/dist/esm/cli/dataLoader/ast/index.js +0 -4
- package/dist/esm/cli/dataLoader/generateRouteFile.js +0 -293
- package/dist/esm/cli/dataLoader/patchMFConfig.js +0 -106
- package/dist/esm/cli/dataLoader/plugin.js +0 -214
- package/dist/esm/cli/mfRuntimePlugins/node.js +0 -13
- package/dist/esm/cli/server/dataLoaderPlugin.js +0 -105
- package/dist/esm/cli/server/fetchRemoteFullRoutesMap.js +0 -88
- package/dist/esm/interfaces/route.js +0 -0
- package/dist/esm/runtime/dataLoader/plugin-inject-assets.js +0 -63
- package/dist/esm/runtime/dataLoader/plugin.js +0 -93
- package/dist/esm/runtime/dataLoader/utils.js +0 -77
- package/dist/esm/runtime/withMFRouteId.js +0 -7
- package/dist/esm-node/cli/dataLoader/ast/constant.js +0 -18
- package/dist/esm-node/cli/dataLoader/ast/generateRoutes.js +0 -107
- package/dist/esm-node/cli/dataLoader/ast/index.js +0 -4
- package/dist/esm-node/cli/dataLoader/generateRouteFile.js +0 -108
- package/dist/esm-node/cli/dataLoader/patchMFConfig.js +0 -106
- package/dist/esm-node/cli/dataLoader/plugin.js +0 -164
- package/dist/esm-node/cli/mfRuntimePlugins/node.js +0 -11
- package/dist/esm-node/cli/server/dataLoaderPlugin.js +0 -62
- package/dist/esm-node/cli/server/fetchRemoteFullRoutesMap.js +0 -44
- package/dist/esm-node/interfaces/route.js +0 -0
- package/dist/esm-node/runtime/dataLoader/plugin-inject-assets.js +0 -60
- package/dist/esm-node/runtime/dataLoader/plugin.js +0 -50
- package/dist/esm-node/runtime/dataLoader/utils.js +0 -77
- package/dist/esm-node/runtime/withMFRouteId.js +0 -7
- package/dist/types/cli/dataLoader/ast/constant.d.ts +0 -8
- package/dist/types/cli/dataLoader/ast/generateRoutes.d.ts +0 -5
- package/dist/types/cli/dataLoader/ast/index.d.ts +0 -1
- package/dist/types/cli/dataLoader/generateRouteFile.d.ts +0 -7
- package/dist/types/cli/dataLoader/patchMFConfig.d.ts +0 -10
- package/dist/types/cli/dataLoader/plugin.d.ts +0 -6
- package/dist/types/cli/mfRuntimePlugins/node.d.ts +0 -3
- package/dist/types/cli/server/dataLoaderPlugin.d.ts +0 -10
- package/dist/types/cli/server/fetchRemoteFullRoutesMap.d.ts +0 -10
- package/dist/types/interfaces/route.d.ts +0 -12
- package/dist/types/runtime/dataLoader/plugin-inject-assets.d.ts +0 -2
- package/dist/types/runtime/dataLoader/plugin.d.ts +0 -2
- package/dist/types/runtime/dataLoader/utils.d.ts +0 -22
- package/dist/types/runtime/withMFRouteId.d.ts +0 -1
- /package/dist/types/cli/mfRuntimePlugins/{node-fetch.d.ts → inject-node-fetch.d.ts} +0 -0
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var generateRouteFile_exports = {};
|
|
30
|
-
__export(generateRouteFile_exports, {
|
|
31
|
-
calcPathName: () => calcPathName,
|
|
32
|
-
generateRouteFile: () => generateRouteFile
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(generateRouteFile_exports);
|
|
35
|
-
var import_utils = require("@modern-js/utils");
|
|
36
|
-
var import_path = __toESM(require("path"));
|
|
37
|
-
var import_constant = require("../../constant");
|
|
38
|
-
var import_utils2 = require("../../runtime/dataLoader/utils");
|
|
39
|
-
const ROUTES = "routes";
|
|
40
|
-
function calcPathName(filePath, rootDir, entry) {
|
|
41
|
-
const relativePath = import_path.default.relative(rootDir, filePath);
|
|
42
|
-
const conditionalReg = /^\[(.*)\]$/;
|
|
43
|
-
const splitPaths = relativePath.split("/").reduce((sum, cur) => {
|
|
44
|
-
if (cur.includes(".")) {
|
|
45
|
-
const split = cur.split(".").map((i) => {
|
|
46
|
-
const match = i.match(conditionalReg);
|
|
47
|
-
if (match) {
|
|
48
|
-
return `:${match[1]}`;
|
|
49
|
-
}
|
|
50
|
-
return i.startsWith("__") ? "" : i;
|
|
51
|
-
});
|
|
52
|
-
sum.push(...split);
|
|
53
|
-
} else {
|
|
54
|
-
const match = cur.match(conditionalReg);
|
|
55
|
-
if (match) {
|
|
56
|
-
sum.push(`:${match[1]}`);
|
|
57
|
-
} else {
|
|
58
|
-
if (!cur.startsWith("__")) {
|
|
59
|
-
sum.push(cur);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return sum;
|
|
64
|
-
}, []);
|
|
65
|
-
return import_path.default.join(entry, splitPaths.filter((p) => !!p).join("/"));
|
|
66
|
-
}
|
|
67
|
-
async function generateRouteFile(options) {
|
|
68
|
-
const { appDirectory } = options;
|
|
69
|
-
const entries = [];
|
|
70
|
-
const remotePathMap = {};
|
|
71
|
-
const srcPath = `${appDirectory}/src`;
|
|
72
|
-
const traverse = async (filepath, rootDir, entry) => {
|
|
73
|
-
if (!await import_utils.fs.pathExists(filepath)) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
const isDirectory = (await import_utils.fs.stat(filepath)).isDirectory();
|
|
77
|
-
if (!isDirectory) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
const items = await import_utils.fs.readdir(filepath);
|
|
81
|
-
const mfJson = items.find((i) => i === import_constant.MF_JSON);
|
|
82
|
-
if (mfJson) {
|
|
83
|
-
const mfJsonContent = await import_utils.fs.readJSON((0, import_utils.normalizeToPosixPath)(import_path.default.join(filepath, mfJson)));
|
|
84
|
-
const { remoteName } = mfJsonContent;
|
|
85
|
-
const remoteLayoutId = (0, import_utils2.getRemoteLayoutId)(remoteName);
|
|
86
|
-
const writeFile = async (id, type, pathname) => {
|
|
87
|
-
const generatedFilePath = (0, import_utils.normalizeToPosixPath)(import_path.default.join(filepath, `${type}.tsx`));
|
|
88
|
-
const content = [
|
|
89
|
-
"// Do not edit this file. It is a auto generated.",
|
|
90
|
-
`// It will render ${remoteName}'s ${type}.`,
|
|
91
|
-
`// The ${type} pathname is: ${pathname}`,
|
|
92
|
-
`// The ${type} route id is: ${id}`
|
|
93
|
-
];
|
|
94
|
-
await import_utils.fs.writeFile(generatedFilePath, content.join("\n"));
|
|
95
|
-
};
|
|
96
|
-
if (remoteLayoutId) {
|
|
97
|
-
const pathname = calcPathName(filepath, rootDir, entry);
|
|
98
|
-
writeFile(remoteLayoutId, "layout", pathname);
|
|
99
|
-
remotePathMap[pathname] = remoteName;
|
|
100
|
-
}
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
await Promise.all(items.map(async (item) => {
|
|
104
|
-
await traverse((0, import_utils.normalizeToPosixPath)(import_path.default.join(filepath, item)), rootDir, entry);
|
|
105
|
-
}));
|
|
106
|
-
};
|
|
107
|
-
const traverseRoutes = async (dir, level = 1) => {
|
|
108
|
-
if (level > 3) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
const isDirectory = (await import_utils.fs.stat(dir)).isDirectory();
|
|
112
|
-
if (!isDirectory) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const items = await import_utils.fs.readdir(dir);
|
|
116
|
-
if (items.find((i) => i === ROUTES)) {
|
|
117
|
-
const entry = import_path.default.relative(srcPath, dir);
|
|
118
|
-
entries.push(entry);
|
|
119
|
-
const rootDir = `${dir}/${ROUTES}`;
|
|
120
|
-
await traverse(rootDir, rootDir, entry);
|
|
121
|
-
} else {
|
|
122
|
-
await Promise.all(items.map(async (item) => {
|
|
123
|
-
await traverseRoutes(import_path.default.join(dir, item), level++);
|
|
124
|
-
}));
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
await traverseRoutes(srcPath);
|
|
128
|
-
const normalizedEntries = entries.map((entry) => {
|
|
129
|
-
if (entry === "") {
|
|
130
|
-
return "main";
|
|
131
|
-
}
|
|
132
|
-
return entry;
|
|
133
|
-
});
|
|
134
|
-
return {
|
|
135
|
-
entries: normalizedEntries,
|
|
136
|
-
remotePathMap
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
140
|
-
0 && (module.exports = {
|
|
141
|
-
calcPathName,
|
|
142
|
-
generateRouteFile
|
|
143
|
-
});
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var patchMFConfig_exports = {};
|
|
30
|
-
__export(patchMFConfig_exports, {
|
|
31
|
-
patchMFConfig: () => patchMFConfig
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(patchMFConfig_exports);
|
|
34
|
-
var import_path = __toESM(require("path"));
|
|
35
|
-
var import_utils = require("@modern-js/utils");
|
|
36
|
-
var import_constant = require("../../constant");
|
|
37
|
-
var import_constant2 = require("../../constant");
|
|
38
|
-
var import_ast = require("./ast");
|
|
39
|
-
function generateExtraExposeFiles(options) {
|
|
40
|
-
const { internalDirectory, mfConfig, isServer, entries } = options;
|
|
41
|
-
const entryMap = {};
|
|
42
|
-
const outputDir = import_path.default.resolve(process.cwd(), "node_modules/.federation/data-loader");
|
|
43
|
-
import_utils.fs.ensureDirSync(outputDir);
|
|
44
|
-
const addSuffix = (fileName, ext = ".jsx") => {
|
|
45
|
-
if (!isServer) {
|
|
46
|
-
return `${fileName}${ext}`;
|
|
47
|
-
}
|
|
48
|
-
return `${fileName}.server${ext}`;
|
|
49
|
-
};
|
|
50
|
-
const generateEntryRoutes = (entry) => {
|
|
51
|
-
const outputEntryDir = import_path.default.resolve(outputDir, entry);
|
|
52
|
-
import_utils.fs.ensureDirSync(outputEntryDir);
|
|
53
|
-
const sourceDir = import_path.default.resolve(internalDirectory, entry);
|
|
54
|
-
const routesFilePath = import_path.default.resolve(sourceDir, addSuffix(import_constant2.MODERN_JS_FILE_SYSTEM_ROUTES_FILE_NAME, ".js"));
|
|
55
|
-
const routesFileContent = import_utils.fs.readFileSync(routesFilePath, "utf-8");
|
|
56
|
-
const outputFullRoutesPath = import_path.default.resolve(outputEntryDir, addSuffix(import_constant2.MF_ROUTES));
|
|
57
|
-
(0, import_ast.generateRoutes)({
|
|
58
|
-
sourceCode: routesFileContent,
|
|
59
|
-
filePath: outputFullRoutesPath
|
|
60
|
-
});
|
|
61
|
-
const routeServerLoaderPath = import_path.default.resolve(sourceDir, `${import_constant.MODERN_JS_ROUTE_SERVER_LOADER}.js`);
|
|
62
|
-
const outputRouteServerLoaderPath = import_path.default.resolve(outputEntryDir, `${import_constant.MODERN_JS_ROUTE_SERVER_LOADER}.js`);
|
|
63
|
-
const clientRouteServerLoaderPath = outputRouteServerLoaderPath.replace(import_constant.MODERN_JS_ROUTE_SERVER_LOADER, `${import_constant.MODERN_JS_ROUTE_SERVER_LOADER}-client`);
|
|
64
|
-
if (isServer) {
|
|
65
|
-
const routeServerLoaderContent = import_utils.fs.readFileSync(routeServerLoaderPath, "utf-8");
|
|
66
|
-
(0, import_ast.generateRoutes)({
|
|
67
|
-
sourceCode: routeServerLoaderContent,
|
|
68
|
-
filePath: outputRouteServerLoaderPath
|
|
69
|
-
});
|
|
70
|
-
} else {
|
|
71
|
-
import_utils.fs.writeFileSync(clientRouteServerLoaderPath, `export const routes = []`);
|
|
72
|
-
}
|
|
73
|
-
entryMap[entry] = {
|
|
74
|
-
routesPath: outputFullRoutesPath,
|
|
75
|
-
routeServerLoaderPath: outputRouteServerLoaderPath,
|
|
76
|
-
clientRouteServerLoaderPath
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
entries.forEach((entry) => {
|
|
80
|
-
generateEntryRoutes(entry);
|
|
81
|
-
});
|
|
82
|
-
return {
|
|
83
|
-
entryMap
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function addExpose(options) {
|
|
87
|
-
const { mfConfig, isServer } = options;
|
|
88
|
-
if (mfConfig.remotes && mfConfig.exposes) {
|
|
89
|
-
throw new Error(`dataLoader only support for pure provider/consumer!`);
|
|
90
|
-
}
|
|
91
|
-
const { entryMap } = generateExtraExposeFiles(options);
|
|
92
|
-
const addExposeByEntry = (entry, routesPath, routeServerLoaderPath, clientRouteServerLoaderPath) => {
|
|
93
|
-
if (!mfConfig.exposes) {
|
|
94
|
-
mfConfig.exposes = {};
|
|
95
|
-
}
|
|
96
|
-
const routesKey = `./${entry}/${import_constant2.MF_ROUTES}`;
|
|
97
|
-
if (!mfConfig.exposes[routesKey]) {
|
|
98
|
-
mfConfig.exposes[routesKey] = routesPath;
|
|
99
|
-
}
|
|
100
|
-
const routeServerLoaderKey = `./${entry}/${import_constant.MODERN_JS_ROUTE_SERVER_LOADER}`;
|
|
101
|
-
if (!mfConfig.exposes[routeServerLoaderKey]) {
|
|
102
|
-
if (isServer) {
|
|
103
|
-
mfConfig.exposes[routeServerLoaderKey] = routeServerLoaderPath;
|
|
104
|
-
} else {
|
|
105
|
-
mfConfig.exposes[routeServerLoaderKey] = clientRouteServerLoaderPath;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
Object.keys(entryMap).forEach((entry) => {
|
|
110
|
-
const { routesPath, routeServerLoaderPath, clientRouteServerLoaderPath } = entryMap[entry];
|
|
111
|
-
addExposeByEntry(entry, routesPath, routeServerLoaderPath, clientRouteServerLoaderPath);
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function addShared(options) {
|
|
115
|
-
const { metaName, mfConfig } = options;
|
|
116
|
-
const alias = `@${metaName}/runtime/router`;
|
|
117
|
-
if (!mfConfig.shared) {
|
|
118
|
-
mfConfig.shared = {
|
|
119
|
-
[alias]: {
|
|
120
|
-
singleton: true
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
} else {
|
|
124
|
-
if (!Array.isArray(mfConfig.shared)) {
|
|
125
|
-
mfConfig.shared[alias] = {
|
|
126
|
-
singleton: true
|
|
127
|
-
};
|
|
128
|
-
} else {
|
|
129
|
-
mfConfig.shared.push(alias);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
function patchMFConfig(options) {
|
|
134
|
-
addShared(options);
|
|
135
|
-
addExpose(options);
|
|
136
|
-
}
|
|
137
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
138
|
-
0 && (module.exports = {
|
|
139
|
-
patchMFConfig
|
|
140
|
-
});
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var plugin_exports = {};
|
|
30
|
-
__export(plugin_exports, {
|
|
31
|
-
default: () => plugin_default,
|
|
32
|
-
generateRoutes: () => import_ast.generateRoutes,
|
|
33
|
-
moduleFederationDataLoaderPlugin: () => moduleFederationDataLoaderPlugin
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(plugin_exports);
|
|
36
|
-
var import_utils = require("../../runtime/dataLoader/utils");
|
|
37
|
-
var import_constant = require("../../constant");
|
|
38
|
-
var import_constant2 = require("../../constant");
|
|
39
|
-
var import_ast = require("./ast");
|
|
40
|
-
var import_generateRouteFile = require("./generateRouteFile");
|
|
41
|
-
var import_patchMFConfig = require("./patchMFConfig");
|
|
42
|
-
var import_path = __toESM(require("path"));
|
|
43
|
-
function _transformRuntimeOptions(buildOptions) {
|
|
44
|
-
const remotes = buildOptions.remotes || {};
|
|
45
|
-
const runtimeRemotes = Object.entries(remotes).map((remote) => {
|
|
46
|
-
const [alias, nameAndEntry] = remote;
|
|
47
|
-
const [name, entry] = nameAndEntry.split("@");
|
|
48
|
-
return {
|
|
49
|
-
name,
|
|
50
|
-
entry,
|
|
51
|
-
alias
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return {
|
|
55
|
-
name: buildOptions.name,
|
|
56
|
-
remotes: runtimeRemotes
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
const moduleFederationDataLoaderPlugin = (enable, internalOptions, userConfig) => ({
|
|
60
|
-
name: "@modern-js/plugin-module-federation-data-loader",
|
|
61
|
-
pre: [
|
|
62
|
-
"@modern-js/plugin-module-federation-config"
|
|
63
|
-
],
|
|
64
|
-
post: [
|
|
65
|
-
"@modern-js/plugin-router",
|
|
66
|
-
"@modern-js/plugin-module-federation"
|
|
67
|
-
],
|
|
68
|
-
setup: async ({ useAppContext }) => {
|
|
69
|
-
if (!enable) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const {
|
|
73
|
-
// patchMFConfig,
|
|
74
|
-
metaName = import_constant2.META_NAME,
|
|
75
|
-
serverPlugin = "@module-federation/modern-js/data-loader-server",
|
|
76
|
-
transformRuntimeOptions
|
|
77
|
-
} = userConfig;
|
|
78
|
-
const appContext = useAppContext();
|
|
79
|
-
const name = internalOptions.csrConfig.name;
|
|
80
|
-
const internalDirectory = appContext.internalDirectory.replace(import_constant2.META_NAME, metaName || import_constant2.META_NAME);
|
|
81
|
-
const transformRuntimeFn = transformRuntimeOptions || _transformRuntimeOptions;
|
|
82
|
-
const partialSSRRemotes = [];
|
|
83
|
-
const entries = /* @__PURE__ */ new Set();
|
|
84
|
-
let remotePathMap = {};
|
|
85
|
-
const ssrByRouteIdsMap = {};
|
|
86
|
-
const serverPluginOptions = {
|
|
87
|
-
runtimeOptions: transformRuntimeFn(internalOptions.csrConfig),
|
|
88
|
-
partialSSRRemotes,
|
|
89
|
-
ssrByRouteIdsMap
|
|
90
|
-
};
|
|
91
|
-
const csrConfig = internalOptions.csrConfig;
|
|
92
|
-
if (typeof csrConfig.remotes === "object" && Object.keys(csrConfig.remotes).length) {
|
|
93
|
-
const { entries: scanEntries, remotePathMap: scanRemotePathMap } = await (0, import_generateRouteFile.generateRouteFile)({
|
|
94
|
-
appDirectory: appContext.appDirectory
|
|
95
|
-
});
|
|
96
|
-
scanEntries.forEach((e) => entries.add(e));
|
|
97
|
-
remotePathMap = scanRemotePathMap;
|
|
98
|
-
} else {
|
|
99
|
-
entries.add(import_constant.DEFAULT_ENTRY);
|
|
100
|
-
}
|
|
101
|
-
return {
|
|
102
|
-
_internalRuntimePlugins: ({ entrypoint, plugins }) => {
|
|
103
|
-
plugins.push({
|
|
104
|
-
name: "ssrDataLoader",
|
|
105
|
-
path: "@module-federation/modern-js/data-loader",
|
|
106
|
-
config: {}
|
|
107
|
-
});
|
|
108
|
-
plugins.push({
|
|
109
|
-
name: "ssrDataLoaderInjectAssets",
|
|
110
|
-
path: "@module-federation/modern-js/data-loader-inject-assets",
|
|
111
|
-
config: {}
|
|
112
|
-
});
|
|
113
|
-
return {
|
|
114
|
-
entrypoint,
|
|
115
|
-
plugins
|
|
116
|
-
};
|
|
117
|
-
},
|
|
118
|
-
_internalServerPlugins({ plugins }) {
|
|
119
|
-
plugins.push({
|
|
120
|
-
name: serverPlugin,
|
|
121
|
-
options: serverPluginOptions
|
|
122
|
-
});
|
|
123
|
-
return {
|
|
124
|
-
plugins
|
|
125
|
-
};
|
|
126
|
-
},
|
|
127
|
-
async modifyFileSystemRoutes(options) {
|
|
128
|
-
const { routes, entrypoint } = options;
|
|
129
|
-
const { entryName } = entrypoint;
|
|
130
|
-
const prefix = (0, import_utils.transformName2Prefix)(internalOptions.csrConfig.name);
|
|
131
|
-
const modifyRouteIds = (route, pathName) => {
|
|
132
|
-
const currentPathName = route.path ? import_path.default.join(pathName, route.path) : pathName;
|
|
133
|
-
if (route.id) {
|
|
134
|
-
var _route_children;
|
|
135
|
-
const originalId = route.id;
|
|
136
|
-
route.originalId = originalId;
|
|
137
|
-
const remoteName = remotePathMap[currentPathName];
|
|
138
|
-
if (remoteName) {
|
|
139
|
-
const remoteIdPrefix = (0, import_utils.transformName2Prefix)(remoteName);
|
|
140
|
-
const isLayout = Boolean(route.children);
|
|
141
|
-
const newId = `${remoteIdPrefix}${isLayout ? "layout" : "page"}`;
|
|
142
|
-
ssrByRouteIdsMap[originalId] = newId;
|
|
143
|
-
route.id = newId;
|
|
144
|
-
if (!partialSSRRemotes.includes(remoteName)) {
|
|
145
|
-
partialSSRRemotes.push(remoteName);
|
|
146
|
-
}
|
|
147
|
-
} else {
|
|
148
|
-
route.id = `${prefix}${route.id}`;
|
|
149
|
-
}
|
|
150
|
-
(_route_children = route.children) === null || _route_children === void 0 ? void 0 : _route_children.forEach((r) => {
|
|
151
|
-
modifyRouteIds(r, currentPathName);
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
routes.forEach((route) => {
|
|
156
|
-
modifyRouteIds(route, entryName);
|
|
157
|
-
});
|
|
158
|
-
return options;
|
|
159
|
-
},
|
|
160
|
-
config: async () => {
|
|
161
|
-
return {
|
|
162
|
-
tools: {
|
|
163
|
-
// bundlerChain can not keep target order
|
|
164
|
-
rspack(_config, { isServer }) {
|
|
165
|
-
(0, import_patchMFConfig.patchMFConfig)({
|
|
166
|
-
mfConfig: isServer ? internalOptions.ssrConfig : internalOptions.csrConfig,
|
|
167
|
-
metaName,
|
|
168
|
-
isServer,
|
|
169
|
-
internalDirectory,
|
|
170
|
-
entries
|
|
171
|
-
});
|
|
172
|
-
},
|
|
173
|
-
// bundlerChain can not keep target order
|
|
174
|
-
webpack(_config, { isServer }) {
|
|
175
|
-
(0, import_patchMFConfig.patchMFConfig)({
|
|
176
|
-
mfConfig: isServer ? internalOptions.ssrConfig : internalOptions.csrConfig,
|
|
177
|
-
metaName,
|
|
178
|
-
isServer,
|
|
179
|
-
internalDirectory,
|
|
180
|
-
entries
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
source: {
|
|
185
|
-
define: {
|
|
186
|
-
MODERN_ROUTER_ID_PREFIX: JSON.stringify((0, import_utils.transformName2Prefix)(name))
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
var plugin_default = moduleFederationDataLoaderPlugin;
|
|
195
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
196
|
-
0 && (module.exports = {
|
|
197
|
-
generateRoutes,
|
|
198
|
-
moduleFederationDataLoaderPlugin
|
|
199
|
-
});
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var node_exports = {};
|
|
30
|
-
__export(node_exports, {
|
|
31
|
-
default: () => node_default
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(node_exports);
|
|
34
|
-
var import_runtimePlugin = __toESM(require("@module-federation/node/runtimePlugin"));
|
|
35
|
-
const isContainer = typeof __filename === "string" ? __filename.includes("remote") ? true : false : false;
|
|
36
|
-
const pluginName = `node-plugin-${isContainer}`;
|
|
37
|
-
const nodePlugin = () => ({
|
|
38
|
-
name: pluginName,
|
|
39
|
-
beforeInit: (0, import_runtimePlugin.default)().beforeInit
|
|
40
|
-
});
|
|
41
|
-
var node_default = nodePlugin;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var dataLoaderPlugin_exports = {};
|
|
20
|
-
__export(dataLoaderPlugin_exports, {
|
|
21
|
-
default: () => dataLoaderPlugin_default
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(dataLoaderPlugin_exports);
|
|
24
|
-
var import_runtime = require("@module-federation/enhanced/runtime");
|
|
25
|
-
var import_sdk = require("@module-federation/sdk");
|
|
26
|
-
var import_fetchRemoteFullRoutesMap = require("./fetchRemoteFullRoutesMap");
|
|
27
|
-
var import_utils = require("../../runtime/dataLoader/utils");
|
|
28
|
-
var import_constant = require("../../constant");
|
|
29
|
-
var dataLoaderPlugin_default = ({ runtimeOptions, partialSSRRemotes, ssrByRouteIdsMap }) => ({
|
|
30
|
-
name: "MFDataLoaderServerPlugin",
|
|
31
|
-
pre: [
|
|
32
|
-
"@modern-js/plugin-inject-resource"
|
|
33
|
-
],
|
|
34
|
-
setup(api) {
|
|
35
|
-
const { remotes, name } = runtimeOptions;
|
|
36
|
-
if (!remotes.length) {
|
|
37
|
-
return {};
|
|
38
|
-
}
|
|
39
|
-
let isHandled = false;
|
|
40
|
-
return {
|
|
41
|
-
prepare() {
|
|
42
|
-
const { middlewares } = api.useAppContext();
|
|
43
|
-
middlewares.push({
|
|
44
|
-
name: "MFDataLoaderServerPlugin",
|
|
45
|
-
handler: async (c, next) => {
|
|
46
|
-
const serverManifest = c.get("serverManifest");
|
|
47
|
-
const { loaderBundles, nestedRoutesJson } = serverManifest;
|
|
48
|
-
if (isHandled) {
|
|
49
|
-
await next();
|
|
50
|
-
} else {
|
|
51
|
-
var _api_useConfigContext_server;
|
|
52
|
-
const instance = (0, import_runtime.init)({
|
|
53
|
-
name,
|
|
54
|
-
remotes
|
|
55
|
-
});
|
|
56
|
-
const remoteFullRoutesMap = await (0, import_fetchRemoteFullRoutesMap.fetchRemoteFullRoutesMap)({
|
|
57
|
-
instance,
|
|
58
|
-
remotePath: (0, import_sdk.isBrowserEnv)() ? `${import_constant.DEFAULT_ENTRY}/${import_constant.MF_ROUTES}` : `${import_constant.DEFAULT_ENTRY}/${import_constant.MODERN_JS_ROUTE_SERVER_LOADER}`
|
|
59
|
-
});
|
|
60
|
-
const originalSSRByRouteIds = (_api_useConfigContext_server = api.useConfigContext().server) === null || _api_useConfigContext_server === void 0 ? void 0 : _api_useConfigContext_server.ssrByRouteIds;
|
|
61
|
-
if (originalSSRByRouteIds && partialSSRRemotes.length) {
|
|
62
|
-
const remoteSSRByRouteIds = (0, import_fetchRemoteFullRoutesMap.getSSRByRouteIds)(partialSSRRemotes, remoteFullRoutesMap) || [];
|
|
63
|
-
const ssrByRouteIds = /* @__PURE__ */ new Set([
|
|
64
|
-
...originalSSRByRouteIds,
|
|
65
|
-
...remoteSSRByRouteIds.map((id) => ssrByRouteIdsMap[id] || id)
|
|
66
|
-
]);
|
|
67
|
-
api.useConfigContext().server.ssrByRouteIds = Array.from(ssrByRouteIds);
|
|
68
|
-
}
|
|
69
|
-
(0, import_utils.injectRemoteRoutes)(loaderBundles, remoteFullRoutesMap);
|
|
70
|
-
(0, import_utils.injectRemoteRoutes)(nestedRoutesJson, remoteFullRoutesMap);
|
|
71
|
-
isHandled = true;
|
|
72
|
-
await next();
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
before: [
|
|
76
|
-
"render"
|
|
77
|
-
]
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var fetchRemoteFullRoutesMap_exports = {};
|
|
20
|
-
__export(fetchRemoteFullRoutesMap_exports, {
|
|
21
|
-
fetchRemoteFullRoutesMap: () => fetchRemoteFullRoutesMap,
|
|
22
|
-
getSSRByRouteIds: () => getSSRByRouteIds
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(fetchRemoteFullRoutesMap_exports);
|
|
25
|
-
async function fetchRemoteFullRoutesMap(options) {
|
|
26
|
-
const { instance, remotePath } = options;
|
|
27
|
-
const { remotes } = instance.options;
|
|
28
|
-
const remoteRoutesMap = {};
|
|
29
|
-
if (!remotes.length) {
|
|
30
|
-
return remoteRoutesMap;
|
|
31
|
-
}
|
|
32
|
-
await Promise.all(remotes.map(async (remote) => {
|
|
33
|
-
const remoteId = `${remote.name}/${remotePath}`;
|
|
34
|
-
const { routes } = await instance.loadRemote(remoteId);
|
|
35
|
-
remoteRoutesMap[remote.name] = {
|
|
36
|
-
routes
|
|
37
|
-
};
|
|
38
|
-
}));
|
|
39
|
-
return remoteRoutesMap;
|
|
40
|
-
}
|
|
41
|
-
function getSSRByRouteIds(partialSSRRemotes, remoteRoutesMap) {
|
|
42
|
-
const remoteProviderRouteIds = /* @__PURE__ */ new Set();
|
|
43
|
-
const collectIds = (route) => {
|
|
44
|
-
remoteProviderRouteIds.add(route.id);
|
|
45
|
-
if (route.children) {
|
|
46
|
-
route.children.forEach((r) => {
|
|
47
|
-
collectIds(r);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
Object.entries(remoteRoutesMap).forEach((item) => {
|
|
52
|
-
const [remoteName, routesObj] = item;
|
|
53
|
-
if (!partialSSRRemotes.includes(remoteName)) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const { routes } = routesObj;
|
|
57
|
-
routes.forEach((route) => {
|
|
58
|
-
collectIds(route);
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
return [
|
|
62
|
-
...remoteProviderRouteIds
|
|
63
|
-
];
|
|
64
|
-
}
|
|
65
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
-
0 && (module.exports = {
|
|
67
|
-
fetchRemoteFullRoutesMap,
|
|
68
|
-
getSSRByRouteIds
|
|
69
|
-
});
|