@modern-js/main-doc 0.0.0-nightly-20231204170637 → 0.0.0-nightly-20231206170639

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.
@@ -1,10 +1,20 @@
1
1
  ---
2
- sidebar_label: enableInlineRouteManifests
2
+ sidebar_label: disableInlineRouteManifests
3
3
  ---
4
4
 
5
- # output.enableInlineRouteManifests
5
+ # output.disableInlineRouteManifests
6
6
 
7
7
  - **Type:** `boolean`
8
- - **Default:** `true`
8
+ - **Default:** `false`
9
9
 
10
- When using convention-based routing, the framework injects routing information into the client for optimization purposes. By default, routing information is injected into the html, but when this is configured to `false`, routing information is injected into a separate JS file.
10
+ When using convention-based routing, the framework injects routing information into the client for optimization purposes. By default, routing information is injected into the html, but when this is configured to `true`, routing information is injected into a separate JS file.
11
+
12
+ Example:
13
+
14
+ ```ts
15
+ export default {
16
+ output: {
17
+ disableInlineRouteManifests: true,
18
+ },
19
+ };
20
+ ```
@@ -83,7 +83,7 @@ For example, if you are using pnpm, you can update the Rspack version with `over
83
83
  "pnpm": {
84
84
  "overrides": {
85
85
  "@rspack/core": "nightly",
86
- "@rspack/dev-client": "nightly",
86
+ "@rspack/plugin-react-refresh": "nightly",
87
87
  "@rspack/plugin-html": "nightly"
88
88
  }
89
89
  }
@@ -1,21 +1,21 @@
1
1
  ---
2
- sidebar_label: enableInlineRouteManifests
2
+ sidebar_label: disableInlineRouteManifests
3
3
  ---
4
4
 
5
- # output.enableInlineRouteManifests
5
+ # output.disableInlineRouteManifests
6
6
 
7
7
  - **类型:** `boolean`
8
- - **默认值:** `true`
8
+ - **默认值:** `false`
9
9
 
10
10
  当使用约定式路由时,框架为了做一些优化,会向客户端中注入路由信息,默认情况下路由信息会注入到 html 中,
11
- 当该配置为 `false` 时,路由信息会注入到一个单独的 JS 文件中。
11
+ 当该配置为 `true` 时,路由信息会注入到一个单独的 JS 文件中。
12
12
 
13
13
  Example:
14
14
 
15
15
  ```ts
16
16
  export default {
17
17
  output: {
18
- enableInlineRouteManifests: false,
18
+ disableInlineRouteManifests: true,
19
19
  },
20
- }
20
+ };
21
21
  ```
@@ -83,7 +83,7 @@ import RspackPrecautions from '@modern-js/builder-doc/docs/zh/shared/rspackPreca
83
83
  "pnpm": {
84
84
  "overrides": {
85
85
  "@rspack/core": "nightly",
86
- "@rspack/dev-client": "nightly",
86
+ "@rspack/plugin-react-refresh": "nightly",
87
87
  "@rspack/plugin-html": "nightly"
88
88
  }
89
89
  }
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20231204170637",
18
+ "version": "0.0.0-nightly-20231206170639",
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-20231204170637"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20231206170639"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "0.0.0-nightly-20231204170637"
28
+ "@modern-js/builder-doc": "0.0.0-nightly-20231206170639"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.7.4",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "9.0.13",
42
- "@modern-js/builder-doc": "0.0.0-nightly-20231204170637",
43
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20231204170637"
42
+ "@modern-js/builder-doc": "0.0.0-nightly-20231206170639",
43
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20231206170639"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",