@module-federation/rsbuild-plugin 0.20.0 → 0.21.0
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/index.js +1 -4
- package/dist/index.mjs +1 -4
- package/dist/utils/ssr.d.ts +1 -0
- package/dist/utils.js +5 -5
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -315,10 +315,7 @@ const pluginModuleFederation = (moduleFederationOptions, rsbuildOptions)=>({
|
|
|
315
315
|
api.modifyEnvironmentConfig((config)=>{
|
|
316
316
|
config.source.include = [
|
|
317
317
|
...config.source.include || [],
|
|
318
|
-
/@module-federation
|
|
319
|
-
/@module-federation\/runtime/,
|
|
320
|
-
/@module-federation\/runtime-core/,
|
|
321
|
-
/@module-federation\/sdk/
|
|
318
|
+
/@module-federation[\\/]/
|
|
322
319
|
];
|
|
323
320
|
return config;
|
|
324
321
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -267,10 +267,7 @@ const pluginModuleFederation = (moduleFederationOptions, rsbuildOptions)=>({
|
|
|
267
267
|
api.modifyEnvironmentConfig((config)=>{
|
|
268
268
|
config.source.include = [
|
|
269
269
|
...config.source.include || [],
|
|
270
|
-
/@module-federation
|
|
271
|
-
/@module-federation\/runtime/,
|
|
272
|
-
/@module-federation\/runtime-core/,
|
|
273
|
-
/@module-federation\/sdk/
|
|
270
|
+
/@module-federation[\\/]/
|
|
274
271
|
];
|
|
275
272
|
return config;
|
|
276
273
|
});
|
package/dist/utils/ssr.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -50,11 +50,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
50
50
|
});
|
|
51
51
|
const external_util_namespaceObject = require("util");
|
|
52
52
|
var external_util_default = /*#__PURE__*/ __webpack_require__.n(external_util_namespaceObject);
|
|
53
|
-
const DATA_FETCH_CLIENT_SUFFIX = '.client';
|
|
54
|
-
const CALL_NAME_MAP = {
|
|
55
|
-
RSPRESS: 'rspress',
|
|
56
|
-
RSLIB: 'rslib'
|
|
57
|
-
};
|
|
58
53
|
const SPLIT_CHUNK_MAP = {
|
|
59
54
|
REACT: 'react',
|
|
60
55
|
ROUTER: 'router',
|
|
@@ -94,6 +89,11 @@ var external_fs_extra_default = /*#__PURE__*/ __webpack_require__.n(external_fs_
|
|
|
94
89
|
const external_path_namespaceObject = require("path");
|
|
95
90
|
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
|
96
91
|
const sdk_namespaceObject = require("@module-federation/sdk");
|
|
92
|
+
const DATA_FETCH_CLIENT_SUFFIX = '.client';
|
|
93
|
+
const CALL_NAME_MAP = {
|
|
94
|
+
RSPRESS: 'rspress',
|
|
95
|
+
RSLIB: 'rslib'
|
|
96
|
+
};
|
|
97
97
|
const addDataFetchExpose = (exposes, key, filepath, suffix = '')=>{
|
|
98
98
|
if (!external_fs_extra_default().existsSync(filepath)) return false;
|
|
99
99
|
const dataFetchKey = '.' === key ? `./data${suffix}` : `${key}.data${suffix}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rsbuild-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Module Federation plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://module-federation.io",
|
|
6
6
|
"bugs": {
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"fs-extra": "11.3.0",
|
|
53
|
-
"@module-federation/
|
|
54
|
-
"@module-federation/node": "2.7.
|
|
55
|
-
"@module-federation/
|
|
53
|
+
"@module-federation/sdk": "0.21.0",
|
|
54
|
+
"@module-federation/node": "2.7.19",
|
|
55
|
+
"@module-federation/enhanced": "0.21.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@rslib/core": "^0.12.4",
|