@modern-js/main-doc 2.68.11 → 2.68.12

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.
@@ -27,6 +27,10 @@ Lazy compilation only takes effect in the development.
27
27
 
28
28
  ## Rspack
29
29
 
30
+ In Rsbuild, Lazy Compilation is enabled by default. But in Modern.js, some features of Modern.js may conflict with Lazy Compilation, so we disabled it by default.
31
+
32
+ If your project uses SSR or [Prefetch Link](/guides/basic-features/routes.html#prefetching), we recommended you to disable Lazy Compilation.
33
+
30
34
  import RsbuildLink from '@site/src/components/RsbuildLink';
31
35
 
32
36
  :::info
@@ -27,6 +27,10 @@ type LazyCompilationOptions =
27
27
 
28
28
  ## Rspack
29
29
 
30
+ 在 Rsbuild 中,Lazy Compilation 默认是开启的。但在 Modern.js 中,部分功能特性存在冲突,因此默认是关闭的。
31
+
32
+ 如果项目中使用 SSR 或是[预加载路由](/guides/basic-features/routes.html#预加载)时,请不要开启 Lazy Compilation。
33
+
30
34
  import RsbuildLink from '@site/src/components/RsbuildLink';
31
35
 
32
36
  :::info
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.68.11",
18
+ "version": "2.68.12",
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.11"
25
+ "@modern-js/sandpack-react": "2.68.12"
26
26
  },
27
27
  "devDependencies": {
28
- "@rsbuild/plugin-sass": "1.3.5",
28
+ "@rsbuild/plugin-sass": "1.4.0",
29
29
  "@shikijs/transformers": "^3.4.2",
30
30
  "@rspress/shared": "2.0.0-beta.16",
31
31
  "@rspress/plugin-llms": "2.0.0-beta.16",