@modern-js/main-doc 2.68.20 → 2.69.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.
|
@@ -28,7 +28,7 @@ type BuildCacheConfig =
|
|
|
28
28
|
|
|
29
29
|
Controls the caching behavior during the build process.
|
|
30
30
|
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
18
|
+
"version": "2.69.0",
|
|
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.
|
|
25
|
+
"@modern-js/sandpack-react": "2.69.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@rsbuild/plugin-sass": "1.4.0",
|