@modern-js/main-doc 2.4.0 → 2.6.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.
Files changed (315) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/LICENSE +0 -123
  3. package/README.md +26 -0
  4. package/en/apis/app/commands.mdx +297 -0
  5. package/en/apis/app/hooks/_category_.json +2 -5
  6. package/en/apis/app/hooks/api/framework/lambda.mdx +1 -1
  7. package/en/apis/app/hooks/api/functions/api.mdx +1 -1
  8. package/en/apis/app/hooks/server/index_.mdx +2 -1
  9. package/en/apis/app/hooks/src/pages.mdx +7 -7
  10. package/en/apis/app/hooks/src/routes.mdx +3 -3
  11. package/en/apis/app/runtime/_category_.json +1 -5
  12. package/en/apis/app/runtime/app/define-config.mdx +2 -2
  13. package/en/apis/app/runtime/core/bootstrap.mdx +1 -1
  14. package/en/apis/app/runtime/core/create-app.mdx +2 -2
  15. package/en/apis/app/runtime/core/use-loader.mdx +4 -4
  16. package/en/apis/app/runtime/core/use-module-apps.mdx +2 -2
  17. package/en/apis/app/runtime/model/Provider.mdx +2 -2
  18. package/en/apis/app/runtime/model/auto-actions.mdx +2 -2
  19. package/en/apis/app/runtime/model/connect.mdx +5 -5
  20. package/en/apis/app/runtime/model/create-app.mdx +9 -9
  21. package/en/apis/app/runtime/model/create-store.mdx +3 -3
  22. package/en/apis/app/runtime/model/handle-effect.mdx +2 -2
  23. package/en/apis/app/runtime/model/model_.mdx +1 -1
  24. package/en/apis/app/runtime/model/use-local-model.mdx +1 -1
  25. package/en/apis/app/runtime/model/use-model.mdx +1 -1
  26. package/en/apis/app/runtime/model/use-static-model.mdx +4 -4
  27. package/en/apis/app/runtime/model/use-store.mdx +1 -1
  28. package/en/apis/app/runtime/router/router.mdx +1 -1
  29. package/en/apis/app/runtime/ssr/pre-render.mdx +1 -1
  30. package/en/apis/app/runtime/testing/render.mdx +1 -1
  31. package/en/apis/app/runtime/testing/renderApp.mdx +1 -1
  32. package/en/apis/app/runtime/utility/css-in-js.mdx +1 -1
  33. package/en/apis/app/runtime/utility/loadable.mdx +1 -1
  34. package/en/apis/app/runtime/web-server/hook.mdx +5 -5
  35. package/en/apis/app/runtime/web-server/middleware.mdx +6 -6
  36. package/en/components/global-proxy-config.mdx +3 -3
  37. package/en/components/init-app.mdx +5 -5
  38. package/en/configure/app/bff/_category_.json +4 -0
  39. package/en/configure/app/bff/prefix.mdx +2 -3
  40. package/en/configure/app/bff/proxy.mdx +1 -1
  41. package/en/configure/app/builder-plugins.mdx +3 -3
  42. package/en/configure/app/deploy/_category_.json +4 -0
  43. package/en/configure/app/dev/_category_.json +4 -0
  44. package/en/configure/app/dev/asset-prefix.mdx +1 -1
  45. package/en/configure/app/dev/before-start-url.mdx +13 -0
  46. package/en/configure/app/dev/hmr.mdx +1 -1
  47. package/en/configure/app/dev/host.mdx +13 -0
  48. package/en/configure/app/dev/https.mdx +1 -1
  49. package/en/configure/app/dev/port.mdx +1 -1
  50. package/en/configure/app/dev/progress-bar.mdx +1 -1
  51. package/en/configure/app/dev/start-url.mdx +1 -1
  52. package/en/configure/app/experiments/_category_.json +4 -0
  53. package/en/configure/app/experiments/lazy-compilation.mdx +1 -1
  54. package/en/configure/app/html/_category_.json +4 -0
  55. package/en/configure/app/html/app-icon.mdx +1 -1
  56. package/en/configure/app/html/crossorigin.mdx +1 -1
  57. package/en/configure/app/html/disable-html-folder.mdx +1 -1
  58. package/en/configure/app/html/favicon-by-entries.mdx +1 -1
  59. package/en/configure/app/html/favicon.mdx +1 -1
  60. package/en/configure/app/html/inject-by-entries.mdx +1 -1
  61. package/en/configure/app/html/inject.mdx +1 -1
  62. package/en/configure/app/html/meta-by-entries.mdx +1 -1
  63. package/en/configure/app/html/meta.mdx +1 -1
  64. package/en/configure/app/html/mount-id.mdx +1 -1
  65. package/en/configure/app/html/tags-by-entries.mdx +1 -1
  66. package/en/configure/app/html/tags.mdx +1 -1
  67. package/en/configure/app/html/template-by-entries.mdx +1 -1
  68. package/en/configure/app/html/template-parameters-by-entries.mdx +1 -1
  69. package/en/configure/app/html/template-parameters.mdx +1 -1
  70. package/en/configure/app/html/template.mdx +1 -1
  71. package/en/configure/app/html/title-by-entries.mdx +1 -1
  72. package/en/configure/app/html/title.mdx +1 -1
  73. package/en/configure/app/output/_category_.json +4 -0
  74. package/en/configure/app/output/asset-prefix.mdx +1 -1
  75. package/en/configure/app/output/assets-retry.mdx +1 -1
  76. package/en/configure/app/output/charset.mdx +1 -1
  77. package/en/configure/app/output/clean-dist-path.mdx +1 -1
  78. package/en/configure/app/output/convert-to-rem.mdx +1 -1
  79. package/en/configure/app/output/copy.mdx +1 -1
  80. package/en/configure/app/output/css-module-local-ident-name.mdx +1 -1
  81. package/en/configure/app/output/data-uri-limit.mdx +1 -1
  82. package/en/configure/app/output/disable-css-extract.mdx +1 -1
  83. package/en/configure/app/output/disable-css-module-extension.mdx +1 -1
  84. package/en/configure/app/output/disable-filename-hash.mdx +1 -1
  85. package/en/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
  86. package/en/configure/app/output/disable-minimize.mdx +1 -1
  87. package/en/configure/app/output/disable-source-map.mdx +1 -1
  88. package/en/configure/app/output/disable-ts-checker.mdx +1 -1
  89. package/en/configure/app/output/dist-path.mdx +1 -1
  90. package/en/configure/app/output/enable-asset-fallback.mdx +1 -1
  91. package/en/configure/app/output/enable-asset-manifest.mdx +1 -1
  92. package/en/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
  93. package/en/configure/app/output/enable-inline-scripts.mdx +1 -1
  94. package/en/configure/app/output/enable-inline-styles.mdx +1 -1
  95. package/en/configure/app/output/enable-latest-decorators.mdx +1 -1
  96. package/en/configure/app/output/externals.mdx +1 -1
  97. package/en/configure/app/output/filename.mdx +1 -1
  98. package/en/configure/app/output/legal-comments.mdx +1 -1
  99. package/en/configure/app/output/override-browserslist.mdx +1 -1
  100. package/en/configure/app/output/polyfill.mdx +1 -1
  101. package/en/configure/app/output/ssg.mdx +5 -5
  102. package/en/configure/app/output/svg-default-export.mdx +1 -1
  103. package/en/configure/app/performance/_category_.json +4 -0
  104. package/en/configure/app/performance/build-cache.mdx +1 -1
  105. package/en/configure/app/performance/bundle-analyze.mdx +1 -1
  106. package/en/configure/app/performance/chunk-split.mdx +1 -1
  107. package/en/configure/app/performance/print-file-size.mdx +1 -1
  108. package/en/configure/app/performance/profile.mdx +1 -1
  109. package/en/configure/app/performance/remove-console.mdx +1 -1
  110. package/en/configure/app/performance/remove-moment-locale.mdx +1 -1
  111. package/en/configure/app/plugins.mdx +1 -1
  112. package/en/configure/app/runtime/_category_.json +4 -0
  113. package/en/configure/app/runtime/intro.mdx +2 -2
  114. package/en/configure/app/runtime/master-app.mdx +1 -1
  115. package/en/configure/app/security/_category_.json +4 -0
  116. package/en/configure/app/security/check-syntax.mdx +1 -1
  117. package/en/configure/app/security/sri.mdx +1 -1
  118. package/en/configure/app/server/_category_.json +4 -0
  119. package/en/configure/app/server/base-url.mdx +3 -3
  120. package/en/configure/app/server/enable-framework-ext.mdx +1 -1
  121. package/en/configure/app/server/ssr-by-entries.mdx +1 -1
  122. package/en/configure/app/source/_category_.json +4 -0
  123. package/en/configure/app/source/alias.mdx +1 -1
  124. package/en/configure/app/source/compile-js-data-uri.mdx +1 -1
  125. package/en/configure/app/source/define.mdx +1 -1
  126. package/en/configure/app/source/design-system.mdx +5 -5
  127. package/en/configure/app/source/entries-dir.mdx +1 -1
  128. package/en/configure/app/source/entries.mdx +3 -3
  129. package/en/configure/app/source/exclude.mdx +1 -1
  130. package/en/configure/app/source/global-vars.mdx +1 -1
  131. package/en/configure/app/source/include.mdx +1 -1
  132. package/en/configure/app/source/module-scopes.mdx +1 -1
  133. package/en/configure/app/source/pre-entry.mdx +1 -1
  134. package/en/configure/app/source/resolve-extension-prefix.mdx +1 -1
  135. package/en/configure/app/source/resolve-main-fields.mdx +1 -1
  136. package/en/configure/app/testing/_category_.json +4 -0
  137. package/en/configure/app/testing/transformer.mdx +1 -1
  138. package/en/configure/app/tools/_category_.json +4 -0
  139. package/en/configure/app/tools/autoprefixer.mdx +1 -1
  140. package/en/configure/app/tools/babel.mdx +1 -1
  141. package/en/configure/app/tools/css-extract.mdx +1 -1
  142. package/en/configure/app/tools/css-loader.mdx +1 -1
  143. package/en/configure/app/tools/dev-server.mdx +1 -1
  144. package/en/configure/app/tools/html-plugin.mdx +1 -1
  145. package/en/configure/app/tools/inspector.mdx +1 -1
  146. package/en/configure/app/tools/jest.mdx +1 -1
  147. package/en/configure/app/tools/less.mdx +1 -1
  148. package/en/configure/app/tools/minify-css.mdx +1 -1
  149. package/en/configure/app/tools/postcss.mdx +1 -1
  150. package/en/configure/app/tools/pug.mdx +1 -1
  151. package/en/configure/app/tools/rspack.mdx +13 -0
  152. package/en/configure/app/tools/sass.mdx +1 -1
  153. package/en/configure/app/tools/style-loader.mdx +1 -1
  154. package/en/configure/app/tools/styled-components.mdx +1 -1
  155. package/en/configure/app/tools/tailwindcss.mdx +1 -1
  156. package/en/configure/app/tools/terser.mdx +1 -1
  157. package/en/configure/app/tools/ts-checker.mdx +1 -1
  158. package/en/configure/app/tools/ts-loader.mdx +1 -1
  159. package/en/configure/app/tools/webpack-chain.mdx +1 -1
  160. package/en/configure/app/tools/webpack.mdx +1 -1
  161. package/en/configure/app/usage.mdx +1 -1
  162. package/en/guides/advanced-features/_category_.json +2 -2
  163. package/en/guides/advanced-features/bff/bff-proxy.mdx +1 -1
  164. package/en/guides/advanced-features/bff/frameworks.mdx +1 -1
  165. package/en/guides/advanced-features/bff/function.mdx +3 -3
  166. package/en/guides/advanced-features/code-split.mdx +2 -2
  167. package/en/guides/advanced-features/compatibility.mdx +2 -3
  168. package/en/guides/advanced-features/eslint.mdx +4 -4
  169. package/en/guides/advanced-features/low-level.mdx +1 -1
  170. package/en/guides/advanced-features/rspack-start.mdx +69 -0
  171. package/en/guides/advanced-features/ssg.mdx +12 -13
  172. package/en/guides/advanced-features/ssr.mdx +3 -3
  173. package/en/guides/advanced-features/testing.mdx +4 -5
  174. package/en/guides/advanced-features/web-server.mdx +0 -1
  175. package/en/guides/basic-features/alias.mdx +5 -5
  176. package/en/guides/basic-features/data-fetch.mdx +25 -12
  177. package/en/guides/basic-features/env-vars.mdx +1 -1
  178. package/en/guides/basic-features/html.mdx +11 -11
  179. package/en/guides/basic-features/mock.mdx +21 -1
  180. package/en/guides/basic-features/proxy.mdx +2 -2
  181. package/en/guides/basic-features/routes.mdx +29 -15
  182. package/en/guides/{basic-features → concept}/builder.mdx +2 -2
  183. package/en/guides/concept/entries.mdx +11 -11
  184. package/en/guides/css/_category_.json +5 -0
  185. package/en/guides/{basic-features/css → css}/less-sass.mdx +1 -1
  186. package/en/guides/get-started/introduction.mdx +34 -0
  187. package/en/guides/get-started/quick-start.mdx +4 -4
  188. package/en/guides/get-started/upgrade.mdx +2 -1
  189. package/en/guides/topic-detail/_category_.json +2 -2
  190. package/en/guides/topic-detail/framework-plugin/hook.mdx +1 -1
  191. package/en/guides/topic-detail/generator/plugin/api/hook/onForged.mdx +1 -1
  192. package/en/guides/topic-detail/generator/plugin/develop.mdx +1 -1
  193. package/en/guides/topic-detail/micro-frontend/c02-development.mdx +128 -61
  194. package/en/guides/topic-detail/micro-frontend/c03-main-app.mdx +73 -42
  195. package/en/guides/topic-detail/micro-frontend/c05-mixed-stack.mdx +1 -1
  196. package/en/guides/topic-detail/model/auto-actions.mdx +1 -1
  197. package/en/guides/topic-detail/model/define-model.mdx +1 -1
  198. package/en/guides/topic-detail/model/manage-effects.mdx +1 -1
  199. package/en/guides/topic-detail/model/model-communicate.mdx +1 -1
  200. package/en/guides/topic-detail/model/quick-start.mdx +2 -2
  201. package/en/guides/topic-detail/model/test-model.mdx +1 -1
  202. package/en/guides/topic-detail/model/use-model.mdx +3 -3
  203. package/en/guides/troubleshooting/_category_.json +2 -2
  204. package/en/guides/troubleshooting/cli.mdx +1 -1
  205. package/en/index.md +1 -1
  206. package/en/tutorials/first-app/_category_.json +1 -1
  207. package/en/tutorials/first-app/c01-start.mdx +0 -1
  208. package/en/tutorials/first-app/c03-css.mdx +1 -2
  209. package/en/tutorials/first-app/c06-model.mdx +1 -1
  210. package/en/tutorials/first-app/c07-container.mdx +18 -18
  211. package/en/tutorials/first-app/c08-entries.mdx +24 -25
  212. package/en/tutorials/foundations/introduction.mdx +17 -34
  213. package/package.json +3 -3
  214. package/scripts/config.ts +3 -1
  215. package/scripts/summary.en.json +1 -1
  216. package/scripts/summary.zh.json +1 -1
  217. package/zh/apis/app/commands.mdx +299 -0
  218. package/zh/apis/app/hooks/_category_.json +2 -5
  219. package/zh/apis/app/hooks/src/pages.mdx +1 -1
  220. package/zh/apis/app/hooks/src/routes.mdx +3 -3
  221. package/zh/apis/app/runtime/_category_.json +1 -5
  222. package/zh/apis/app/runtime/core/create-app.mdx +1 -1
  223. package/zh/apis/app/runtime/core/use-module-apps.mdx +81 -40
  224. package/zh/apis/app/runtime/model/Provider.mdx +2 -2
  225. package/zh/apis/app/runtime/model/create-app.mdx +7 -7
  226. package/zh/apis/app/runtime/model/create-store.mdx +2 -2
  227. package/zh/apis/app/runtime/model/use-local-model.mdx +1 -1
  228. package/zh/apis/app/runtime/model/use-static-model.mdx +1 -1
  229. package/zh/apis/app/runtime/model/use-store.mdx +1 -1
  230. package/zh/apis/app/runtime/testing/renderApp.mdx +1 -1
  231. package/zh/components/init-app.mdx +5 -5
  232. package/zh/components/micro-runtime-config.mdx +6 -6
  233. package/zh/components/release-note.mdx +1 -1
  234. package/zh/configure/app/bff/prefix.mdx +1 -1
  235. package/zh/configure/app/bff/proxy.mdx +1 -1
  236. package/zh/configure/app/builder-plugins.mdx +3 -3
  237. package/zh/configure/app/dev/before-start-url.mdx +13 -0
  238. package/zh/configure/app/dev/host.mdx +13 -0
  239. package/zh/configure/app/output/ssg.mdx +3 -3
  240. package/zh/configure/app/plugins.mdx +1 -1
  241. package/zh/configure/app/server/ssr-by-entries.mdx +1 -1
  242. package/zh/configure/app/source/entries-dir.mdx +1 -1
  243. package/zh/configure/app/tools/rspack.mdx +13 -0
  244. package/zh/configure/app/usage.mdx +1 -1
  245. package/zh/guides/advanced-features/_category_.json +2 -6
  246. package/zh/guides/advanced-features/compatibility.mdx +0 -1
  247. package/zh/guides/advanced-features/rspack-start.mdx +69 -0
  248. package/zh/guides/advanced-features/ssg.mdx +8 -9
  249. package/zh/guides/advanced-features/ssr.mdx +3 -2
  250. package/zh/guides/advanced-features/testing.mdx +0 -1
  251. package/zh/guides/advanced-features/web-server.mdx +0 -1
  252. package/zh/guides/basic-features/_category_.json +1 -5
  253. package/zh/guides/basic-features/alias.mdx +5 -5
  254. package/zh/guides/basic-features/data-fetch.mdx +39 -30
  255. package/zh/guides/basic-features/html.mdx +10 -9
  256. package/zh/guides/basic-features/mock.mdx +20 -0
  257. package/zh/guides/basic-features/routes.mdx +38 -17
  258. package/zh/guides/{basic-features → concept}/builder.mdx +4 -4
  259. package/zh/guides/concept/entries.mdx +11 -11
  260. package/zh/guides/css/_category_.json +5 -0
  261. package/zh/guides/{basic-features/css → css}/less-sass.mdx +1 -1
  262. package/zh/guides/{basic-features/css → css}/postcss.mdx +5 -4
  263. package/zh/guides/{basic-features/css → css}/tailwindcss.mdx +0 -1
  264. package/zh/guides/get-started/introduction.mdx +31 -0
  265. package/zh/guides/get-started/quick-start.mdx +4 -5
  266. package/zh/guides/get-started/upgrade.mdx +2 -1
  267. package/zh/guides/topic-detail/_category_.json +2 -2
  268. package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.mdx +1 -1
  269. package/zh/guides/topic-detail/micro-frontend/c02-development.mdx +25 -0
  270. package/zh/guides/topic-detail/micro-frontend/c03-main-app.mdx +16 -16
  271. package/zh/guides/topic-detail/model/model-communicate.mdx +1 -1
  272. package/zh/guides/troubleshooting/_category_.json +2 -2
  273. package/zh/index.md +1 -1
  274. package/zh/tutorials/first-app/_category_.json +1 -1
  275. package/zh/tutorials/first-app/c01-start.mdx +1 -2
  276. package/zh/tutorials/first-app/c03-css.mdx +1 -2
  277. package/zh/tutorials/first-app/c06-model.mdx +2 -2
  278. package/zh/tutorials/first-app/c07-container.mdx +18 -18
  279. package/zh/tutorials/first-app/c08-entries.mdx +25 -26
  280. package/zh/tutorials/foundations/introduction.mdx +14 -29
  281. package/en/apis/app/commands/_category_.json +0 -8
  282. package/en/apis/app/commands/build.mdx +0 -39
  283. package/en/apis/app/commands/dev.mdx +0 -61
  284. package/en/apis/app/commands/index.mdx +0 -7
  285. package/en/apis/app/commands/inspect.mdx +0 -61
  286. package/en/apis/app/commands/lint.mdx +0 -19
  287. package/en/apis/app/commands/new.mdx +0 -54
  288. package/en/apis/app/commands/serve.mdx +0 -27
  289. package/en/apis/app/commands/test.mdx +0 -35
  290. package/en/apis/app/commands/upgrade.mdx +0 -18
  291. package/en/apis/app/hooks/index.mdx +0 -7
  292. package/en/apis/app/runtime/index.mdx +0 -7
  293. package/en/guides/advanced-features/index.mdx +0 -7
  294. package/en/guides/basic-features/css/_category_.json +0 -4
  295. package/zh/apis/app/commands/_category_.json +0 -8
  296. package/zh/apis/app/commands/build.mdx +0 -39
  297. package/zh/apis/app/commands/dev.mdx +0 -61
  298. package/zh/apis/app/commands/index.mdx +0 -7
  299. package/zh/apis/app/commands/inspect.mdx +0 -61
  300. package/zh/apis/app/commands/lint.mdx +0 -19
  301. package/zh/apis/app/commands/new.mdx +0 -54
  302. package/zh/apis/app/commands/serve.mdx +0 -27
  303. package/zh/apis/app/commands/test.mdx +0 -35
  304. package/zh/apis/app/commands/upgrade.mdx +0 -18
  305. package/zh/apis/app/hooks/index.mdx +0 -7
  306. package/zh/apis/app/runtime/index.mdx +0 -7
  307. package/zh/guides/advanced-features/index.mdx +0 -7
  308. package/zh/guides/basic-features/css/_category_.json +0 -4
  309. package/zh/guides/basic-features/index.mdx +0 -7
  310. /package/en/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
  311. /package/en/guides/{basic-features/css → css}/css-modules.mdx +0 -0
  312. /package/en/guides/{basic-features/css → css}/postcss.mdx +0 -0
  313. /package/en/guides/{basic-features/css → css}/tailwindcss.mdx +0 -0
  314. /package/zh/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
  315. /package/zh/guides/{basic-features/css → css}/css-modules.mdx +0 -0
@@ -12,11 +12,11 @@ Uniformly set the server-level routing prefix (often used in the case of shared
12
12
  ```ts title="modern.config.ts"
13
13
  export default defineConfig({
14
14
  server: {
15
- // 所有生成的路由前面都会自动加上前缀 `/base`
16
- // 生成的服务端路由文件路径:dist/route.json
15
+ // All generated routes are automatically prefixed with `/base`
16
+ // Path to the generated server-side route file: dist/route.json
17
17
  baseUrl: '/base'
18
18
 
19
- // baseUrl
19
+ // Multiple baseUrl
20
20
  baseUrl: ['/base-new', '/base-old']
21
21
  }
22
22
  })
@@ -7,7 +7,7 @@ sidebar_label: enableFrameworkExt
7
7
  - **Type:** `boolean`
8
8
  - **Default:** `false`
9
9
 
10
- By default, with Custom Web Server](/docs/guides/advanced-features/web-server) enable, Middleware uses the syntax of the Modern.js itself.
10
+ By default, with [Custom Web Server](/guides/advanced-features/web-server) enabled, Middleware uses the syntax of the Modern.js itself.
11
11
 
12
12
  Enable `server.enableFrameworkExt` to use the syntax of framework extensions.
13
13
 
@@ -7,7 +7,7 @@ sidebar_label: ssrByEntries
7
7
  - **Type:** `Object`
8
8
  - **Default:** `undefined`
9
9
 
10
- Set the ssr option according to the entry. The attributes in the option are the same as [ssr](./ssr.md). The specified value will be replaced and merged with the content of the ssr attribute. For example:
10
+ Set the ssr option according to the entry. The attributes in the option are the same as [ssr](./ssr.mdx). The specified value will be replaced and merged with the content of the ssr attribute. For example:
11
11
 
12
12
  :::info
13
13
  The "entry name" defaults to the directory name. In a few cases, when the entry is customized by `source.entries`, the entry name `source.entries` the `key` of the object.
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "source",
3
+ "position": 1
4
+ }
@@ -5,7 +5,7 @@ sidebar_label: alias
5
5
  # source.alias
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.alias](https://modernjs.dev/builder/en/api/config-source.html#sourcealias)
8
+ This config is provided by Modern.js Builder, more detail can see [source.alias](https://modernjs.dev/builder/en/api/config-source.html#sourcealias).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/alias.md'
@@ -5,7 +5,7 @@ sidebar_label: compileJsDataURI
5
5
  # source.compileJsDataURI
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.compileJsDataURI](https://modernjs.dev/builder/en/api/config-source.html#sourcecompilejsdatauri)
8
+ This config is provided by Modern.js Builder, more detail can see [source.compileJsDataURI](https://modernjs.dev/builder/en/api/config-source.html#sourcecompilejsdatauri).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/compileJsDataURI.md'
@@ -5,7 +5,7 @@ sidebar_label: define
5
5
  # source.define
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.define](https://modernjs.dev/builder/en/api/config-source.html#sourcedefine)
8
+ This config is provided by Modern.js Builder, more detail can see [source.define](https://modernjs.dev/builder/en/api/config-source.html#sourcedefine).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/define.md'
@@ -5,7 +5,7 @@ sidebar_label: designSystem
5
5
  # designSystem
6
6
 
7
7
  - **Type:** `Object`
8
- - **Default:** See configuration details below
8
+ - **Default:** See configuration details below.
9
9
 
10
10
  :::caution Caution
11
11
  You need to enable the Tailwind CSS feature through `pnpm run new` first.
@@ -645,8 +645,8 @@ const designSystem = {
645
645
  };
646
646
  ```
647
647
 
648
- :::tip 提示
649
- More about:<a href="https://tailwindcss.com/docs/configuration#theme" target="_blank">TailwindCSS configuration</a>。
648
+ :::tip
649
+ More about:<a href="https://tailwindcss.com/docs/configuration#theme" target="_blank">TailwindCSS configuration</a>.
650
650
 
651
651
  :::
652
652
 
@@ -884,7 +884,7 @@ const designSystem = {
884
884
 
885
885
  By default, these colors are inherited by the `backgroundColor`, `textColor`, and `borderColor` core plugins.
886
886
 
887
- o learn more, see: [Customizing Colors](https://tailwindcss.com/docs/customizing-colors)
887
+ o learn more, see: [Customizing Colors](https://tailwindcss.com/docs/customizing-colors).
888
888
 
889
889
  #### Spacing
890
890
 
@@ -918,7 +918,7 @@ const designSystem = {
918
918
 
919
919
  By default, these values are inherited by the `padding`, `margin`, `negativeMargin`, `width`, and `height` core plugins.
920
920
 
921
- To learn more, see: [Customizing Spacing](https://tailwindcss.com/docs/customizing-spacing)
921
+ To learn more, see: [Customizing Spacing](https://tailwindcss.com/docs/customizing-spacing).
922
922
 
923
923
  #### Core plugins
924
924
 
@@ -24,7 +24,7 @@ export default defineConfig({
24
24
  └── src
25
25
  └── pages
26
26
  ├── a
27
-    └── App.jsx
27
+ └── App.jsx
28
28
  └── b
29
29
  └── App.jsx
30
30
  ```
@@ -7,7 +7,7 @@ sidebar_label: entries
7
7
  - **Type:** `Object = { [ entryName: string ]: string | Object }`
8
8
  - **Default:** Default entry object dynamically settled according to the current project directory structure.
9
9
 
10
- For most scenarios, Modern.js automatically generated entries according to the directory structure can meet most business requirements. For details, please refer to [Entries](/guides/concept/entries)
10
+ For most scenarios, Modern.js automatically generated entries according to the directory structure can meet most business requirements. For details, please refer to [Entries](/guides/concept/entries).
11
11
 
12
12
  If you need to customize the build entry, you can specify it with this option.
13
13
 
@@ -60,8 +60,8 @@ export default defineConfig({
60
60
 
61
61
  When the value is `Object`, the following properties can be configured:
62
62
 
63
- - `entry`:`string`,entry file path
64
- - `disableMount`:`boolean = false`,turn off Modern.js generate entry code
63
+ - `entry`:`string`,entry file path.
64
+ - `disableMount`:`boolean = false`,turn off Modern.js generate entry code.
65
65
 
66
66
  ```ts title="modern.config.ts"
67
67
  import { defineConfig } from '@modern-js/app-tools';
@@ -5,7 +5,7 @@ sidebar_label: exclude
5
5
  # source.exclude
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.exclude](https://modernjs.dev/builder/en/api/config-source.html#sourceexclude)
8
+ This config is provided by Modern.js Builder, more detail can see [source.exclude](https://modernjs.dev/builder/en/api/config-source.html#sourceexclude).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/exclude.md'
@@ -5,7 +5,7 @@ sidebar_label: globalVars
5
5
  # source.globalVars
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.globalVars](https://modernjs.dev/builder/en/api/config-source.html#sourceglobalvars)
8
+ This config is provided by Modern.js Builder, more detail can see [source.globalVars](https://modernjs.dev/builder/en/api/config-source.html#sourceglobalvars).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/globalVars.md'
@@ -5,7 +5,7 @@ sidebar_label: include
5
5
  # source.include
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.include](https://modernjs.dev/builder/en/api/config-source.html#sourceinclude)
8
+ This config is provided by Modern.js Builder, more detail can see [source.include](https://modernjs.dev/builder/en/api/config-source.html#sourceinclude).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/include.md'
@@ -5,7 +5,7 @@ sidebar_label: moduleScopes
5
5
  # source.moduleScopes
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.moduleScopes](https://modernjs.dev/builder/en/api/config-source.html#sourcemodulescopes)
8
+ This config is provided by Modern.js Builder, more detail can see [source.moduleScopes](https://modernjs.dev/builder/en/api/config-source.html#sourcemodulescopes).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/moduleScopes.md'
@@ -5,7 +5,7 @@ sidebar_label: preEntry
5
5
  # source.preEntry
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.preEntry](https://modernjs.dev/builder/en/api/config-source.html#sourcepreentry)
8
+ This config is provided by Modern.js Builder, more detail can see [source.preEntry](https://modernjs.dev/builder/en/api/config-source.html#sourcepreentry).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/preEntry.md'
@@ -5,7 +5,7 @@ sidebar_label: resolveExtensionPrefix
5
5
  # source.resolveExtensionPrefix
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.resolveExtensionPrefix](https://modernjs.dev/builder/en/api/config-source.html#sourceresolveextensionprefix)
8
+ This config is provided by Modern.js Builder, more detail can see [source.resolveExtensionPrefix](https://modernjs.dev/builder/en/api/config-source.html#sourceresolveextensionprefix).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/resolveExtensionPrefix.md'
@@ -5,7 +5,7 @@ sidebar_label: resolveMainFields
5
5
  # source.resolveMainFields
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [source.resolveMainFields](https://modernjs.dev/builder/en/api/config-source.html#sourceresolvemainfields)
8
+ This config is provided by Modern.js Builder, more detail can see [source.resolveMainFields](https://modernjs.dev/builder/en/api/config-source.html#sourceresolvemainfields).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/source/resolveMainFields.md'
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "testing",
3
+ "position": 8
4
+ }
@@ -9,7 +9,7 @@ sidebar_position: 1
9
9
  - **Default:** `babel-jest`
10
10
 
11
11
  :::caution Caution
12
- First you need to enable the "Unit Test" function using [new](/apis/app/commands/new) command.
12
+ First you need to enable the "Unit Test" function using [new](/apis/app/commands#modern-new) command.
13
13
 
14
14
  :::
15
15
 
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "tools",
3
+ "position": 12
4
+ }
@@ -5,7 +5,7 @@ sidebar_label: autoprefixer
5
5
  # tools.autoprefixer
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.autoprefixer](https://modernjs.dev/builder/en/api/config-tools.html#toolsautoprefixer)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.autoprefixer](https://modernjs.dev/builder/en/api/config-tools.html#toolsautoprefixer).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/autoprefixer.md'
@@ -5,7 +5,7 @@ sidebar_label: babel
5
5
  # tools.babel
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.babel](https://modernjs.dev/builder/en/api/config-tools.html#toolsbabel)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.babel](https://modernjs.dev/builder/en/api/config-tools.html#toolsbabel).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/babel.md'
@@ -5,7 +5,7 @@ sidebar_label: cssExtract
5
5
  # tools.cssExtract
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.cssExtract](https://modernjs.dev/builder/en/api/config-tools.html#toolscssextract)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.cssExtract](https://modernjs.dev/builder/en/api/config-tools.html#toolscssextract).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/cssExtract.md'
@@ -5,7 +5,7 @@ sidebar_label: cssLoader
5
5
  # tools.cssLoader
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.cssLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolscssloader)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.cssLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolscssloader).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/cssLoader.md'
@@ -5,7 +5,7 @@ sidebar_label: devServer
5
5
  # tools.devServer
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.devServer](https://modernjs.dev/builder/en/api/config-tools.html#toolsdevserver)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.devServer](https://modernjs.dev/builder/en/api/config-tools.html#toolsdevserver).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/devServer.md'
@@ -5,7 +5,7 @@ sidebar_label: htmlPlugin
5
5
  # tools.htmlPlugin
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.htmlPlugin](https://modernjs.dev/builder/en/api/config-tools.html#toolshtmlplugin)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.htmlPlugin](https://modernjs.dev/builder/en/api/config-tools.html#toolshtmlplugin).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/htmlPlugin.md'
@@ -5,7 +5,7 @@ sidebar_label: inspector
5
5
  # tools.inspector
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.inspector](https://modernjs.dev/builder/en/api/config-tools.html#toolsinspector)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.inspector](https://modernjs.dev/builder/en/api/config-tools.html#toolsinspector).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/inspector.md'
@@ -9,7 +9,7 @@ sidebar_label: jest
9
9
  - **Default:** `{}`
10
10
 
11
11
  :::caution Caution
12
- First you need to enable the "Unit Test" function using [new](/apis/app/commands/new) command.
12
+ First you need to enable the "Unit Test" function using [new](/apis/app/commands#modern-new) command.
13
13
 
14
14
  :::
15
15
 
@@ -5,7 +5,7 @@ sidebar_label: less
5
5
  # tools.less
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.less](https://modernjs.dev/builder/en/api/config-tools.html#toolsless)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.less](https://modernjs.dev/builder/en/api/config-tools.html#toolsless).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/less.md'
@@ -5,7 +5,7 @@ sidebar_label: minifyCss
5
5
  # tools.minifyCss
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.minifyCss](https://modernjs.dev/builder/en/api/config-tools.html#toolsminifycss)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.minifyCss](https://modernjs.dev/builder/en/api/config-tools.html#toolsminifycss).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/minifyCss.md'
@@ -5,7 +5,7 @@ sidebar_label: postcss
5
5
  # tools.postcss
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.postcss](https://modernjs.dev/builder/en/api/config-tools.html#toolspostcss)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.postcss](https://modernjs.dev/builder/en/api/config-tools.html#toolspostcss).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/postcss.md'
@@ -5,7 +5,7 @@ sidebar_label: pug
5
5
  # tools.pug
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.pug](https://modernjs.dev/builder/en/api/config-tools.html#toolspug)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.pug](https://modernjs.dev/builder/en/api/config-tools.html#toolspug).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/pug.md'
@@ -0,0 +1,13 @@
1
+ ---
2
+ sidebar_label: rspack
3
+ ---
4
+
5
+ # tools.rspack
6
+
7
+ :::tip
8
+ This config is provided by Modern.js Builder, more detail can see [tools.rspack](https://modernjs.dev/builder/en/api/config-tools.html#toolsrspack).
9
+ :::
10
+
11
+ import Main from '@modern-js/builder-doc/docs/en/config/tools/rspack.md'
12
+
13
+ <Main />
@@ -5,7 +5,7 @@ sidebar_label: sass
5
5
  # tools.sass
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.sass](https://modernjs.dev/builder/en/api/config-tools.html#toolssass)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.sass](https://modernjs.dev/builder/en/api/config-tools.html#toolssass).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/sass.md'
@@ -5,7 +5,7 @@ sidebar_label: styleLoader
5
5
  # tools.styleLoader
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.styleLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolsstyleloader)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.styleLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolsstyleloader).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/styleLoader.md'
@@ -5,7 +5,7 @@ sidebar_label: styledComponents
5
5
  # tools.styledComponents
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.styledComponents](https://modernjs.dev/builder/en/api/config-tools.html#toolsstyledcomponents)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.styledComponents](https://modernjs.dev/builder/en/api/config-tools.html#toolsstyledcomponents).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/styledComponents.md'
@@ -32,4 +32,4 @@ When the value is of type `Function`, the object returned by the function is mer
32
32
 
33
33
  The `theme` attribute is not allowed, otherwise the build will fail. Modern.js use [source.designSystem](/configure/app/source/design-system) as the Tailwind CSS Theme configuration.
34
34
 
35
- Other uses are consistent with [Tailwind CSS](https://tailwindcss.com/docs/configuration)
35
+ Other uses are consistent with [Tailwind CSS](https://tailwindcss.com/docs/configuration).
@@ -5,7 +5,7 @@ sidebar_label: terser
5
5
  # tools.terser
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.terser](https://modernjs.dev/builder/en/api/config-tools.html#toolsterser)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.terser](https://modernjs.dev/builder/en/api/config-tools.html#toolsterser).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/terser.md'
@@ -5,7 +5,7 @@ sidebar_label: tsChecker
5
5
  # tools.tsChecker
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.tsChecker](https://modernjs.dev/builder/en/api/config-tools.html#toolstschecker)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.tsChecker](https://modernjs.dev/builder/en/api/config-tools.html#toolstschecker).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/tsChecker.md'
@@ -5,7 +5,7 @@ sidebar_label: tsLoader
5
5
  # tools.tsLoader
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.tsLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolstsloader)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.tsLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolstsloader).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/tsLoader.md'
@@ -5,7 +5,7 @@ sidebar_label: webpackChain
5
5
  # tools.webpackChain
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.webpackChain](https://modernjs.dev/builder/en/api/config-tools.html#toolswebpackchain)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.webpackChain](https://modernjs.dev/builder/en/api/config-tools.html#toolswebpackchain).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/webpackChain.md'
@@ -5,7 +5,7 @@ sidebar_label: webpack
5
5
  # tools.webpack
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [tools.webpack](https://modernjs.dev/builder/en/api/config-tools.html#toolswebpack)
8
+ This config is provided by Modern.js Builder, more detail can see [tools.webpack](https://modernjs.dev/builder/en/api/config-tools.html#toolswebpack).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/tools/webpack.md'
@@ -2,7 +2,7 @@
2
2
  sidebar_position: 0
3
3
  ---
4
4
 
5
- # Configure to use
5
+ # Configuring Modern.js
6
6
 
7
7
  There are two configurations in the Modern.js, a compile configuration and a server runtime configuration.
8
8
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "label": "Advanced Features",
3
- "position": 4,
4
- "collapsed": true
3
+ "position": 5,
4
+ "collapsed": false
5
5
  }
@@ -25,6 +25,6 @@ export default defineConfig({
25
25
  ```
26
26
 
27
27
  :::note
28
- For more detail, see [bff.proxy](/configure/app/bff/proxy)For more proxy info, see [Proxy](/guides/basic-features/proxy)
28
+ For more detail, see [bff.proxy](/configure/app/bff/proxy). For more proxy info, see [Proxy](/guides/basic-features/proxy).
29
29
 
30
30
  :::
@@ -31,7 +31,7 @@ export default hook(({ addMiddleware }) => {
31
31
  });
32
32
  ```
33
33
 
34
- 然后添加一个普通的 BFF 函数 `/api/hello.ts`:
34
+ Then add a normal BFF function `/api/hello.ts`:
35
35
 
36
36
  ```ts
37
37
  export default async () => {
@@ -58,7 +58,7 @@ Function Writing & Framework Writing will introduce soon.
58
58
 
59
59
  :::
60
60
 
61
- All routes generated by BFF functions have a prefix, and the default value is `/api`. The prefix can be set through [bff.prefix] (/docs/configure/app/bff/prefix).
61
+ All routes generated by BFF functions have a prefix, and the default value is `/api`. The prefix can be set through [bff.prefix](/configure/app/bff/prefix).
62
62
 
63
63
  Several routing conventions are described as follow.
64
64
 
@@ -130,9 +130,9 @@ export const post = async () => {
130
130
  };
131
131
  ```
132
132
 
133
- - Modern.js supports 9 definitions for HTTP Method: `GET`、`POST`、`PUT`、`DELETE`、`CONNECT`、`TRACE`、`PATCH`、`OPTION`、`HEAD`, can be exported using these methods as functions
133
+ - Modern.js supports 9 definitions for HTTP Method: `GET`、`POST`、`PUT`、`DELETE`、`CONNECT`、`TRACE`、`PATCH`、`OPTION`、`HEAD`, can be exported using these methods as functions.
134
134
 
135
- - The name is size insensitive,if `GET`,can write `get`、`Get`、`GEt`、`GET`,can be accurately identified. But default export as `export default xxx` will be map to `Get`。
135
+ - The name is size insensitive,if `GET`,can write `get`、`Get`、`GEt`、`GET`,can be accurately identified. But default export as `export default xxx` will be map to `Get`.
136
136
 
137
137
  - Multiple functions of different Methods can be defined in one file, but if multiple functions of the same Method are defined, only the first will take effect.
138
138
 
@@ -56,7 +56,7 @@ function MyComponent() {
56
56
  }
57
57
  ```
58
58
 
59
- For detail, see [React lazy](https://reactjs.org/docs/code-splitting.html#reactlazy)
59
+ For detail, see [React lazy](https://reactjs.org/docs/code-splitting.html#reactlazy).
60
60
 
61
61
  ## loadable
62
62
 
@@ -72,7 +72,7 @@ function MyComponent() {
72
72
  }
73
73
  ```
74
74
 
75
- For detail, see [loadable API](/apis/app/runtime/utility/loadable)
75
+ For detail, see [loadable API](/apis/app/runtime/utility/loadable).
76
76
 
77
77
  :::info
78
78
  SSR is supported out of the box by `loadable`.
@@ -48,8 +48,8 @@ Modern.js also provides a runtime Polyfill solution based on browser [UA](https:
48
48
  exec `pnpm run new` to enable this features:
49
49
 
50
50
  ```bash
51
- ? 请选择你想要的操作 启用可选功能
52
- ? 启用可选功能 启用「基于 UA Polyfill」功能
51
+ ? Action Enable features
52
+ ? Enable features Enable UA-based Polyfill Feature
53
53
  ```
54
54
 
55
55
  After executing the command, register the Polyfill plugin in `modern.config.ts`:
@@ -57,7 +57,6 @@ After executing the command, register the Polyfill plugin in `modern.config.ts`:
57
57
  ```ts title="modern.config.ts"
58
58
  import polyfillPlugin from '@modern-js/plugin-polyfill';
59
59
 
60
- // https://modernjs.dev/docs/apis/app/config
61
60
  export default defineConfig({
62
61
  plugins: [..., polyfillPlugin()],
63
62
  });
@@ -43,7 +43,7 @@ pnpm run lint:error
43
43
  /* eslint-enable filenames/match-exported */
44
44
  ```
45
45
 
46
- :::info
46
+ :::info
47
47
  在 VS Code 编辑器里输入 eslint,会自动出现关于 "eslint-disable" 的提示框,选择提示选项生成对应注释对。
48
48
 
49
49
  :::
@@ -74,7 +74,7 @@ pnpm run lint:error
74
74
 
75
75
  Modern.js 的应用工程、模块工程,源代码目录里都会默认有这个配置文件,是针对 Universal JS 代码设计的。
76
76
 
77
- :::info
77
+ :::info
78
78
  Universal JS 代码是既能浏览器端也能在服务器端运行的代码。
79
79
 
80
80
  :::
@@ -106,7 +106,7 @@ module.exports = {
106
106
  };
107
107
  ```
108
108
 
109
- :::tip 提示
109
+ :::tip
110
110
  注意:没有必要使用 `extends` 字段,会自动继承父目录的配置。
111
111
 
112
112
  :::
@@ -129,7 +129,7 @@ module.exports = {
129
129
 
130
130
  做完这些操作之后,在业务项目的 `./node_modules` 目录里,这个插件应该只存在一份,并且升级到了你指定的版本。
131
131
 
132
- :::tip 提示
132
+ :::tip
133
133
  - Major 版本就是主版本号。更多信息,请阅读【[Semantic Versioning](https://semver.org/#summary)】。
134
134
  - 所有被 Modern.js 封装的上游项目(比如 ESLint、[ESLint 插件](https://eslint.org/docs/user-guide/configuring/plugins#plugins)、[React Router](https://reactrouter.com/) 等),也都可以这样升级。
135
135
  - Modern.js 也会在每次发版中尽量及时的升级这些上游依赖。
@@ -10,7 +10,7 @@ Modern.js internally integrates tools such as [Babel](https://babeljs.io/), [Typ
10
10
 
11
11
  Usually, the default configuration can meet most development needs. When there are special needs, it can be achieved through the underlying configuration.
12
12
 
13
- Take configuring Webpack as an example, just add ['tools.webpack'] (/docs/configure/app/tools/webpack) to the modern.config.ts:
13
+ Take configuring Webpack as an example, just add [tools.webpack](/configure/app/tools/webpack) to the modern.config.ts:
14
14
 
15
15
  ```ts title="modern.config.ts"
16
16
  export default defineConfig({