@module-federation/rspress-plugin 2.8.2 → 2.9.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.
Files changed (2) hide show
  1. package/README.md +20 -21
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,33 +1,32 @@
1
- # @examples/mf-react-component
1
+ # @module-federation/rspress-plugin
2
2
 
3
- This example demonstrates how to use Rslib to build a simple Module Federation React component.
3
+ Module Federation plugin for [Rspress](https://rspress.dev/). Wraps the Rsbuild Module Federation plugin and can rebuild search / LLM indexes from HTML after the build.
4
4
 
5
- ### Command
5
+ ## Install
6
6
 
7
- Build package
8
-
9
- ```
10
- nx build rslib-module
7
+ ```bash
8
+ pnpm add @module-federation/rspress-plugin
11
9
  ```
12
10
 
13
- Serve package
11
+ ## Build
14
12
 
13
+ ```bash
14
+ pnpm --filter @module-federation/rspress-plugin run build
15
15
  ```
16
- nx serve rslib-module
17
- ```
18
-
19
- Dev package
20
16
 
21
- 1.
17
+ ## Usage
22
18
 
23
- ```
24
- nx dev rslib-module
25
- ```
19
+ ```ts
20
+ import { pluginModuleFederation } from '@module-federation/rspress-plugin';
26
21
 
27
- 2.
28
-
29
- ```
30
- nx storybook rslib-module
22
+ export default {
23
+ plugins: [
24
+ pluginModuleFederation({
25
+ name: 'doc-app',
26
+ // ...Module Federation options
27
+ }),
28
+ ],
29
+ };
31
30
  ```
32
31
 
33
- visit http://localhost:6006
32
+ Optional second argument controls Rspress-specific behavior (`autoShared`, `rebuildSearchIndex`, `rebuildLlms`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspress-plugin",
3
- "version": "2.8.2",
3
+ "version": "2.9.1",
4
4
  "type": "module",
5
5
  "description": "Module Federation plugin for Rspress",
6
6
  "keywords": [
@@ -42,10 +42,10 @@
42
42
  "html-to-text": "9.0.5",
43
43
  "lodash-es": "4.18.1",
44
44
  "@rspress/shared": "2.0.14",
45
- "@module-federation/sdk": "2.8.2",
46
- "@module-federation/rsbuild-plugin": "2.8.2",
47
- "@module-federation/error-codes": "2.8.2",
48
- "@module-federation/enhanced": "2.8.2"
45
+ "@module-federation/sdk": "2.9.1",
46
+ "@module-federation/enhanced": "2.9.1",
47
+ "@module-federation/rsbuild-plugin": "2.9.1",
48
+ "@module-federation/error-codes": "2.9.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@rspress/core": "2.0.14"