@modern-js/main-doc 0.0.0-nightly-20230913160551 → 0.0.0-nightly-20230915160614

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.
@@ -15,8 +15,8 @@ Modern.js Builder is the build tool of Modern.js, please read [Builder](/guides/
15
15
 
16
16
  This option **is used to configure the Modern.js Builder plugins**. If you need to configure other types of plugins, please select the corresponding configs:
17
17
 
18
- - Use [plugins](/configure/app/builder-plugins) to configure Modern.js framework plugins.
19
- - Use [tools.webpack](/configure/app/tools/webpack) or [tools.webpackChain](/configure/app/tools/webpack-chain) to configure webpack plugins.
18
+ - Use [plugins](/configure/app/plugins) to configure Modern.js framework plugins.
19
+ - Use [tools.bundlerChain](/configure/app/tools/bundler-chain) to configure Rspack or webpack plugins.
20
20
  - Use [tools.babel](/configure/app/tools/babel) to configure Babel plugins.
21
21
 
22
22
  ## When to use
@@ -15,10 +15,9 @@ Refer to [How to Develop Plugins](/guides/topic-detail/framework-plugin/implemen
15
15
 
16
16
  This option is used to configure framework plugins. If you need to configure other types of plugins, please choose the corresponding configuration method:
17
17
 
18
- - To configure Modern.js Builder plugins, use the [builderPlugins](/configure/app/builder-plugins) option.
19
- - To configure webpack plugins, use the [tools.webpack](/configure/app/tools/webpack)、[tools.webpackChain](/configure/app/tools/webpack-chain) or [tools.bundlerChain](/configure/app/tools/bundler-chain) options.
20
- - To configure Rspack plugins, use the [tools.rspack](/configure/app/tools/rspack) or [tools.bundlerChain](/configure/app/tools/bundler-chain) options.
21
- - To configure Babel plugins, use the [tools.babel](/configure/app/tools/babel) option.
18
+ - Use [builderPlugins](/configure/app/builder-plugins) to configure Modern.js Builder plugins.
19
+ - Use [tools.bundlerChain](/configure/app/tools/bundler-chain) to configure Rspack or webpack plugins.
20
+ - Use [tools.babel](/configure/app/tools/babel) to configure Babel plugins.
22
21
 
23
22
  ## Plugin types
24
23
 
@@ -49,6 +49,6 @@ import('./bootstrap.jsx');
49
49
  At this point, you can consume any remote module in the current page.
50
50
 
51
51
  :::info
52
- Modern.js does not have webpack's ModuleFederationPlugin plugin built in. Please configure the ModuleFederationPlugin yourself via [tools.webpackChain](/configure/app/tools/webpack-chain).
52
+ Modern.js does not have ModuleFederationPlugin plugin built in. Please configure the ModuleFederationPlugin yourself via [tools.bundlerChain](/configure/app/tools/bundler-chain).
53
53
 
54
54
  :::
@@ -18,7 +18,7 @@ Modern.js Builder 是 Modern.js 底层的构建工具,请阅读 [构建能力]
18
18
  该选项**用于配置 Modern.js Builder 构建插件**,如果你需要配置其他类型的插件,请选择对应的配置方式:
19
19
 
20
20
  - 配置 Modern.js 框架插件,请使用 [plugins](/configure/app/plugins) 配置项。
21
- - 配置 webpack 插件,请使用 [tools.webpack](/configure/app/tools/webpack) [tools.webpackChain](/configure/app/tools/webpack-chain) 配置项。
21
+ - 配置 Rspack webpack 插件,请使用 [tools.bundlerChain](/configure/app/tools/bundler-chain) 配置项。
22
22
  - 配置 Babel 插件,请使用 [tools.babel](/configure/app/tools/babel) 配置项。
23
23
 
24
24
  ## 何时使用
@@ -16,8 +16,7 @@ sidebar_position: 9
16
16
  该选项**用于配置框架插件**,如果你需要配置其他类型的插件,请选择对应的配置方式:
17
17
 
18
18
  - 配置 Modern.js Builder 插件,请使用 [builderPlugins](/configure/app/builder-plugins) 配置项。
19
- - 配置 webpack 插件,请使用 [tools.webpack](/configure/app/tools/webpack)、[tools.webpackChain](/configure/app/tools/webpack-chain) [tools.bundlerChain](/configure/app/tools/bundler-chain) 配置项。
20
- - 配置 Rspack 插件,请使用 [tools.rspack](/configure/app/tools/rspack) 或 [tools.bundlerChain](/configure/app/tools/bundler-chain) 配置项。
19
+ - 配置 Rspack webpack 插件,请使用 [tools.bundlerChain](/configure/app/tools/bundler-chain) 配置项。
21
20
  - 配置 Babel 插件,请使用 [tools.babel](/configure/app/tools/babel) 配置项。
22
21
 
23
22
  ## 插件类型
@@ -49,6 +49,6 @@ import('./bootstrap.jsx');
49
49
  此时,就可以在当前页面中消费任意的远程模块了。
50
50
 
51
51
  :::info
52
- Modern.js 未对 webpack 的 ModuleFederationPlugin 进行封装,请通过 [tools.webpackChain](/configure/app/tools/webpack-chain) 自行配置 ModuleFederationPlugin。
52
+ Modern.js 未对 ModuleFederationPlugin 进行封装,请通过 [tools.bundlerChain](/configure/app/tools/bundler-chain) 自行配置 ModuleFederationPlugin。
53
53
 
54
54
  :::
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20230913160551",
18
+ "version": "0.0.0-nightly-20230915160614",
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-20230913160551"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20230915160614"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "0.0.0-nightly-20230913160551"
28
+ "@modern-js/builder-doc": "0.0.0-nightly-20230915160614"
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": "0.0.10",
39
- "@rspress/shared": "0.0.6",
38
+ "rspress": "0.0.13",
39
+ "@rspress/shared": "0.0.13",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "^9",
42
- "@modern-js/builder-doc": "0.0.0-nightly-20230913160551",
43
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20230913160551"
42
+ "@modern-js/builder-doc": "0.0.0-nightly-20230915160614",
43
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20230915160614"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",