@module-federation/rspress-plugin 0.0.0-next-20250617091719 → 0.0.0-next-20250617092744
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/esm/index.js +2 -4
- package/dist/esm/plugin.d.ts +1 -2
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import external_path_default from "path";
|
|
2
2
|
import external_fs_extra_default from "fs-extra";
|
|
3
|
-
import { ModuleFederationPlugin } from "@module-federation/enhanced/rspack";
|
|
4
3
|
import { pluginModuleFederation } from "@module-federation/rsbuild-plugin";
|
|
5
4
|
import { BUILD_002, buildDescMap, getShortErrorMsg } from "@module-federation/error-codes";
|
|
6
5
|
import { createLogger } from "@module-federation/sdk";
|
|
@@ -49,7 +48,7 @@ function replaceEntryWithBootstrapEntry(bundlerConfig) {
|
|
|
49
48
|
});
|
|
50
49
|
bundlerConfig.entry = replaceWithAsyncEntry(entry, bundlerConfig.name || 'index');
|
|
51
50
|
}
|
|
52
|
-
function plugin_pluginModuleFederation(mfConfig
|
|
51
|
+
function plugin_pluginModuleFederation(mfConfig) {
|
|
53
52
|
let enableSSG = false;
|
|
54
53
|
return {
|
|
55
54
|
name: 'plugin-module-federation',
|
|
@@ -65,8 +64,7 @@ function plugin_pluginModuleFederation(mfConfig, PluginConstructor = ModuleFeder
|
|
|
65
64
|
config.builderConfig.plugins.push(pluginModuleFederation(mfConfig, {
|
|
66
65
|
ssr: enableSSG,
|
|
67
66
|
environment: 'node',
|
|
68
|
-
ssrDir: 'mf-ssg'
|
|
69
|
-
PluginConstructor
|
|
67
|
+
ssrDir: 'mf-ssg'
|
|
70
68
|
}));
|
|
71
69
|
},
|
|
72
70
|
builderConfig: {
|
package/dist/esm/plugin.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack';
|
|
2
1
|
import type { moduleFederationPlugin } from '@module-federation/sdk';
|
|
3
2
|
import type { RspressPlugin } from '@rspress/shared';
|
|
4
|
-
export declare function pluginModuleFederation(mfConfig: moduleFederationPlugin.ModuleFederationPluginOptions
|
|
3
|
+
export declare function pluginModuleFederation(mfConfig: moduleFederationPlugin.ModuleFederationPluginOptions): RspressPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rspress-plugin",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250617092744",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Module Federation plugin for Rspress",
|
|
6
6
|
"keywords": [
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"fs-extra": "11.3.0",
|
|
39
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
40
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
41
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
42
|
-
"@module-federation/error-codes": "0.0.0-next-
|
|
39
|
+
"@module-federation/sdk": "0.0.0-next-20250617092744",
|
|
40
|
+
"@module-federation/enhanced": "0.0.0-next-20250617092744",
|
|
41
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250617092744",
|
|
42
|
+
"@module-federation/error-codes": "0.0.0-next-20250617092744"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "rslib build",
|