@modern-js/main-doc 2.68.20 → 2.69.1

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.
@@ -28,7 +28,7 @@ type BuildCacheConfig =
28
28
 
29
29
  Controls the caching behavior during the build process.
30
30
 
31
- When you are using webpack as build tool, Modern.js will enable build cache by default to improve the compile speed. You can disable the build cache by setting it to `false`:
31
+ Modern.js will enable build cache by default to improve the compile speed. You can disable the build cache by setting it to `false`:
32
32
 
33
33
  ```js
34
34
  export default {
@@ -38,7 +38,9 @@ export default {
38
38
  };
39
39
  ```
40
40
 
41
- It should be noted that, Rspack's persistent cache is [experimental](https://rspack.rs/config/experiments#experimentscache), which may change in future versions, and this feature needs to be turned on manually.
41
+ ::: warning
42
+ Starting from `v2.69.0`, Modern.js using rspack as build tool will enable buildCache by default; previous versions required manual configuration to enable it.
43
+ :::
42
44
 
43
45
  import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
44
46
 
@@ -28,7 +28,7 @@ type BuildCacheConfig =
28
28
 
29
29
  控制 Modern.js 在构建过程中的缓存行为。
30
30
 
31
- 在使用 webpack 构建时,Modern.js 默认会开启构建缓存来提升二次构建的速度。如果不希望缓存,你可以将 `buildCache` 置为 `false` 将其禁用掉:
31
+ 在构建时,Modern.js 默认会开启构建缓存来提升二次构建的速度。如果不希望缓存,你可以将 `buildCache` 置为 `false` 将其禁用掉:
32
32
 
33
33
  ```js
34
34
  export default {
@@ -38,7 +38,9 @@ export default {
38
38
  };
39
39
  ```
40
40
 
41
- 需要注意的是,Rspack 的持久化缓存处于[实验性阶段](https://rspack.rs/zh/config/experiments#experimentscache),可能会在未来的版本中发生变化,该功能需要手动开启。
41
+ ::: warning
42
+ 从 `v2.69.0` 版本开始,Modern.js rspack 构建将默认开启 buildCache,之前版本需要手动配置开启。
43
+ :::
42
44
 
43
45
  import RsbuildConfig from '@site-docs/components/rsbuild-config-tooltip';
44
46
 
package/package.json CHANGED
@@ -15,14 +15,14 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.68.20",
18
+ "version": "2.69.1",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public"
22
22
  },
23
23
  "dependencies": {
24
24
  "mermaid": "^11.4.1",
25
- "@modern-js/sandpack-react": "2.68.20"
25
+ "@modern-js/sandpack-react": "2.69.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@rsbuild/plugin-sass": "1.4.0",