@modern-js/main-doc 2.46.0 → 2.47.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/docs/en/apis/app/commands.mdx +9 -9
- package/docs/en/configure/app/auto-load-plugin.mdx +3 -3
- package/docs/en/configure/app/builder-plugins.mdx +13 -13
- package/docs/en/configure/app/output/disable-node-polyfill.mdx +1 -1
- package/docs/en/configure/app/source/enable-async-entry.mdx +1 -1
- package/docs/en/guides/advanced-features/compatibility.mdx +1 -1
- package/docs/en/guides/advanced-features/optimize-bundle.mdx +7 -7
- package/docs/en/guides/advanced-features/rsbuild-plugin.mdx +51 -0
- package/docs/en/guides/advanced-features/rspack-start.mdx +2 -4
- package/docs/en/guides/advanced-features/using-storybook.mdx +202 -20
- package/docs/en/guides/basic-features/css.mdx +2 -2
- package/docs/en/guides/concept/builder.mdx +23 -25
- package/docs/en/guides/get-started/tech-stack.mdx +1 -1
- package/docs/en/guides/topic-detail/framework-plugin/introduction.mdx +1 -1
- package/docs/en/guides/topic-detail/micro-frontend/c02-development.mdx +35 -4
- package/docs/zh/apis/app/commands.mdx +9 -9
- package/docs/zh/configure/app/auto-load-plugin.mdx +3 -3
- package/docs/zh/configure/app/builder-plugins.mdx +14 -14
- package/docs/zh/configure/app/output/disable-node-polyfill.mdx +1 -1
- package/docs/zh/guides/advanced-features/compatibility.mdx +1 -1
- package/docs/zh/guides/advanced-features/optimize-bundle.mdx +8 -8
- package/docs/zh/guides/advanced-features/rsbuild-plugin.mdx +51 -0
- package/docs/zh/guides/advanced-features/rspack-start.mdx +2 -2
- package/docs/zh/guides/advanced-features/using-storybook.mdx +204 -21
- package/docs/zh/guides/basic-features/css.mdx +2 -2
- package/docs/zh/guides/concept/builder.mdx +20 -22
- package/docs/zh/guides/get-started/tech-stack.mdx +1 -1
- package/docs/zh/guides/topic-detail/framework-plugin/introduction.mdx +1 -1
- package/docs/zh/guides/topic-detail/micro-frontend/c02-development.mdx +35 -6
- package/package.json +7 -7
- package/docs/en/configure/app/source/compile-js-data-uri.mdx +0 -9
- package/docs/zh/configure/app/source/compile-js-data-uri.mdx +0 -9
@@ -2,12 +2,7 @@
|
|
2
2
|
sidebar_position: 15
|
3
3
|
---
|
4
4
|
|
5
|
-
# 使用
|
6
|
-
|
7
|
-
:::warning
|
8
|
-
该教程是用于老版本 StorybookV6 用户,并且会在以后弃用,想要从旧版本插件升级或新用户想要尝试请查看[新文档](https://modernjs.dev/builder/guide/advanced/storybook.html)
|
9
|
-
:::
|
10
|
-
|
5
|
+
# 使用 Storybook
|
11
6
|
|
12
7
|
[Storybook](https://storybook.js.org/) 是一个专门用于组件调试的工具,它围绕着组件开发提供了:
|
13
8
|
|
@@ -17,33 +12,221 @@ sidebar_position: 15
|
|
17
12
|
- 可分享能力
|
18
13
|
- 工作流程自动化
|
19
14
|
|
20
|
-
|
15
|
+
:::tip
|
16
|
+
本教程适用于新版 Storybook V7 用户,如果你在使用老版本 Storybook V6 (有使用 @modern-js/plugin-storybook 插件),可参考 [迁移指南](#迁移指南) 进行升级。
|
17
|
+
:::
|
21
18
|
|
22
|
-
|
19
|
+
## 快速开始
|
23
20
|
|
24
|
-
|
21
|
+
Modern.js 默认集成了 Storybook 的调试能力,当我们想要对组件进行调试的时候,可以通过以下方式启用 Storybook 调试功能:
|
25
22
|
|
26
23
|
```bash
|
27
24
|
$ npx modern new
|
28
25
|
? 请选择你想要的操作 启用可选功能
|
29
|
-
? 请选择功能名称 启用「
|
26
|
+
? 请选择功能名称 启用「Storybook」V7
|
27
|
+
```
|
28
|
+
|
29
|
+
该命令会创建好 Storybook 常用的模版,包括:
|
30
|
+
|
31
|
+
- 创建配置文件夹 `.storybook`,以及默认配置文件 `.storybook/main.ts`
|
32
|
+
- 创建 stories 组件示例
|
33
|
+
- 更新 package.json,新增依赖 @storybook/addon-essential 和 @modern-js/storybook,以及创建 storybook 相关脚本
|
34
|
+
|
35
|
+
运行 `npm run storybook` 即可启动 Storybook 预览。
|
36
|
+
|
37
|
+
## 开启 Rspack 构建
|
38
|
+
|
39
|
+
Rspack 构建速度非常快,在 Modern.js 中只需要如下配置即可使用 Rspack 作为构建工具。
|
40
|
+
|
41
|
+
```diff filename='.storybook/main.js'
|
42
|
+
const config = {
|
43
|
+
framework: {
|
44
|
+
name: '@modern-js/storybook',
|
45
|
+
options: {
|
46
|
+
- bundler: 'webpack'
|
47
|
+
+ bundler: 'rspack'
|
48
|
+
},
|
49
|
+
},
|
50
|
+
typescript: {
|
51
|
+
- reactDocgen: 'react-docgen-typescript'
|
52
|
+
+ reactDocgen: 'react-docgen'
|
53
|
+
}
|
54
|
+
};
|
55
|
+
|
56
|
+
export default config;
|
57
|
+
```
|
58
|
+
|
59
|
+
注意上面配置中,更改了 reactDocgen 配置,因为 Rspack 目前还不支持 @storybook/react-docgen-typescript-plugin。
|
60
|
+
|
61
|
+
## 配置
|
62
|
+
|
63
|
+
在 `.storybook/main.js` 中包含一些配置。
|
64
|
+
|
65
|
+
### configPath
|
66
|
+
|
67
|
+
- **类型**: `string`
|
68
|
+
- **默认值**: `modern.config.(j|t)s`
|
69
|
+
|
70
|
+
用于指定配置文件路径。
|
71
|
+
|
72
|
+
例如
|
73
|
+
|
74
|
+
```javascript filename='.storybook/main.js'
|
75
|
+
const config = {
|
76
|
+
framework: {
|
77
|
+
name: '@modern-js/storybook',
|
78
|
+
options: {
|
79
|
+
configPath: 'modern.storybook.config.ts',
|
80
|
+
},
|
81
|
+
},
|
82
|
+
};
|
83
|
+
|
84
|
+
export default config;
|
85
|
+
```
|
86
|
+
|
87
|
+
### bundler
|
88
|
+
|
89
|
+
- **类型**: `'webpack' | 'rspack'`
|
90
|
+
- **默认值**: `webpack`
|
91
|
+
|
92
|
+
指定底层构建工具使用 Webpack 还是 Rspack。
|
93
|
+
|
94
|
+
例如
|
95
|
+
|
96
|
+
```javascript filename='.storybook/main.js'
|
97
|
+
const config = {
|
98
|
+
framework: {
|
99
|
+
name: '@modern-js/storybook',
|
100
|
+
options: {
|
101
|
+
bundler: 'rspack',
|
102
|
+
},
|
103
|
+
},
|
104
|
+
};
|
105
|
+
|
106
|
+
export default config;
|
107
|
+
```
|
108
|
+
|
109
|
+
### builderConfig
|
110
|
+
|
111
|
+
- **类型**: `BuilderConfig`
|
112
|
+
- **默认值**: `undefined`
|
113
|
+
|
114
|
+
更改构建配置,该配置比配置文件拥有更高的优先级,若不想使用配置文件,也可直接在此处指定。
|
115
|
+
|
116
|
+
例如
|
117
|
+
|
118
|
+
```javascript filename='.storybook/main.js'
|
119
|
+
const config = {
|
120
|
+
framework: {
|
121
|
+
name: '@modern-js/storybook',
|
122
|
+
options: {
|
123
|
+
builderConfig: {
|
124
|
+
alias: {
|
125
|
+
react: require.resolve('react'),
|
126
|
+
'react-dom': require.resolve('react-dom'),
|
127
|
+
},
|
128
|
+
},
|
129
|
+
},
|
130
|
+
},
|
131
|
+
};
|
132
|
+
|
133
|
+
export default config;
|
30
134
|
```
|
31
135
|
|
32
|
-
|
136
|
+
## 命令行
|
137
|
+
|
138
|
+
@modern-js/storybook 代理了部分 storybook cli 的命令。
|
139
|
+
|
140
|
+
### storybook dev
|
141
|
+
|
142
|
+
启动 Storybook,详情请看 [storybook#dev](https://storybook.js.org/docs/react/api/cli-options#dev)
|
143
|
+
|
144
|
+
### storybook build
|
145
|
+
|
146
|
+
对 Storybook 进行生产环境构建,详情请看 [storybook#build](https://storybook.js.org/docs/react/api/cli-options#build)
|
147
|
+
|
148
|
+
## Storybook addon 兼容性
|
149
|
+
|
150
|
+
由于当前文档中的 Storybook 版本为 7,因此请选择 storybook V7 的 addon。
|
151
|
+
|
152
|
+
当 addon 不需要额外的 Babel 或 Webpack 配置时,可以直接使用,如 @storybook/addon-essentials。
|
33
153
|
|
34
|
-
|
35
|
-
import { appTools, defineConfig } from '@modern-js/app-tools';
|
36
|
-
import { storybookPlugin } from '@modern-js/plugin-storybook';
|
154
|
+
部分 addon 需要依赖 babel 插件和 Webpack 配置时,如 @storybook/addon-coverage,只有使用 webpack 构建才会支持。
|
37
155
|
|
38
|
-
|
39
|
-
|
40
|
-
|
156
|
+
## 收益
|
157
|
+
|
158
|
+
使用 @modern-js/storybook 可以带给你 Rspack 超快的构建,并且完全无需繁琐配置,开箱即用。并且默认包含了许多 Web 构建中的最佳实践,例如 code splitting 策略,内置 css module 和 postcss,开箱即用的 TypeScript 支持,内置常用 Babel 插件等等。
|
159
|
+
|
160
|
+
Modern.js 的构建能力和配置都可以直接在 Storybook 项目中使用。
|
161
|
+
|
162
|
+
## Trouble Shooting
|
163
|
+
|
164
|
+
1. 使用 Modern.js 启动 storybook 时不会读取 babel.config.json 等配置文件,因此 babel 配置需要在 [tools.babel](/configure/app/tools/babel) 中进行配置。
|
165
|
+
同样的 webpack 配置需要写在 [tools.webpack](/configure/app/tools/webpack) 或 [tools.webpackChain](/configure/app/tools/webpack-chain) 中。
|
166
|
+
|
167
|
+
2. 如果发现构建速度很慢,请检查是否开启了自动文档生成功能,如果想要最高的性能,请配置为 `react-docgen`。`react-docgen` 和 `react-docgen-typescript` 的区别是,前者基于 Babel 实现,后者基于 TypeScript 实现,前者性能会更好,但类型推断能力更弱。如果使用 Rspack 构建,则只支持 `react-docgen`。
|
168
|
+
|
169
|
+
```javascript filename='.storybook/main.js'
|
170
|
+
const config = {
|
171
|
+
typescript: {
|
172
|
+
reactDocgen: 'react-docgen',
|
173
|
+
},
|
174
|
+
};
|
175
|
+
|
176
|
+
export default config;
|
41
177
|
```
|
42
178
|
|
43
|
-
##
|
179
|
+
## 迁移指南
|
180
|
+
|
181
|
+
### 从 Modern.js Storybook V6 迁移
|
182
|
+
|
183
|
+
如果你是从 V6 迁移至 V7 的用户,可以通过 [上述方式](#快速开始) 使用 V7,同时做以下调整:
|
184
|
+
|
185
|
+
##### 修改配置文件
|
186
|
+
|
187
|
+
若你在旧版本对 storybook 进行了一些自定义配置,需要将配置文件 `root/config/storybook/main.(j|t)s` 移动到 `root/.storybook/main.(j|t)s`。
|
188
|
+
|
189
|
+
并在 `root/.storybook/main.(j|t)s` 中添加以下配置,指定 framework 为 @modern-js/storybook:
|
190
|
+
|
191
|
+
```diff
|
192
|
+
const config = {
|
193
|
+
+ framework: {
|
194
|
+
+ name: '@modern-js/storybook'
|
195
|
+
+ },
|
196
|
+
};
|
197
|
+
|
198
|
+
export default config;
|
199
|
+
```
|
200
|
+
|
201
|
+
##### 依赖升级
|
202
|
+
|
203
|
+
升级 @storybook/addon-\* 系列依赖,升级到 7 版本。
|
204
|
+
|
205
|
+
##### 移除 @modern-js/plugin-storybook 插件
|
206
|
+
|
207
|
+
在 modern.config.(j|t)s 中删除 @modern-js/plugin-storybook 插件的注册。
|
208
|
+
|
209
|
+
##### 修改 Storybook 写法
|
210
|
+
|
211
|
+
按照 Storybook 官网文档,对一些 breaking change 做相应的更新,例如 stories 的写法,MDX 的写法等,参考[storybook 迁移文档](https://storybook.js.org/docs/react/migration-guide)。
|
212
|
+
|
213
|
+
### 从原生 Storybook 项目迁移
|
214
|
+
|
215
|
+
若当前 Storybook 版本还是 6,需要先按照 Storybook 官网文档升级到版本 7,参考 [storybook 迁移文档](https://storybook.js.org/docs/react/migration-guide)。
|
216
|
+
|
217
|
+
```diff filename='.storybook/main.js'
|
218
|
+
const config = {
|
219
|
+
- framework: '@storybook/react-webapck5',
|
220
|
+
+ framework: {
|
221
|
+
+ name: '@modern-js/storybook'
|
222
|
+
+ },
|
223
|
+
};
|
224
|
+
|
225
|
+
export default config;
|
226
|
+
```
|
44
227
|
|
45
|
-
Modern.js
|
228
|
+
Modern.js 的配置文件默认为 `modern.config.(j|t)s`,配置请查看 [modern.js 配置](/configure/app/usage)。
|
46
229
|
|
47
|
-
|
230
|
+
若原来项目中包含了 Babel 等配置,需要对应的写在 modern 配置中,大部分 Babel 配置已经包含进了 Modern.js。
|
48
231
|
|
49
|
-
|
232
|
+
安装完成后进行相应的[配置](/guides/advanced-features/using-storybook#配置)。
|
@@ -12,13 +12,13 @@ Modern.js 内置了社区流行的 CSS 预处理器,包括 Less 和 Sass。
|
|
12
12
|
|
13
13
|
默认情况下,你不需要对 Less 和 Sass 进行任何配置。如果你有自定义 loader 配置的需求,可以通过配置 [tools.less](/configure/app/tools/less)、[tools.sass](/configure/app/tools/sass) 来进行设置。
|
14
14
|
|
15
|
-
你也可以在 Modern.js 中使用 Stylus,只需要安装
|
15
|
+
你也可以在 Modern.js 中使用 Stylus,只需要安装 Rsbuild 提供的 Stylus 插件即可,使用方式请参考 [Stylus 插件](https://rsbuild.dev/zh/plugins/list/plugin-stylus)。
|
16
16
|
|
17
17
|
## 使用 PostCSS
|
18
18
|
|
19
19
|
Modern.js 内置了 [PostCSS](https://postcss.org/) 来转换 CSS 代码。
|
20
20
|
|
21
|
-
请阅读 [
|
21
|
+
请阅读 [Rsbuild - 使用 PostCSS](https://rsbuild.dev/zh/guide/basic/css-usage#%E4%BD%BF%E7%94%A8-postcss) 了解更多用法。
|
22
22
|
|
23
23
|
## 使用 CSS Modules
|
24
24
|
|
@@ -4,44 +4,42 @@ sidebar_position: 2
|
|
4
4
|
|
5
5
|
# 构建工具
|
6
6
|
|
7
|
-
|
7
|
+
Modern.js 内部基于 [Rsbuild](https://rsbuild.dev/) 封装了自身的构建工具(Modern.js Builder),并支持在 Webpack 和 Rspack 两种打包工具间无缝切换。
|
8
8
|
|
9
|
-
|
9
|
+
:::tip 什么是 Rsbuild
|
10
|
+
Rsbuild 是基于 Rspack 的构建工具,是一个增强版的 Rspack CLI,更易用、开箱即用。
|
11
|
+
:::
|
10
12
|
|
11
13
|
## 构建架构
|
12
14
|
|
13
15
|
从构建的角度看,Modern.js 分为三层架构,从上到下依次是:
|
14
16
|
|
15
|
-
-
|
16
|
-
-
|
17
|
-
-
|
17
|
+
- 研发框架:Modern.js(开源)和 EdenX(内部)。
|
18
|
+
- 构建工具:Rsbuild。
|
19
|
+
- 打包工具:Webpack 和 Rspack。
|
18
20
|
|
19
|
-
<img
|
21
|
+
<img
|
22
|
+
src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/build-layers-02193.png"
|
23
|
+
style={{ width: '100%', maxWidth: '540px' }}
|
24
|
+
/>
|
20
25
|
|
21
26
|
## 构建文档
|
22
27
|
|
23
|
-
|
28
|
+
Rsbuild 的文档地址为:https://rsbuild.dev/
|
24
29
|
|
25
|
-
在该文档中,你可以了解到
|
30
|
+
在该文档中,你可以了解到 Rsbuild 的详细介绍,同时也可以找到各个构建能力的完整使用指南。
|
26
31
|
|
27
|
-
|
32
|
+
如果你想要了解某些构建配置的使用,建议你优先阅读 Modern.js 文档,因为 Modern.js 中的构建配置和默认值与 Rsbuild 并不完全相同。
|
28
33
|
|
29
|
-
|
34
|
+
## 构建插件
|
30
35
|
|
31
|
-
|
36
|
+
在 Modern.js 中,你可以注册 Webpack 插件、Rspack 插件或 Rsbuild 插件:
|
32
37
|
|
33
|
-
|
34
|
-
|
35
|
-
html: {
|
36
|
-
title: 'example',
|
37
|
-
},
|
38
|
-
});
|
39
|
-
```
|
40
|
-
|
41
|
-
关于构建配置的详细说明,请参考 [「Modern.js Builder - Builder 配置」](https://modernjs.dev/builder/guide/basic/builder-config.html)。
|
38
|
+
- Webpack / Rspack 插件:通过 [tools.bundlerChain](/configure/app/tools/bundler-chain) 配置。
|
39
|
+
- Rsbuild 插件:通过 [builderPlugins](/configure/app/builder-plugins) 配置。
|
42
40
|
|
43
41
|
## 构建能力
|
44
42
|
|
45
|
-
|
43
|
+
Rsbuild 提供了丰富的构建能力,包括 JavaScript 编译、CSS 编译、静态资源处理、代码热更新、代码压缩、TS 类型检查等几十种能力。
|
46
44
|
|
47
|
-
我们推荐你阅读 [「
|
45
|
+
我们推荐你阅读 [「Rsbuild - 功能导航」](https://rsbuild.dev/zh/guide/start/features) 来了解 Rsbuild 提供的所有构建能力。
|
@@ -89,7 +89,7 @@ Modern.js 支持[「启用 Tailwind CSS」](/guides/basic-features/css.html#使
|
|
89
89
|
Modern.js 支持 [Sass](https://sass-lang.com/)、[Less](https://lesscss.org/) 和 [Stylus](https://stylus-lang.com/) 三种 CSS 预处理器:
|
90
90
|
|
91
91
|
- 默认支持 Sass 和 Less,开箱即用。
|
92
|
-
- 可选支持 Stylus,请参考[「Stylus 插件」](https://
|
92
|
+
- 可选支持 Stylus,请参考[「Stylus 插件」](https://rsbuild.dev/zh/plugins/list/plugin-stylus) 来使用。
|
93
93
|
|
94
94
|
---
|
95
95
|
|
@@ -10,7 +10,7 @@ Modern.js 提供了一套拥有完整生命周期的插件系统。插件可用
|
|
10
10
|
|
11
11
|
## 使用方式
|
12
12
|
|
13
|
-
|
13
|
+
插件需要在配置文件中显式注册才能够生效,当需要为 Modern.js 添加插件时,可以将它配置到 [plugins](/configure/app/plugins.html) 字段中:
|
14
14
|
|
15
15
|
```ts title="edenx.config.ts"
|
16
16
|
// an example for bff
|
@@ -12,14 +12,13 @@ title: 体验微前端
|
|
12
12
|
|
13
13
|
## 创建应用
|
14
14
|
|
15
|
-
|
15
|
+
目前项目的路由模式分为以下三种
|
16
16
|
|
17
|
-
-
|
18
|
-
-
|
17
|
+
- 约定式路由 (设置 `router: true` 并使用文件路由)
|
18
|
+
- 自控式路由 (设置 `router: true` 并自己创建 `BrowserRouter` 等)
|
19
|
+
- 其他 (设置 `router: false` 项目内自己安装和使用 `react-router-dom`)
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
在本次体验中我们会为主应用创建两个子应用 Table 和 Dashboard (Table 为约定式路由,Dashboard 为自控式路由)
|
21
|
+
在本教程中我们会为主应用创建两个子应用 Table 和 Dashboard (Table 为约定式路由,Dashboard 为自控式路由)
|
23
22
|
|
24
23
|
### 创建约定式路由主应用
|
25
24
|
|
@@ -145,6 +144,36 @@ import CustomRouterMicroFrontend from '@site-docs/components/custom-router-micro
|
|
145
144
|
|
146
145
|
<CustomRouterMicroFrontend />
|
147
146
|
|
147
|
+
### 创建其他主应用
|
148
|
+
|
149
|
+
项目内自己安装和使用 `react-router-dom` , 与自控式路由唯一的区别是, 设置 `router: false` 后 plugin-garfish 无法获得 `useLocation` `useHref` 等 hook 来辅助计算 basename 和主子应用路由同步
|
150
|
+
|
151
|
+
import { Tab, Tabs } from 'rspress/theme';
|
152
|
+
|
153
|
+
<Tabs>
|
154
|
+
<Tab label="react-router-dom@6">
|
155
|
+
```tsx
|
156
|
+
import { useLocation, useHref } from 'react-router-dom';
|
157
|
+
const App = () => {
|
158
|
+
const basename = useHref('/table');
|
159
|
+
const { Table } = useModuleApps();
|
160
|
+
return <Table useLocation={useLocation} basename={basename} />;
|
161
|
+
};
|
162
|
+
```
|
163
|
+
</Tab>
|
164
|
+
<Tab label="react-router-dom@5">
|
165
|
+
```tsx
|
166
|
+
import { useLocation, useHistory } from 'react-router-dom';
|
167
|
+
const App = () => {
|
168
|
+
const history = useHistory();
|
169
|
+
const basename = history.createHref({ pathname: '/table' });
|
170
|
+
const { Table } = useModuleApps();
|
171
|
+
return <Table useLocation={useLocation} basename={basename} />;
|
172
|
+
};
|
173
|
+
```
|
174
|
+
</Tab>
|
175
|
+
</Tabs>
|
176
|
+
|
148
177
|
### 创建约定式路由子应用
|
149
178
|
|
150
179
|
通过命令行工具初始化项目:
|
package/package.json
CHANGED
@@ -15,17 +15,17 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.47.0",
|
19
19
|
"publishConfig": {
|
20
20
|
"registry": "https://registry.npmjs.org/",
|
21
21
|
"access": "public",
|
22
22
|
"provenance": true
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@modern-js/sandpack-react": "2.
|
25
|
+
"@modern-js/sandpack-react": "2.47.0"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
|
-
"@modern-js/builder-doc": "^2.
|
28
|
+
"@modern-js/builder-doc": "^2.47.0"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"classnames": "^2",
|
@@ -35,12 +35,12 @@
|
|
35
35
|
"ts-node": "^10.9.1",
|
36
36
|
"typescript": "^5",
|
37
37
|
"fs-extra": "^10",
|
38
|
-
"rspress": "1.
|
39
|
-
"@rspress/shared": "1.
|
38
|
+
"rspress": "1.11.2",
|
39
|
+
"@rspress/shared": "1.11.2",
|
40
40
|
"@types/node": "^16",
|
41
41
|
"@types/fs-extra": "9.0.13",
|
42
|
-
"@modern-js/doc
|
43
|
-
"@modern-js/
|
42
|
+
"@modern-js/builder-doc": "2.47.0",
|
43
|
+
"@modern-js/doc-plugin-auto-sidebar": "2.47.0"
|
44
44
|
},
|
45
45
|
"scripts": {
|
46
46
|
"dev": "rspress dev",
|