@module-federation/rspress-plugin 2.1.0 → 2.2.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/README.md +1 -1
- package/dist/index.js +13 -3
- package/package.json +8 -6
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { pluginModuleFederation } from "@module-federation/rsbuild-plugin";
|
|
2
|
-
import { BUILD_002, buildDescMap
|
|
2
|
+
import { BUILD_002, buildDescMap } from "@module-federation/error-codes";
|
|
3
|
+
import { logAndReport } from "@module-federation/error-codes/node";
|
|
3
4
|
import { createLogger, createModuleFederationConfig } from "@module-federation/sdk";
|
|
4
5
|
import promises_default from "node:fs/promises";
|
|
5
6
|
import external_node_path_default from "node:path";
|
|
@@ -220,9 +221,18 @@ function plugin_pluginModuleFederation(mfConfig, rspressOptions) {
|
|
|
220
221
|
rspack (config) {
|
|
221
222
|
if ('node' === config.name) {
|
|
222
223
|
if (('/' === config.output.publicPath || 'auto' === config.output.publicPath) && mfConfig.exposes) {
|
|
223
|
-
|
|
224
|
+
logAndReport(BUILD_002, buildDescMap, {
|
|
224
225
|
publicPath: config.output.publicPath
|
|
225
|
-
})
|
|
226
|
+
}, src_logger.error.bind(src_logger), void 0, {
|
|
227
|
+
bundler: {
|
|
228
|
+
name: 'rsbuild'
|
|
229
|
+
},
|
|
230
|
+
mfConfig: {
|
|
231
|
+
name: mfConfig.name,
|
|
232
|
+
filename: mfConfig.filename,
|
|
233
|
+
exposes: mfConfig.exposes
|
|
234
|
+
}
|
|
235
|
+
});
|
|
226
236
|
process.exit(1);
|
|
227
237
|
}
|
|
228
238
|
outputDir = config.output.path;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rspress-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Module Federation plugin for Rspress",
|
|
6
6
|
"keywords": [
|
|
@@ -42,16 +42,18 @@
|
|
|
42
42
|
"html-to-text": "^9.0.5",
|
|
43
43
|
"lodash-es": "^4.17.21",
|
|
44
44
|
"@rspress/shared": "2.0.3",
|
|
45
|
-
"@module-federation/
|
|
46
|
-
"@module-federation/rsbuild-plugin": "2.
|
|
47
|
-
"@module-federation/
|
|
48
|
-
"@module-federation/error-codes": "2.
|
|
45
|
+
"@module-federation/enhanced": "2.2.0",
|
|
46
|
+
"@module-federation/rsbuild-plugin": "2.2.0",
|
|
47
|
+
"@module-federation/sdk": "2.2.0",
|
|
48
|
+
"@module-federation/error-codes": "2.2.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@rspress/core": "^2.0.3"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "rslib build",
|
|
55
|
-
"build:watch": "rslib build --watch"
|
|
55
|
+
"build:watch": "rslib build --watch",
|
|
56
|
+
"dev": "pnpm run build:watch",
|
|
57
|
+
"pre-release": "pnpm exec turbo run build --filter=@module-federation/webpack-bundler-runtime"
|
|
56
58
|
}
|
|
57
59
|
}
|