@module-federation/modern-js 0.0.0-docs-remove-invalid-lark-link-20251205062649
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/LICENSE +21 -0
- package/dist/cjs/cli/configPlugin.js +325 -0
- package/dist/cjs/cli/index.js +105 -0
- package/dist/cjs/cli/mfRuntimePlugins/inject-node-fetch.js +54 -0
- package/dist/cjs/cli/mfRuntimePlugins/resolve-entry-ipv4.js +80 -0
- package/dist/cjs/cli/mfRuntimePlugins/shared-strategy.js +53 -0
- package/dist/cjs/cli/server/data-fetch-server-plugin.js +59 -0
- package/dist/cjs/cli/ssrPlugin.js +287 -0
- package/dist/cjs/cli/utils.js +93 -0
- package/dist/cjs/constant.js +40 -0
- package/dist/cjs/interfaces/bundler.js +18 -0
- package/dist/cjs/logger.js +39 -0
- package/dist/cjs/react/index.js +60 -0
- package/dist/cjs/react/plugin.js +67 -0
- package/dist/cjs/react/v18.js +60 -0
- package/dist/cjs/react/v19.js +60 -0
- package/dist/cjs/runtime/index.js +60 -0
- package/dist/cjs/server/fileCache.js +84 -0
- package/dist/cjs/server/index.js +71 -0
- package/dist/cjs/server/staticMiddleware.js +90 -0
- package/dist/cjs/ssr-runtime/SSRLiveReload.js +48 -0
- package/dist/cjs/ssr-runtime/devPlugin.js +59 -0
- package/dist/cjs/ssr-runtime/injectDataFetchFunctionPlugin.js +48 -0
- package/dist/cjs/types/index.js +18 -0
- package/dist/esm/cli/configPlugin.mjs +298 -0
- package/dist/esm/cli/index.mjs +82 -0
- package/dist/esm/cli/mfRuntimePlugins/inject-node-fetch.mjs +12 -0
- package/dist/esm/cli/mfRuntimePlugins/resolve-entry-ipv4.mjs +58 -0
- package/dist/esm/cli/mfRuntimePlugins/shared-strategy.mjs +21 -0
- package/dist/esm/cli/server/data-fetch-server-plugin.mjs +17 -0
- package/dist/esm/cli/ssrPlugin.mjs +257 -0
- package/dist/esm/cli/utils.mjs +40 -0
- package/dist/esm/constant.mjs +3 -0
- package/dist/esm/interfaces/bundler.mjs +0 -0
- package/dist/esm/logger.mjs +5 -0
- package/dist/esm/react/index.mjs +1 -0
- package/dist/esm/react/plugin.mjs +3 -0
- package/dist/esm/react/v18.mjs +1 -0
- package/dist/esm/react/v19.mjs +1 -0
- package/dist/esm/runtime/index.mjs +1 -0
- package/dist/esm/server/fileCache.mjs +90 -0
- package/dist/esm/server/index.mjs +36 -0
- package/dist/esm/server/staticMiddleware.mjs +87 -0
- package/dist/esm/ssr-runtime/SSRLiveReload.mjs +21 -0
- package/dist/esm/ssr-runtime/devPlugin.mjs +63 -0
- package/dist/esm/ssr-runtime/injectDataFetchFunctionPlugin.mjs +34 -0
- package/dist/esm/types/index.mjs +0 -0
- package/dist/esm-node/cli/configPlugin.mjs +256 -0
- package/dist/esm-node/cli/index.mjs +65 -0
- package/dist/esm-node/cli/mfRuntimePlugins/inject-node-fetch.mjs +10 -0
- package/dist/esm-node/cli/mfRuntimePlugins/resolve-entry-ipv4.mjs +46 -0
- package/dist/esm-node/cli/mfRuntimePlugins/shared-strategy.mjs +19 -0
- package/dist/esm-node/cli/server/data-fetch-server-plugin.mjs +15 -0
- package/dist/esm-node/cli/ssrPlugin.mjs +231 -0
- package/dist/esm-node/cli/utils.mjs +40 -0
- package/dist/esm-node/constant.mjs +3 -0
- package/dist/esm-node/interfaces/bundler.mjs +0 -0
- package/dist/esm-node/logger.mjs +5 -0
- package/dist/esm-node/react/index.mjs +1 -0
- package/dist/esm-node/react/plugin.mjs +3 -0
- package/dist/esm-node/react/v18.mjs +1 -0
- package/dist/esm-node/react/v19.mjs +1 -0
- package/dist/esm-node/runtime/index.mjs +1 -0
- package/dist/esm-node/server/fileCache.mjs +37 -0
- package/dist/esm-node/server/index.mjs +34 -0
- package/dist/esm-node/server/staticMiddleware.mjs +42 -0
- package/dist/esm-node/ssr-runtime/SSRLiveReload.mjs +14 -0
- package/dist/esm-node/ssr-runtime/devPlugin.mjs +25 -0
- package/dist/esm-node/ssr-runtime/injectDataFetchFunctionPlugin.mjs +14 -0
- package/dist/esm-node/types/index.mjs +0 -0
- package/dist/types/cli/configPlugin.d.ts +21 -0
- package/dist/types/cli/configPlugin.spec.d.ts +1 -0
- package/dist/types/cli/index.d.ts +6 -0
- package/dist/types/cli/mfRuntimePlugins/inject-node-fetch.d.ts +3 -0
- package/dist/types/cli/mfRuntimePlugins/resolve-entry-ipv4.d.ts +3 -0
- package/dist/types/cli/mfRuntimePlugins/shared-strategy.d.ts +3 -0
- package/dist/types/cli/server/data-fetch-server-plugin.d.ts +3 -0
- package/dist/types/cli/ssrPlugin.d.ts +6 -0
- package/dist/types/cli/utils.d.ts +6 -0
- package/dist/types/constant.d.ts +2 -0
- package/dist/types/interfaces/bundler.d.ts +18 -0
- package/dist/types/logger.d.ts +2 -0
- package/dist/types/react/index.d.ts +1 -0
- package/dist/types/react/plugin.d.ts +2 -0
- package/dist/types/react/v18.d.ts +1 -0
- package/dist/types/react/v19.d.ts +1 -0
- package/dist/types/runtime/index.d.ts +1 -0
- package/dist/types/server/fileCache.d.ts +14 -0
- package/dist/types/server/fileCache.spec.d.ts +1 -0
- package/dist/types/server/index.d.ts +4 -0
- package/dist/types/server/staticMiddleware.d.ts +7 -0
- package/dist/types/server/staticMiddleware.spec.d.ts +1 -0
- package/dist/types/ssr-runtime/SSRLiveReload.d.ts +1 -0
- package/dist/types/ssr-runtime/devPlugin.d.ts +2 -0
- package/dist/types/ssr-runtime/injectDataFetchFunctionPlugin.d.ts +4 -0
- package/dist/types/types/index.d.ts +35 -0
- package/package.json +189 -0
- package/types.d.ts +6 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: definition[key]
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
+
})();
|
|
23
|
+
(()=>{
|
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
|
25
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
+
value: 'Module'
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
var __webpack_exports__ = {};
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
default: ()=>data_fetch_server_plugin
|
|
37
|
+
});
|
|
38
|
+
const data_fetch_server_middleware_namespaceObject = require("@module-federation/bridge-react/data-fetch-server-middleware");
|
|
39
|
+
var data_fetch_server_middleware_default = /*#__PURE__*/ __webpack_require__.n(data_fetch_server_middleware_namespaceObject);
|
|
40
|
+
const dataFetchServePlugin = ()=>({
|
|
41
|
+
name: 'mf-data-fetch-server-plugin',
|
|
42
|
+
setup: (api)=>{
|
|
43
|
+
api.onPrepare(()=>{
|
|
44
|
+
const { middlewares } = api.getServerContext();
|
|
45
|
+
middlewares.push({
|
|
46
|
+
name: 'module-federation-serve-manifest',
|
|
47
|
+
handler: data_fetch_server_middleware_default()
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const data_fetch_server_plugin = dataFetchServePlugin;
|
|
53
|
+
exports["default"] = __webpack_exports__["default"];
|
|
54
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
55
|
+
"default"
|
|
56
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
57
|
+
Object.defineProperty(exports, '__esModule', {
|
|
58
|
+
value: true
|
|
59
|
+
});
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: definition[key]
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
+
})();
|
|
23
|
+
(()=>{
|
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
|
25
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
+
value: 'Module'
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
var __webpack_exports__ = {};
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
default: ()=>ssrPlugin,
|
|
37
|
+
moduleFederationSSRPlugin: ()=>moduleFederationSSRPlugin,
|
|
38
|
+
setEnv: ()=>setEnv,
|
|
39
|
+
CHAIN_MF_PLUGIN_ID: ()=>CHAIN_MF_PLUGIN_ID
|
|
40
|
+
});
|
|
41
|
+
const external_path_namespaceObject = require("path");
|
|
42
|
+
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
|
43
|
+
const external_fs_extra_namespaceObject = require("fs-extra");
|
|
44
|
+
var external_fs_extra_default = /*#__PURE__*/ __webpack_require__.n(external_fs_extra_namespaceObject);
|
|
45
|
+
const webpack_namespaceObject = require("@module-federation/enhanced/webpack");
|
|
46
|
+
const rspack_namespaceObject = require("@module-federation/enhanced/rspack");
|
|
47
|
+
const universe_entry_chunk_tracker_plugin_namespaceObject = require("@module-federation/node/universe-entry-chunk-tracker-plugin");
|
|
48
|
+
var universe_entry_chunk_tracker_plugin_default = /*#__PURE__*/ __webpack_require__.n(universe_entry_chunk_tracker_plugin_namespaceObject);
|
|
49
|
+
const external_logger_js_namespaceObject = require("../logger.js");
|
|
50
|
+
var external_logger_js_default = /*#__PURE__*/ __webpack_require__.n(external_logger_js_namespaceObject);
|
|
51
|
+
const external_utils_js_namespaceObject = require("./utils.js");
|
|
52
|
+
const utils_namespaceObject = require("@module-federation/rsbuild-plugin/utils");
|
|
53
|
+
const sdk_namespaceObject = require("@module-federation/sdk");
|
|
54
|
+
function setEnv() {
|
|
55
|
+
process.env['MF_SSR_PRJ'] = 'true';
|
|
56
|
+
}
|
|
57
|
+
const CHAIN_MF_PLUGIN_ID = 'plugin-module-federation-server';
|
|
58
|
+
function getManifestAssetFileNames(manifestOption) {
|
|
59
|
+
if (!manifestOption) return {
|
|
60
|
+
statsFileName: sdk_namespaceObject.StatsFileName,
|
|
61
|
+
manifestFileName: sdk_namespaceObject.ManifestFileName
|
|
62
|
+
};
|
|
63
|
+
const JSON_EXT = '.json';
|
|
64
|
+
const filePath = 'boolean' == typeof manifestOption ? '' : manifestOption.filePath || '';
|
|
65
|
+
const baseFileName = 'boolean' == typeof manifestOption ? '' : manifestOption.fileName || '';
|
|
66
|
+
const ensureExt = (name)=>name.endsWith(JSON_EXT) ? name : `${name}${JSON_EXT}`;
|
|
67
|
+
const withSuffix = (name, suffix)=>name.replace(JSON_EXT, `${suffix}${JSON_EXT}`);
|
|
68
|
+
const manifestFileName = baseFileName ? ensureExt(baseFileName) : sdk_namespaceObject.ManifestFileName;
|
|
69
|
+
const statsFileName = baseFileName ? withSuffix(manifestFileName, '-stats') : sdk_namespaceObject.StatsFileName;
|
|
70
|
+
return {
|
|
71
|
+
statsFileName: (0, sdk_namespaceObject.simpleJoinRemoteEntry)(filePath, statsFileName),
|
|
72
|
+
manifestFileName: (0, sdk_namespaceObject.simpleJoinRemoteEntry)(filePath, manifestFileName)
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
const mfSSRRsbuildPlugin = (pluginOptions)=>({
|
|
76
|
+
name: '@modern-js/plugin-mf-post-config',
|
|
77
|
+
pre: [
|
|
78
|
+
'@modern-js/builder-plugin-ssr'
|
|
79
|
+
],
|
|
80
|
+
setup (api) {
|
|
81
|
+
var _pluginOptions_csrConfig, _pluginOptions_assetFileNames, _pluginOptions_ssrConfig;
|
|
82
|
+
if (pluginOptions.csrConfig.getPublicPath) return;
|
|
83
|
+
let csrOutputPath = '';
|
|
84
|
+
let ssrOutputPath = '';
|
|
85
|
+
let ssrEnv = '';
|
|
86
|
+
let csrEnv = '';
|
|
87
|
+
const browserAssetFileNames = pluginOptions.assetFileNames.browser || getManifestAssetFileNames(null == (_pluginOptions_csrConfig = pluginOptions.csrConfig) ? void 0 : _pluginOptions_csrConfig.manifest);
|
|
88
|
+
const nodeAssetFileNames = (null == (_pluginOptions_assetFileNames = pluginOptions.assetFileNames) ? void 0 : _pluginOptions_assetFileNames.node) || getManifestAssetFileNames(null == (_pluginOptions_ssrConfig = pluginOptions.ssrConfig) ? void 0 : _pluginOptions_ssrConfig.manifest);
|
|
89
|
+
const collectAssets = (assets, fileNames, tag)=>{
|
|
90
|
+
const statsAsset = assets[fileNames.statsFileName];
|
|
91
|
+
const manifestAsset = assets[fileNames.manifestFileName];
|
|
92
|
+
if (!statsAsset || !manifestAsset) return;
|
|
93
|
+
try {
|
|
94
|
+
const statsRaw = statsAsset.source();
|
|
95
|
+
const manifestRaw = manifestAsset.source();
|
|
96
|
+
const statsContent = 'string' == typeof statsRaw ? statsRaw : statsRaw.toString();
|
|
97
|
+
const manifestContent = 'string' == typeof manifestRaw ? manifestRaw : manifestRaw.toString();
|
|
98
|
+
return {
|
|
99
|
+
stats: {
|
|
100
|
+
data: JSON.parse(statsContent),
|
|
101
|
+
filename: fileNames.statsFileName
|
|
102
|
+
},
|
|
103
|
+
manifest: {
|
|
104
|
+
data: JSON.parse(manifestContent),
|
|
105
|
+
filename: fileNames.manifestFileName
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
} catch (err) {
|
|
109
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
110
|
+
external_logger_js_default().error(`Failed to parse ${tag} manifest assets: ${message}`);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
api.modifyEnvironmentConfig((config, { name })=>{
|
|
115
|
+
const target = config.output.target;
|
|
116
|
+
if ((0, external_utils_js_namespaceObject.skipByTarget)(target)) return config;
|
|
117
|
+
if ((0, external_utils_js_namespaceObject.isWebTarget)(target)) {
|
|
118
|
+
csrOutputPath = config.output.distPath.root;
|
|
119
|
+
csrEnv = name;
|
|
120
|
+
} else {
|
|
121
|
+
ssrOutputPath = config.output.distPath.root;
|
|
122
|
+
ssrEnv = name;
|
|
123
|
+
}
|
|
124
|
+
return config;
|
|
125
|
+
});
|
|
126
|
+
const modifySSRPublicPath = (config, utils)=>{
|
|
127
|
+
if (ssrEnv !== utils.environment.name) return config;
|
|
128
|
+
const userSSRConfig = pluginOptions.userConfig.ssr ? 'object' == typeof pluginOptions.userConfig.ssr ? pluginOptions.userConfig.ssr : {} : {};
|
|
129
|
+
if (userSSRConfig.distOutputDir) return;
|
|
130
|
+
config.output.publicPath = `${config.output.publicPath}${external_path_default().relative(csrOutputPath, ssrOutputPath)}/`;
|
|
131
|
+
return config;
|
|
132
|
+
};
|
|
133
|
+
api.modifyWebpackConfig((config, utils)=>{
|
|
134
|
+
modifySSRPublicPath(config, utils);
|
|
135
|
+
return config;
|
|
136
|
+
});
|
|
137
|
+
api.modifyRspackConfig((config, utils)=>{
|
|
138
|
+
modifySSRPublicPath(config, utils);
|
|
139
|
+
return config;
|
|
140
|
+
});
|
|
141
|
+
api.processAssets({
|
|
142
|
+
stage: 'report'
|
|
143
|
+
}, ({ assets, environment: envContext })=>{
|
|
144
|
+
var _pluginOptions_csrConfig, _pluginOptions_ssrConfig;
|
|
145
|
+
const envName = envContext.name;
|
|
146
|
+
if ((null == (_pluginOptions_csrConfig = pluginOptions.csrConfig) ? void 0 : _pluginOptions_csrConfig.manifest) !== false && csrEnv && envName === csrEnv) {
|
|
147
|
+
const browserAssets = collectAssets(assets, browserAssetFileNames, 'browser');
|
|
148
|
+
if (browserAssets) pluginOptions.assetResources.browser = browserAssets;
|
|
149
|
+
}
|
|
150
|
+
if ((null == (_pluginOptions_ssrConfig = pluginOptions.ssrConfig) ? void 0 : _pluginOptions_ssrConfig.manifest) !== false && ssrEnv && envName === ssrEnv) {
|
|
151
|
+
const nodeAssets = collectAssets(assets, nodeAssetFileNames, 'node');
|
|
152
|
+
if (nodeAssets) pluginOptions.assetResources.node = nodeAssets;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
const moduleFederationSSRPlugin = (pluginOptions)=>({
|
|
158
|
+
name: '@modern-js/plugin-module-federation-ssr',
|
|
159
|
+
pre: [
|
|
160
|
+
'@modern-js/plugin-module-federation-config',
|
|
161
|
+
'@modern-js/plugin-module-federation'
|
|
162
|
+
],
|
|
163
|
+
setup: async (api)=>{
|
|
164
|
+
var _pluginOptions_userConfig, _modernjsConfig_server;
|
|
165
|
+
const modernjsConfig = api.getConfig();
|
|
166
|
+
var _pluginOptions_userConfig_ssr;
|
|
167
|
+
const enableSSR = null != (_pluginOptions_userConfig_ssr = null == (_pluginOptions_userConfig = pluginOptions.userConfig) ? void 0 : _pluginOptions_userConfig.ssr) ? _pluginOptions_userConfig_ssr : Boolean(null == modernjsConfig ? void 0 : null == (_modernjsConfig_server = modernjsConfig.server) ? void 0 : _modernjsConfig_server.ssr);
|
|
168
|
+
if (!enableSSR) return;
|
|
169
|
+
setEnv();
|
|
170
|
+
api._internalRuntimePlugins(({ entrypoint, plugins })=>{
|
|
171
|
+
const { fetchServerQuery } = pluginOptions;
|
|
172
|
+
plugins.push({
|
|
173
|
+
name: 'injectDataFetchFunction',
|
|
174
|
+
path: '@module-federation/modern-js/ssr-inject-data-fetch-function-plugin',
|
|
175
|
+
config: {
|
|
176
|
+
fetchServerQuery
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
if (!(0, external_utils_js_namespaceObject.isDev)()) return {
|
|
180
|
+
entrypoint,
|
|
181
|
+
plugins
|
|
182
|
+
};
|
|
183
|
+
plugins.push({
|
|
184
|
+
name: 'mfSSRDev',
|
|
185
|
+
path: '@module-federation/modern-js/ssr-dev-plugin',
|
|
186
|
+
config: {}
|
|
187
|
+
});
|
|
188
|
+
return {
|
|
189
|
+
entrypoint,
|
|
190
|
+
plugins
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
if (pluginOptions.ssrConfig.remotes) api._internalServerPlugins(({ plugins })=>{
|
|
194
|
+
plugins.push({
|
|
195
|
+
name: '@module-federation/modern-js/data-fetch-server-plugin',
|
|
196
|
+
options: {}
|
|
197
|
+
});
|
|
198
|
+
return {
|
|
199
|
+
plugins
|
|
200
|
+
};
|
|
201
|
+
});
|
|
202
|
+
api.modifyBundlerChain((chain)=>{
|
|
203
|
+
const target = chain.get('target');
|
|
204
|
+
if ((0, external_utils_js_namespaceObject.skipByTarget)(target)) return;
|
|
205
|
+
const bundlerType = 'rspack' === api.getAppContext().bundlerType ? 'rspack' : 'webpack';
|
|
206
|
+
const MFPlugin = 'webpack' === bundlerType ? webpack_namespaceObject.ModuleFederationPlugin : rspack_namespaceObject.ModuleFederationPlugin;
|
|
207
|
+
const isWeb = (0, external_utils_js_namespaceObject.isWebTarget)(target);
|
|
208
|
+
if (!isWeb) {
|
|
209
|
+
if (!chain.plugins.has(CHAIN_MF_PLUGIN_ID)) chain.plugin(CHAIN_MF_PLUGIN_ID).use(MFPlugin, [
|
|
210
|
+
pluginOptions.ssrConfig
|
|
211
|
+
]).init((Plugin, args)=>{
|
|
212
|
+
pluginOptions.nodePlugin = new Plugin(args[0]);
|
|
213
|
+
return pluginOptions.nodePlugin;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
if (!isWeb) {
|
|
217
|
+
chain.target('async-node');
|
|
218
|
+
if ((0, external_utils_js_namespaceObject.isDev)()) chain.plugin('UniverseEntryChunkTrackerPlugin').use(universe_entry_chunk_tracker_plugin_default());
|
|
219
|
+
const userSSRConfig = pluginOptions.userConfig.ssr ? 'object' == typeof pluginOptions.userConfig.ssr ? pluginOptions.userConfig.ssr : {} : {};
|
|
220
|
+
const publicPath = chain.output.get('publicPath');
|
|
221
|
+
if (userSSRConfig.distOutputDir && publicPath) chain.output.publicPath(`${publicPath}${userSSRConfig.distOutputDir}/`);
|
|
222
|
+
}
|
|
223
|
+
if ((0, external_utils_js_namespaceObject.isDev)() && isWeb) chain.externals({
|
|
224
|
+
'@module-federation/node/utils': 'NOT_USED_IN_BROWSER'
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
api.config(()=>({
|
|
228
|
+
builderPlugins: [
|
|
229
|
+
mfSSRRsbuildPlugin(pluginOptions)
|
|
230
|
+
],
|
|
231
|
+
tools: {
|
|
232
|
+
devServer: {
|
|
233
|
+
before: [
|
|
234
|
+
(req, res, next)=>{
|
|
235
|
+
if (!enableSSR) return void next();
|
|
236
|
+
try {
|
|
237
|
+
var _req_url, _req_url1;
|
|
238
|
+
if ((null == (_req_url = req.url) ? void 0 : _req_url.includes('.json')) && !(null == (_req_url1 = req.url) ? void 0 : _req_url1.includes('hot-update'))) {
|
|
239
|
+
const filepath = external_path_default().join(process.cwd(), `dist${req.url}`);
|
|
240
|
+
external_fs_extra_default().statSync(filepath);
|
|
241
|
+
res.setHeader('Access-Control-Allow-Origin', '*');
|
|
242
|
+
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, PATCH, OPTIONS');
|
|
243
|
+
res.setHeader('Access-Control-Allow-Headers', '*');
|
|
244
|
+
external_fs_extra_default().createReadStream(filepath).pipe(res);
|
|
245
|
+
} else next();
|
|
246
|
+
} catch (err) {
|
|
247
|
+
external_logger_js_default().debug(err);
|
|
248
|
+
next();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}));
|
|
255
|
+
const writeMergedManifest = ()=>{
|
|
256
|
+
const { distOutputDir, assetResources } = pluginOptions;
|
|
257
|
+
const browserAssets = assetResources.browser;
|
|
258
|
+
const nodeAssets = assetResources.node;
|
|
259
|
+
if (!distOutputDir || !browserAssets || !nodeAssets) return;
|
|
260
|
+
try {
|
|
261
|
+
(0, utils_namespaceObject.updateStatsAndManifest)(nodeAssets, browserAssets, distOutputDir);
|
|
262
|
+
} catch (err) {
|
|
263
|
+
external_logger_js_default().error(err);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
api.onAfterBuild(()=>{
|
|
267
|
+
writeMergedManifest();
|
|
268
|
+
});
|
|
269
|
+
api.onDevCompileDone(()=>{
|
|
270
|
+
writeMergedManifest();
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
const ssrPlugin = moduleFederationSSRPlugin;
|
|
275
|
+
exports.CHAIN_MF_PLUGIN_ID = __webpack_exports__.CHAIN_MF_PLUGIN_ID;
|
|
276
|
+
exports["default"] = __webpack_exports__["default"];
|
|
277
|
+
exports.moduleFederationSSRPlugin = __webpack_exports__.moduleFederationSSRPlugin;
|
|
278
|
+
exports.setEnv = __webpack_exports__.setEnv;
|
|
279
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
280
|
+
"CHAIN_MF_PLUGIN_ID",
|
|
281
|
+
"default",
|
|
282
|
+
"moduleFederationSSRPlugin",
|
|
283
|
+
"setEnv"
|
|
284
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
285
|
+
Object.defineProperty(exports, '__esModule', {
|
|
286
|
+
value: true
|
|
287
|
+
});
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: definition[key]
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
+
})();
|
|
23
|
+
(()=>{
|
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
|
25
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
+
value: 'Module'
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
var __webpack_exports__ = {};
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
getIPV4: ()=>getIPV4,
|
|
37
|
+
isDev: ()=>isDev,
|
|
38
|
+
isWebTarget: ()=>isWebTarget,
|
|
39
|
+
skipByTarget: ()=>skipByTarget
|
|
40
|
+
});
|
|
41
|
+
const external_os_namespaceObject = require("os");
|
|
42
|
+
var external_os_default = /*#__PURE__*/ __webpack_require__.n(external_os_namespaceObject);
|
|
43
|
+
const localIpv4 = '127.0.0.1';
|
|
44
|
+
const getIpv4Interfaces = ()=>{
|
|
45
|
+
try {
|
|
46
|
+
const interfaces = external_os_default().networkInterfaces();
|
|
47
|
+
const ipv4Interfaces = [];
|
|
48
|
+
Object.values(interfaces).forEach((detail)=>{
|
|
49
|
+
null == detail || detail.forEach((detail)=>{
|
|
50
|
+
const familyV4Value = 'string' == typeof detail.family ? 'IPv4' : 4;
|
|
51
|
+
if (detail.family === familyV4Value && detail.address !== localIpv4) ipv4Interfaces.push(detail);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
return ipv4Interfaces;
|
|
55
|
+
} catch (_err) {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const getIPV4 = ()=>{
|
|
60
|
+
const ipv4Interfaces = getIpv4Interfaces();
|
|
61
|
+
const ipv4Interface = ipv4Interfaces[0] || {
|
|
62
|
+
address: localIpv4
|
|
63
|
+
};
|
|
64
|
+
return ipv4Interface.address;
|
|
65
|
+
};
|
|
66
|
+
const isWebTarget = (target)=>{
|
|
67
|
+
const WEB_TARGET = 'web';
|
|
68
|
+
if (Array.isArray(target)) return target.includes(WEB_TARGET);
|
|
69
|
+
if ('string' == typeof target) return target === WEB_TARGET;
|
|
70
|
+
return false;
|
|
71
|
+
};
|
|
72
|
+
const skipByTarget = (target)=>{
|
|
73
|
+
const IGNORE_TARGET = 'webworker';
|
|
74
|
+
if (Array.isArray(target)) return target.includes(IGNORE_TARGET);
|
|
75
|
+
if ('string' == typeof target) return target === IGNORE_TARGET;
|
|
76
|
+
return false;
|
|
77
|
+
};
|
|
78
|
+
function isDev() {
|
|
79
|
+
return 'development' === process.env.NODE_ENV;
|
|
80
|
+
}
|
|
81
|
+
exports.getIPV4 = __webpack_exports__.getIPV4;
|
|
82
|
+
exports.isDev = __webpack_exports__.isDev;
|
|
83
|
+
exports.isWebTarget = __webpack_exports__.isWebTarget;
|
|
84
|
+
exports.skipByTarget = __webpack_exports__.skipByTarget;
|
|
85
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
86
|
+
"getIPV4",
|
|
87
|
+
"isDev",
|
|
88
|
+
"isWebTarget",
|
|
89
|
+
"skipByTarget"
|
|
90
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
91
|
+
Object.defineProperty(exports, '__esModule', {
|
|
92
|
+
value: true
|
|
93
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
LOCALHOST: ()=>LOCALHOST,
|
|
28
|
+
PLUGIN_IDENTIFIER: ()=>PLUGIN_IDENTIFIER
|
|
29
|
+
});
|
|
30
|
+
const LOCALHOST = 'localhost';
|
|
31
|
+
const PLUGIN_IDENTIFIER = '[ Modern.js Module Federation ]';
|
|
32
|
+
exports.LOCALHOST = __webpack_exports__.LOCALHOST;
|
|
33
|
+
exports.PLUGIN_IDENTIFIER = __webpack_exports__.PLUGIN_IDENTIFIER;
|
|
34
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
35
|
+
"LOCALHOST",
|
|
36
|
+
"PLUGIN_IDENTIFIER"
|
|
37
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
38
|
+
Object.defineProperty(exports, '__esModule', {
|
|
39
|
+
value: true
|
|
40
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.r = (exports1)=>{
|
|
5
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
6
|
+
value: 'Module'
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
})();
|
|
13
|
+
var __webpack_exports__ = {};
|
|
14
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
16
|
+
Object.defineProperty(exports, '__esModule', {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
default: ()=>src_logger
|
|
28
|
+
});
|
|
29
|
+
const sdk_namespaceObject = require("@module-federation/sdk");
|
|
30
|
+
const external_constant_js_namespaceObject = require("./constant.js");
|
|
31
|
+
const logger = (0, sdk_namespaceObject.createLogger)(external_constant_js_namespaceObject.PLUGIN_IDENTIFIER);
|
|
32
|
+
const src_logger = logger;
|
|
33
|
+
exports["default"] = __webpack_exports__["default"];
|
|
34
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
35
|
+
"default"
|
|
36
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
37
|
+
Object.defineProperty(exports, '__esModule', {
|
|
38
|
+
value: true
|
|
39
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"@module-federation/bridge-react": function(module) {
|
|
4
|
+
module.exports = require("@module-federation/bridge-react");
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
var __webpack_module_cache__ = {};
|
|
8
|
+
function __webpack_require__(moduleId) {
|
|
9
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
12
|
+
exports: {}
|
|
13
|
+
};
|
|
14
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
15
|
+
return module.exports;
|
|
16
|
+
}
|
|
17
|
+
(()=>{
|
|
18
|
+
__webpack_require__.n = (module)=>{
|
|
19
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
20
|
+
__webpack_require__.d(getter, {
|
|
21
|
+
a: getter
|
|
22
|
+
});
|
|
23
|
+
return getter;
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
(()=>{
|
|
27
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
28
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: definition[key]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
34
|
+
(()=>{
|
|
35
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
36
|
+
})();
|
|
37
|
+
(()=>{
|
|
38
|
+
__webpack_require__.r = (exports1)=>{
|
|
39
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
40
|
+
value: 'Module'
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
43
|
+
value: true
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
var __webpack_exports__ = {};
|
|
48
|
+
(()=>{
|
|
49
|
+
__webpack_require__.r(__webpack_exports__);
|
|
50
|
+
var _module_federation_bridge_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@module-federation/bridge-react");
|
|
51
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
52
|
+
for(var __WEBPACK_IMPORT_KEY__ in _module_federation_bridge_react__WEBPACK_IMPORTED_MODULE_0__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
53
|
+
return _module_federation_bridge_react__WEBPACK_IMPORTED_MODULE_0__[key];
|
|
54
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
55
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
56
|
+
})();
|
|
57
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
58
|
+
Object.defineProperty(exports, '__esModule', {
|
|
59
|
+
value: true
|
|
60
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"@module-federation/bridge-react/plugin": function(module) {
|
|
4
|
+
module.exports = require("@module-federation/bridge-react/plugin");
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
var __webpack_module_cache__ = {};
|
|
8
|
+
function __webpack_require__(moduleId) {
|
|
9
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
12
|
+
exports: {}
|
|
13
|
+
};
|
|
14
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
15
|
+
return module.exports;
|
|
16
|
+
}
|
|
17
|
+
(()=>{
|
|
18
|
+
__webpack_require__.n = (module)=>{
|
|
19
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
20
|
+
__webpack_require__.d(getter, {
|
|
21
|
+
a: getter
|
|
22
|
+
});
|
|
23
|
+
return getter;
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
(()=>{
|
|
27
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
28
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: definition[key]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
34
|
+
(()=>{
|
|
35
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
36
|
+
})();
|
|
37
|
+
(()=>{
|
|
38
|
+
__webpack_require__.r = (exports1)=>{
|
|
39
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
40
|
+
value: 'Module'
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
43
|
+
value: true
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
var __webpack_exports__ = {};
|
|
48
|
+
(()=>{
|
|
49
|
+
__webpack_require__.r(__webpack_exports__);
|
|
50
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
51
|
+
default: ()=>_module_federation_bridge_react_plugin__WEBPACK_IMPORTED_MODULE_0___default.a
|
|
52
|
+
});
|
|
53
|
+
var _module_federation_bridge_react_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@module-federation/bridge-react/plugin");
|
|
54
|
+
var _module_federation_bridge_react_plugin__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_module_federation_bridge_react_plugin__WEBPACK_IMPORTED_MODULE_0__);
|
|
55
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
56
|
+
for(var __WEBPACK_IMPORT_KEY__ in _module_federation_bridge_react_plugin__WEBPACK_IMPORTED_MODULE_0__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
57
|
+
return _module_federation_bridge_react_plugin__WEBPACK_IMPORTED_MODULE_0__[key];
|
|
58
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
59
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
60
|
+
})();
|
|
61
|
+
exports["default"] = __webpack_exports__["default"];
|
|
62
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
63
|
+
"default"
|
|
64
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
65
|
+
Object.defineProperty(exports, '__esModule', {
|
|
66
|
+
value: true
|
|
67
|
+
});
|