@module-federation/rspress-plugin 0.16.0 → 0.17.1

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 CHANGED
@@ -234,7 +234,7 @@ function plugin_pluginModuleFederation(mfConfig, rspressOptions) {
234
234
  let routes = [];
235
235
  return {
236
236
  name: 'plugin-module-federation',
237
- async beforeBuild (config) {
237
+ async config (config) {
238
238
  if (!isDev() && false !== config.ssg) enableSSG = true;
239
239
  config.builderConfig ||= {};
240
240
  config.builderConfig.dev ||= {};
@@ -248,6 +248,7 @@ function plugin_pluginModuleFederation(mfConfig, rspressOptions) {
248
248
  environment: 'node',
249
249
  ssrDir: 'mf-ssg'
250
250
  }));
251
+ return config;
251
252
  },
252
253
  builderConfig: {
253
254
  plugins: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspress-plugin",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "description": "Module Federation plugin for Rspress",
6
6
  "keywords": [
@@ -23,12 +23,12 @@
23
23
  "author": "hanric <hanric.zhang@gmail.com>",
24
24
  "exports": {
25
25
  ".": {
26
- "types": "./dist/esm/plugin.d.ts",
26
+ "types": "./dist/esm/packages/rspress-plugin/src/plugin.d.ts",
27
27
  "import": "./dist/esm/index.js"
28
28
  }
29
29
  },
30
30
  "module": "./dist/esm/index.js",
31
- "types": "./dist/esm/plugin.d.ts",
31
+ "types": "./dist/esm/packages/rspress-plugin/src/plugin.d.ts",
32
32
  "devDependencies": {
33
33
  "@rslib/core": "^0.9.2",
34
34
  "@rspress/shared": "2.0.0-beta.16",
@@ -41,10 +41,10 @@
41
41
  "fs-extra": "11.3.0",
42
42
  "html-to-text": "^9.0.5",
43
43
  "lodash-es": "^4.17.21",
44
- "@module-federation/enhanced": "0.16.0",
45
- "@module-federation/rsbuild-plugin": "0.16.0",
46
- "@module-federation/error-codes": "0.16.0",
47
- "@module-federation/sdk": "0.16.0"
44
+ "@module-federation/sdk": "0.17.1",
45
+ "@module-federation/enhanced": "0.17.1",
46
+ "@module-federation/rsbuild-plugin": "0.17.1",
47
+ "@module-federation/error-codes": "0.17.1"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "rslib build",