@modern-js/main-doc 0.0.0-next-1685470101749 → 0.0.0-next-1685518456147

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @modern-js/main-doc
2
2
 
3
- ## 0.0.0-next-1685470101749
3
+ ## 0.0.0-next-1685518456147
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -16,7 +16,7 @@
16
16
 
17
17
  - Updated dependencies [850cde667]
18
18
  - Updated dependencies [e7a5f9443]
19
- - @modern-js/builder-doc@0.0.0-next-1685470101749
19
+ - @modern-js/builder-doc@0.0.0-next-1685518456147
20
20
 
21
21
  ## 2.21.1
22
22
 
@@ -30,7 +30,7 @@ When using Rspack as the bundler, the following Features are temporarily unavail
30
30
 
31
31
  :::
32
32
 
33
- ## Migrating from webpack to Rspack
33
+ ## Enable Rspack build
34
34
 
35
35
  You can enable Rspack build by running `pnpm run new`:
36
36
 
@@ -54,9 +54,9 @@ import appTools, { defineConfig } from '@modern-js/app-tools';
54
54
  });
55
55
  ```
56
56
 
57
- :::tip
58
- When migrating from webpack to Rspack, there may have some differences in build and configuration capabilities. For more details, please refer to [Configuration Differences](https://modernjs.dev/builder/en/guide/advanced/rspack-start.html#migrating-from-webpack-to-rspack).
59
- :::
57
+ ## Migrating configuration
58
+
59
+ After enabling Rspack building capability, further configuration migration is needed by referring to the [Configuration Differences](https://modernjs.dev/builder/en/guide/advanced/rspack-start.html#migrating-from-webpack-to-rspack).
60
60
 
61
61
  ## The relationship between Rspack and Modern.js versions
62
62
 
@@ -31,7 +31,7 @@ import InitRspackApp from '@site-docs/components/init-rspack-app';
31
31
 
32
32
  :::
33
33
 
34
- ## webpack 迁移至 Rspack
34
+ ## 开启 Rspack 构建
35
35
 
36
36
  在一个已有的 Modern.js 项目中,你可以通过执行 `pnpm run new` 来启用 Rspack 构建:
37
37
 
@@ -55,9 +55,9 @@ import appTools, { defineConfig } from '@modern-js/app-tools';
55
55
  });
56
56
  ```
57
57
 
58
- :::tip
59
- 从 webpack 迁移至 Rspack 时,存在一些构建能力和配置上的差异,详情可参考:[配置差异](https://modernjs.dev/builder/guide/advanced/rspack-start.html#从-webpack-迁移到-rspack)
60
- :::
58
+ ## 配置迁移
59
+
60
+ 开启 Rspack 构建能力后,还需要参考 [配置差异](https://modernjs.dev/builder/guide/advanced/rspack-start.html#从-webpack-迁移到-rspack) 进行进一步的配置迁移。
61
61
 
62
62
  ## Rspack 和 Modern.js 的版本关系
63
63
 
package/package.json CHANGED
@@ -15,13 +15,13 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1685470101749",
18
+ "version": "0.0.0-next-1685518456147",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public"
22
22
  },
23
23
  "peerDependencies": {
24
- "@modern-js/builder-doc": "0.0.0-next-1685470101749"
24
+ "@modern-js/builder-doc": "0.0.0-next-1685518456147"
25
25
  },
26
26
  "devDependencies": {
27
27
  "classnames": "^2",
@@ -33,9 +33,9 @@
33
33
  "fs-extra": "^10",
34
34
  "@types/node": "^16",
35
35
  "@types/fs-extra": "^9",
36
- "@modern-js/builder-doc": "0.0.0-next-1685470101749",
37
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1685470101749",
38
- "@modern-js/doc-tools": "0.0.0-next-1685470101749"
36
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1685518456147",
37
+ "@modern-js/doc-tools": "0.0.0-next-1685518456147",
38
+ "@modern-js/builder-doc": "0.0.0-next-1685518456147"
39
39
  },
40
40
  "scripts": {
41
41
  "dev": "modern dev",