@module-federation/rspress-plugin 2.8.1 → 2.9.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 +20 -21
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @module-federation/rspress-plugin
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
nx build rslib-module
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @module-federation/rspress-plugin
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
|
|
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
|
-
|
|
17
|
+
## Usage
|
|
22
18
|
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
```
|
|
19
|
+
```ts
|
|
20
|
+
import { pluginModuleFederation } from '@module-federation/rspress-plugin';
|
|
26
21
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
export default {
|
|
23
|
+
plugins: [
|
|
24
|
+
pluginModuleFederation({
|
|
25
|
+
name: 'doc-app',
|
|
26
|
+
// ...Module Federation options
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
};
|
|
31
30
|
```
|
|
32
31
|
|
|
33
|
-
|
|
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.
|
|
3
|
+
"version": "2.9.0",
|
|
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.
|
|
46
|
-
"@module-federation/enhanced": "2.
|
|
47
|
-
"@module-federation/rsbuild-plugin": "2.
|
|
48
|
-
"@module-federation/error-codes": "2.
|
|
45
|
+
"@module-federation/sdk": "2.9.0",
|
|
46
|
+
"@module-federation/enhanced": "2.9.0",
|
|
47
|
+
"@module-federation/rsbuild-plugin": "2.9.0",
|
|
48
|
+
"@module-federation/error-codes": "2.9.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@rspress/core": "2.0.14"
|