@modern-js/main-doc 0.0.0-nightly-20240326170658 → 0.0.0-nightly-20240328170733

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.
@@ -16,12 +16,14 @@ Rsbuild is the build tool of Modern.js. You can modify the default build behavio
16
16
 
17
17
  You can register the Rsbuild plugin through the `builderPlugins` option in `modern.config.ts`, see [builderPlugins](/configure/app/builder-plugins) for details.
18
18
 
19
- ## Official Plugins
20
-
21
19
  :::tip
22
- Most plugins in Rsbuild have been built into Modern.js. For example, when you need to inject the Polyfill of the Node module, you can directly use the [output.disableNodePolyfill](/configure/app/output/disable-node-polyfill.html) configuration.
20
+ Modern.js has upgraded the build tool to [Rsbuild](https://rsbuild.dev/) starting from `MAJOR_VERSION.46.0`.
21
+
22
+ If your current version is lower than MAJOR_VERSION.46.0, you can upgrade by executing `npx modern upgrade`.
23
23
  :::
24
24
 
25
+ ## Official Plugins
26
+
25
27
  ### Builtin Plugins
26
28
 
27
29
  Here are the official Rsbuild plugins built into Modern.js:
@@ -16,15 +16,17 @@ Rsbuild 是 Modern.js 底层的构建工具,可通过添加 Rsbuild 插件修
16
16
 
17
17
  你可以在 `modern.config.ts` 中通过 `builderPlugins` 选项来注册 Rsbuild 插件,详见 [builderPlugins 构建插件](/configure/app/builder-plugins.html)。
18
18
 
19
- ## 官方插件
20
-
21
19
  :::tip
22
- Rsbuild 中大部分插件已内置在 Modern.js 中,如:需要注入 Node 模块的 Polyfill 时,可直接使用 [output.disableNodePolyfill](/configure/app/output/disable-node-polyfill.html) 配置项。
20
+ Modern.js `MAJOR_VERSION.46.0` 起开始将底层的构建工具升级为 [Rsbuild](https://rsbuild.dev/)
21
+
22
+ 如果你当前版本低于 MAJOR_VERSION.46.0, 可通过执行 `npx modern upgrade` 进行升级。
23
23
  :::
24
24
 
25
+ ## 官方插件
26
+
25
27
  ### 内置插件
26
28
 
27
- 以下是已在 Modern.js 中内置的 Rsbuild 官方插件:
29
+ 以下是已在 Modern.js 中内置的 Rsbuild 官方插件,无需安装,即可启用:
28
30
 
29
31
  | 插件 | 介绍 | Modern.js 链接 |
30
32
  | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240326170658",
18
+ "version": "0.0.0-nightly-20240328170733",
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": "0.0.0-nightly-20240326170658"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20240328170733"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "0.0.0-nightly-20240326170658"
28
+ "@modern-js/builder-doc": "0.0.0-nightly-20240328170733"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.16.0",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "9.0.13",
42
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240326170658",
43
- "@modern-js/builder-doc": "0.0.0-nightly-20240326170658"
42
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240328170733",
43
+ "@modern-js/builder-doc": "0.0.0-nightly-20240328170733"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",