@module-federation/rsbuild-plugin 2.6.0 → 2.7.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/cli/index.js +33 -39
- package/dist/cli/index.mjs +18 -34
- package/dist/constant.js +24 -20
- package/dist/constant.mjs +0 -2
- package/dist/index.js +19 -18
- package/dist/index.mjs +1 -2
- package/dist/logger.js +14 -12
- package/dist/logger.mjs +2 -4
- package/dist/utils/addDataFetchExposes.js +13 -11
- package/dist/utils/addDataFetchExposes.mjs +0 -5
- package/dist/utils/autoDeleteSplitChunkCacheGroups.js +18 -15
- package/dist/utils/autoDeleteSplitChunkCacheGroups.mjs +1 -3
- package/dist/utils/index.js +19 -17
- package/dist/utils/index.mjs +6 -13
- package/dist/utils/manifest.js +13 -11
- package/dist/utils/manifest.mjs +0 -3
- package/dist/utils/ssr.js +36 -45
- package/dist/utils/ssr.mjs +16 -32
- package/dist/utils.js +19 -18
- package/dist/utils.mjs +1 -2
- package/package.json +9 -8
package/dist/utils.js
CHANGED
|
@@ -7,13 +7,12 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
7
7
|
})();
|
|
8
8
|
;
|
|
9
9
|
var __webpack_modules__ = ({
|
|
10
|
-
"./utils/index"
|
|
10
|
+
"./utils/index"(module) {
|
|
11
11
|
module.exports = require("./utils/index.js");
|
|
12
12
|
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
14
|
|
|
15
15
|
});
|
|
16
|
-
/************************************************************************/
|
|
17
16
|
// The module cache
|
|
18
17
|
var __webpack_module_cache__ = {};
|
|
19
18
|
|
|
@@ -37,7 +36,6 @@ return module.exports;
|
|
|
37
36
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
/************************************************************************/
|
|
41
39
|
// webpack/runtime/compat_get_default_export
|
|
42
40
|
(() => {
|
|
43
41
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -52,12 +50,16 @@ __webpack_require__.n = (module) => {
|
|
|
52
50
|
})();
|
|
53
51
|
// webpack/runtime/define_property_getters
|
|
54
52
|
(() => {
|
|
55
|
-
__webpack_require__.d = (exports,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
54
|
+
var define = (defs, kind) => {
|
|
55
|
+
for(var key in defs) {
|
|
56
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
57
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
define(getters, "get");
|
|
62
|
+
define(values, "value");
|
|
61
63
|
};
|
|
62
64
|
})();
|
|
63
65
|
// webpack/runtime/has_own_property
|
|
@@ -74,22 +76,21 @@ __webpack_require__.r = (exports) => {
|
|
|
74
76
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
75
77
|
};
|
|
76
78
|
})();
|
|
77
|
-
/************************************************************************/
|
|
78
79
|
var __webpack_exports__ = {};
|
|
79
80
|
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
80
81
|
(() => {
|
|
81
82
|
__webpack_require__.r(__webpack_exports__);
|
|
82
|
-
/*
|
|
83
|
-
/*
|
|
83
|
+
/* import */ var _utils_index__rspack_import_0 = __webpack_require__("./utils/index");
|
|
84
|
+
/* import */ var _utils_index__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_utils_index__rspack_import_0);
|
|
84
85
|
|
|
85
|
-
/*
|
|
86
|
-
/*
|
|
87
|
-
/*
|
|
86
|
+
/* reexport */ var __rspack_reexport = {};
|
|
87
|
+
/* reexport */ for( const __rspack_import_key in _utils_index__rspack_import_0) if(__rspack_import_key !== "default") __rspack_reexport[__rspack_import_key] =() => _utils_index__rspack_import_0[__rspack_import_key]
|
|
88
|
+
/* reexport */ __webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
})();
|
|
91
92
|
|
|
92
|
-
for(var
|
|
93
|
-
exports[
|
|
93
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
94
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
94
95
|
}
|
|
95
96
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/utils.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rsbuild-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Module Federation plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://module-federation.io",
|
|
6
6
|
"bugs": {
|
|
@@ -49,14 +49,15 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@module-federation/sdk": "2.
|
|
53
|
-
"@module-federation/enhanced": "2.
|
|
54
|
-
"@module-federation/node": "2.7.
|
|
52
|
+
"@module-federation/sdk": "2.7.0",
|
|
53
|
+
"@module-federation/enhanced": "2.7.0",
|
|
54
|
+
"@module-federation/node": "2.7.46"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@rslib/core": "^0.
|
|
58
|
-
"@rsbuild/core": "2.
|
|
59
|
-
"
|
|
57
|
+
"@rslib/core": "^0.23.2",
|
|
58
|
+
"@rsbuild/core": "2.1.4",
|
|
59
|
+
"@rstest/core": "^0.10.6",
|
|
60
|
+
"typescript": "6.0.3"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
62
63
|
"@rsbuild/core": "^1.3.21 || ^2.0.0-0"
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"scripts": {
|
|
77
78
|
"build": "rslib build",
|
|
78
79
|
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\" \"package.json\"",
|
|
79
|
-
"test": "pnpm exec
|
|
80
|
+
"test": "pnpm exec rstest --passWithNoTests",
|
|
80
81
|
"pre-release": "pnpm run test && pnpm run build"
|
|
81
82
|
}
|
|
82
83
|
}
|