@modern-js/main-doc 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (525) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/en/docusaurus-plugin-content-docs/current/apis/app/commands/index.md +0 -5
  3. package/en/docusaurus-plugin-content-docs/current/apis/app/commands/lint.md +1 -1
  4. package/en/docusaurus-plugin-content-docs/current/apis/app/commands/serve.md +2 -4
  5. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/framework/lambda.md +12 -12
  6. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/api.md +13 -13
  7. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/app.md +0 -2
  8. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/common.md +1 -3
  9. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/app.md +16 -9
  10. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/index_.md +0 -1
  11. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/routes.md +5 -3
  12. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/server.md +6 -4
  13. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/stories.md +2 -2
  14. package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/test.md +1 -1
  15. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/app/define-config.md +0 -1
  16. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/bff/hook.md +3 -3
  17. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/bootstrap.md +3 -6
  18. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/create-app.md +1 -3
  19. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-loader.md +2 -2
  20. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-module-apps.md +58 -51
  21. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-runtime-context.md +3 -4
  22. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/index.md +0 -5
  23. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/Provider.md +1 -1
  24. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/connect.md +8 -5
  25. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/create-store.md +1 -3
  26. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/handle-effect.md +3 -3
  27. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/model_.md +0 -1
  28. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-model.md +0 -3
  29. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-store.md +0 -2
  30. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/router/router.md +23 -54
  31. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/no-ssr.md +1 -8
  32. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/pre-render.md +10 -6
  33. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/testing/render.md +0 -2
  34. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/css-in-js.md +2 -2
  35. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/head.md +3 -5
  36. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/loadable.md +14 -15
  37. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/hook.md +4 -5
  38. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/middleware.md +7 -6
  39. package/en/docusaurus-plugin-content-docs/current/components/command-tip.md +3 -2
  40. package/en/docusaurus-plugin-content-docs/current/components/debug-app.md +17 -0
  41. package/en/docusaurus-plugin-content-docs/current/components/enable-bff.md +10 -14
  42. package/en/docusaurus-plugin-content-docs/current/components/enable-micro-frontend.md +4 -4
  43. package/en/docusaurus-plugin-content-docs/current/components/global-proxy-config.md +6 -9
  44. package/en/docusaurus-plugin-content-docs/current/components/global-proxy.md +0 -1
  45. package/en/docusaurus-plugin-content-docs/current/components/micro-master-manifest-config.md +2 -2
  46. package/en/docusaurus-plugin-content-docs/current/components/micro-runtime-config.md +1 -1
  47. package/en/docusaurus-plugin-content-docs/current/components/prerequisites.md +19 -0
  48. package/en/docusaurus-plugin-content-docs/current/components/reduck-migration.md +0 -1
  49. package/en/docusaurus-plugin-content-docs/current/components/reduck-tip.md +1 -1
  50. package/en/docusaurus-plugin-content-docs/current/components/router-legacy-tip.md +0 -1
  51. package/en/docusaurus-plugin-content-docs/current/configure/app/auto-load-plugin.md +8 -9
  52. package/en/docusaurus-plugin-content-docs/current/configure/app/bff/prefix.md +6 -6
  53. package/en/docusaurus-plugin-content-docs/current/configure/app/bff/proxy.md +8 -9
  54. package/en/docusaurus-plugin-content-docs/current/configure/app/builder-plugins.md +6 -6
  55. package/en/docusaurus-plugin-content-docs/current/configure/app/deploy/microFrontend.md +11 -13
  56. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/asset-prefix.md +2 -2
  57. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/hmr.md +2 -2
  58. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/https.md +2 -2
  59. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/port.md +2 -2
  60. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/progress-bar.md +2 -2
  61. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/proxy.md +0 -1
  62. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/start-url.md +2 -2
  63. package/en/docusaurus-plugin-content-docs/current/configure/app/experiments/lazy-compilation.md +2 -2
  64. package/en/docusaurus-plugin-content-docs/current/configure/app/html/app-icon.md +2 -2
  65. package/en/docusaurus-plugin-content-docs/current/configure/app/html/crossorigin.md +2 -2
  66. package/en/docusaurus-plugin-content-docs/current/configure/app/html/disable-html-folder.md +2 -2
  67. package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon-by-entries.md +2 -2
  68. package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon.md +2 -2
  69. package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject-by-entries.md +2 -2
  70. package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject.md +2 -2
  71. package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta-by-entries.md +2 -2
  72. package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta.md +2 -2
  73. package/en/docusaurus-plugin-content-docs/current/configure/app/html/mount-id.md +2 -2
  74. package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags-by-entries.md +12 -0
  75. package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags.md +12 -0
  76. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-by-entries.md +2 -2
  77. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters-by-entries.md +2 -2
  78. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters.md +2 -2
  79. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template.md +2 -2
  80. package/en/docusaurus-plugin-content-docs/current/configure/app/html/title-by-entries.md +2 -2
  81. package/en/docusaurus-plugin-content-docs/current/configure/app/html/title.md +2 -2
  82. package/en/docusaurus-plugin-content-docs/current/configure/app/output/asset-prefix.md +2 -2
  83. package/en/docusaurus-plugin-content-docs/current/configure/app/output/assets-retry.md +2 -2
  84. package/en/docusaurus-plugin-content-docs/current/configure/app/output/charset.md +2 -2
  85. package/en/docusaurus-plugin-content-docs/current/configure/app/output/clean-dist-path.md +2 -2
  86. package/en/docusaurus-plugin-content-docs/current/configure/app/output/convert-to-rem.md +2 -2
  87. package/en/docusaurus-plugin-content-docs/current/configure/app/output/copy.md +2 -2
  88. package/en/docusaurus-plugin-content-docs/current/configure/app/output/css-module-local-ident-name.md +2 -2
  89. package/en/docusaurus-plugin-content-docs/current/configure/app/output/data-uri-limit.md +2 -2
  90. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-extract.md +2 -2
  91. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-module-extension.md +2 -2
  92. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-filename-hash.md +2 -2
  93. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-inline-runtime-chunk.md +2 -2
  94. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-minimize.md +2 -2
  95. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-node-polyfill.md +8 -6
  96. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-source-map.md +2 -2
  97. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-ts-checker.md +2 -2
  98. package/en/docusaurus-plugin-content-docs/current/configure/app/output/dist-path.md +2 -2
  99. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-fallback.md +2 -2
  100. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-manifest.md +2 -2
  101. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
  102. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-scripts.md +2 -2
  103. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-styles.md +2 -2
  104. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-latest-decorators.md +2 -2
  105. package/en/docusaurus-plugin-content-docs/current/configure/app/output/externals.md +2 -2
  106. package/en/docusaurus-plugin-content-docs/current/configure/app/output/filename.md +2 -2
  107. package/en/docusaurus-plugin-content-docs/current/configure/app/output/legal-comments.md +2 -2
  108. package/en/docusaurus-plugin-content-docs/current/configure/app/output/override-browserslist.md +2 -2
  109. package/en/docusaurus-plugin-content-docs/current/configure/app/output/polyfill.md +2 -2
  110. package/en/docusaurus-plugin-content-docs/current/configure/app/output/ssg.md +3 -2
  111. package/en/docusaurus-plugin-content-docs/current/configure/app/output/svg-default-export.md +2 -2
  112. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/build-cache.md +2 -2
  113. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/bundle-analyze.md +2 -2
  114. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/chunk-split.md +2 -2
  115. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/print-file-size.md +2 -2
  116. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/profile.md +2 -2
  117. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-console.md +2 -2
  118. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-moment-locale.md +2 -2
  119. package/en/docusaurus-plugin-content-docs/current/configure/app/plugins.md +6 -6
  120. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/intro.md +11 -10
  121. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/master-app.md +1 -2
  122. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/router.md +7 -7
  123. package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/state.md +15 -15
  124. package/en/docusaurus-plugin-content-docs/current/configure/app/security/sri.md +2 -2
  125. package/en/docusaurus-plugin-content-docs/current/configure/app/server/base-url.md +3 -4
  126. package/en/docusaurus-plugin-content-docs/current/configure/app/server/enable-framework-ext.md +5 -4
  127. package/en/docusaurus-plugin-content-docs/current/configure/app/server/port.md +24 -4
  128. package/en/docusaurus-plugin-content-docs/current/configure/app/server/public-routes.md +6 -6
  129. package/en/docusaurus-plugin-content-docs/current/configure/app/server/routes.md +7 -7
  130. package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr-by-entries.md +5 -5
  131. package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr.md +4 -4
  132. package/en/docusaurus-plugin-content-docs/current/configure/app/source/alias.md +2 -2
  133. package/en/docusaurus-plugin-content-docs/current/configure/app/source/compile-js-data-uri.md +2 -2
  134. package/en/docusaurus-plugin-content-docs/current/configure/app/source/config-dir.md +2 -2
  135. package/en/docusaurus-plugin-content-docs/current/configure/app/source/define.md +2 -2
  136. package/en/docusaurus-plugin-content-docs/current/configure/app/source/design-system.md +656 -634
  137. package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-default-entries.md +1 -1
  138. package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-entry-dirs.md +8 -8
  139. package/en/docusaurus-plugin-content-docs/current/configure/app/source/enable-async-entry.md +1 -1
  140. package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries-dir.md +7 -7
  141. package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries.md +4 -6
  142. package/en/docusaurus-plugin-content-docs/current/configure/app/source/exclude.md +2 -2
  143. package/en/docusaurus-plugin-content-docs/current/configure/app/source/global-vars.md +2 -2
  144. package/en/docusaurus-plugin-content-docs/current/configure/app/source/include.md +2 -2
  145. package/en/docusaurus-plugin-content-docs/current/configure/app/source/module-scopes.md +2 -2
  146. package/en/docusaurus-plugin-content-docs/current/configure/app/source/pre-entry.md +2 -2
  147. package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-extension-prefix.md +2 -2
  148. package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-main-fields.md +2 -2
  149. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/autoprefixer.md +2 -2
  150. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/babel.md +2 -2
  151. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-extract.md +2 -2
  152. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-loader.md +2 -2
  153. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/dev-server.md +2 -2
  154. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/html-plugin.md +2 -2
  155. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/inspector.md +2 -2
  156. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/jest.md +9 -9
  157. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/less.md +2 -2
  158. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/minify-css.md +2 -2
  159. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/postcss.md +2 -2
  160. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/pug.md +2 -2
  161. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/sass.md +2 -2
  162. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/style-loader.md +2 -2
  163. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/styled-components.md +2 -2
  164. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/swc.md +12 -1
  165. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/terser.md +2 -2
  166. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-checker.md +2 -2
  167. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-loader.md +2 -2
  168. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack-chain.md +2 -2
  169. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack.md +2 -2
  170. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/frameworks.md +6 -6
  171. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/function.md +44 -38
  172. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/index.md +9 -9
  173. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/type.md +0 -1
  174. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/code-split.md +3 -4
  175. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/compatibility.md +6 -7
  176. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/eslint.md +0 -1
  177. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/index.md +0 -5
  178. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/low-level.md +17 -19
  179. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssg.md +8 -10
  180. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssr.md +5 -11
  181. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/testing.md +3 -3
  182. package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/web-server.md +3 -4
  183. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/alias.md +7 -11
  184. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-in-js.md +6 -6
  185. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-modules.md +2 -2
  186. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/less-sass.md +1 -2
  187. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/postcss.md +43 -47
  188. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/tailwindcss.md +3 -3
  189. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/data-fetch.md +106 -192
  190. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/env-vars.md +8 -8
  191. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/html.md +55 -47
  192. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/mock.md +4 -4
  193. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/proxy.md +4 -5
  194. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/routes.md +90 -9
  195. package/en/docusaurus-plugin-content-docs/current/guides/concept/entries.md +1 -2
  196. package/en/docusaurus-plugin-content-docs/current/guides/get-started/quick-start.md +2 -2
  197. package/en/docusaurus-plugin-content-docs/current/guides/get-started/upgrade.md +1 -1
  198. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/extend.md +13 -13
  199. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook-list.md +2 -2
  200. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook.md +57 -54
  201. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/implement.md +11 -11
  202. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/lifecycle.md +0 -1
  203. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
  204. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/app.md +33 -33
  205. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/ejs.md +3 -3
  206. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/fs.md +3 -3
  207. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/git.md +3 -2
  208. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/handlebars.md +3 -4
  209. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/json.md +9 -12
  210. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/npm.md +2 -3
  211. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/introduce.md +4 -3
  212. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
  213. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/structure.md +13 -11
  214. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/config/common.md +18 -27
  215. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/abstract.md +1 -4
  216. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -1
  217. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -5
  218. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/hook/onForged.md +0 -1
  219. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +1 -4
  220. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +1 -3
  221. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
  222. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
  223. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
  224. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/develop.md +11 -12
  225. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/use.md +8 -8
  226. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/project.md +1 -2
  227. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
  228. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c02-development.md +18 -21
  229. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
  230. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
  231. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
  232. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/auto-actions.md +0 -1
  233. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/computed-state.md +0 -2
  234. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/define-model.md +3 -6
  235. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/faq.md +2 -5
  236. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/manage-effects.md +2 -5
  237. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/model-communicate.md +1 -4
  238. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/performance.md +1 -5
  239. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/quick-start.md +0 -6
  240. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/redux-integration.md +3 -2
  241. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/test-model.md +1 -1
  242. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/typescript-best-practice.md +13 -14
  243. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-model.md +14 -12
  244. package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
  245. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c01-start.md +19 -19
  246. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c02-component.md +11 -11
  247. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c03-css.md +52 -55
  248. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c04-routes.md +23 -23
  249. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c05-loader.md +12 -11
  250. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c06-model.md +28 -28
  251. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c07-container.md +25 -26
  252. package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c08-entries.md +36 -38
  253. package/en/docusaurus-plugin-content-docs/current.json +3 -47
  254. package/package.json +3 -3
  255. package/scripts/config.ts +4 -2
  256. package/scripts/summary.en.json +1 -1
  257. package/scripts/summary.zh.json +1 -1
  258. package/scripts/sync.ts +1 -1
  259. package/zh/apis/app/commands/index.md +0 -5
  260. package/zh/apis/app/commands/lint.md +1 -1
  261. package/zh/apis/app/commands/serve.md +2 -4
  262. package/zh/apis/app/hooks/api/framework/lambda.md +12 -12
  263. package/zh/apis/app/hooks/api/functions/api.md +13 -13
  264. package/zh/apis/app/hooks/api/functions/app.md +0 -2
  265. package/zh/apis/app/hooks/api/functions/common.md +1 -1
  266. package/zh/apis/app/hooks/index.md +0 -5
  267. package/zh/apis/app/hooks/shared.md +0 -1
  268. package/zh/apis/app/hooks/src/app.md +16 -9
  269. package/zh/apis/app/hooks/src/index_.md +0 -2
  270. package/zh/apis/app/hooks/src/routes.md +6 -7
  271. package/zh/apis/app/hooks/src/server.md +6 -4
  272. package/zh/apis/app/hooks/src/stories.md +1 -1
  273. package/zh/apis/app/hooks/src/test.md +1 -1
  274. package/zh/apis/app/runtime/app/define-config.md +1 -2
  275. package/zh/apis/app/runtime/bff/hook.md +3 -3
  276. package/zh/apis/app/runtime/core/bootstrap.md +2 -3
  277. package/zh/apis/app/runtime/core/use-loader.md +2 -2
  278. package/zh/apis/app/runtime/core/use-module-apps.md +53 -50
  279. package/zh/apis/app/runtime/core/use-runtime-context.md +3 -4
  280. package/zh/apis/app/runtime/index.md +0 -5
  281. package/zh/apis/app/runtime/model/Provider.md +1 -0
  282. package/zh/apis/app/runtime/model/auto-actions.md +1 -1
  283. package/zh/apis/app/runtime/model/connect.md +9 -5
  284. package/zh/apis/app/runtime/model/create-app.md +3 -3
  285. package/zh/apis/app/runtime/model/create-store.md +2 -4
  286. package/zh/apis/app/runtime/model/handle-effect.md +3 -4
  287. package/zh/apis/app/runtime/model/model_.md +0 -3
  288. package/zh/apis/app/runtime/model/use-local-model.md +0 -1
  289. package/zh/apis/app/runtime/model/use-store.md +0 -2
  290. package/zh/apis/app/runtime/router/router.md +23 -53
  291. package/zh/apis/app/runtime/ssr/no-ssr.md +1 -5
  292. package/zh/apis/app/runtime/ssr/pre-render.md +10 -6
  293. package/zh/apis/app/runtime/testing/cleanup.md +2 -2
  294. package/zh/apis/app/runtime/testing/render.md +0 -2
  295. package/zh/apis/app/runtime/utility/css-in-js.md +2 -2
  296. package/zh/apis/app/runtime/utility/head.md +3 -5
  297. package/zh/apis/app/runtime/utility/loadable.md +14 -15
  298. package/zh/apis/app/runtime/web-server/hook.md +5 -4
  299. package/zh/apis/app/runtime/web-server/middleware.md +8 -6
  300. package/zh/apis/monorepo/commands/bump.md +1 -1
  301. package/zh/apis/monorepo/commands/change.md +3 -2
  302. package/zh/apis/monorepo/commands/gen-release-note.md +1 -2
  303. package/zh/apis/monorepo/commands/index.md +1 -6
  304. package/zh/apis/monorepo/commands/lint.md +1 -1
  305. package/zh/apis/monorepo/commands/release.md +0 -1
  306. package/zh/apis/monorepo/hooks/index.md +1 -6
  307. package/zh/components/command-tip.md +3 -2
  308. package/zh/components/enable-bff.md +10 -14
  309. package/zh/components/enable-micro-frontend.md +4 -4
  310. package/zh/components/global-proxy-config.md +6 -9
  311. package/zh/components/global-proxy.md +0 -1
  312. package/zh/components/init-app.md +0 -1
  313. package/zh/components/micro-master-manifest-config.md +2 -2
  314. package/zh/components/micro-runtime-config.md +1 -1
  315. package/zh/components/reduck-migration.md +0 -1
  316. package/zh/components/router-legacy-tip.md +0 -1
  317. package/zh/configure/app/auto-load-plugin.md +9 -10
  318. package/zh/configure/app/bff/prefix.md +6 -10
  319. package/zh/configure/app/bff/proxy.md +9 -8
  320. package/zh/configure/app/builder-plugins.md +6 -6
  321. package/zh/configure/app/deploy/microFrontend.md +11 -11
  322. package/zh/configure/app/dev/asset-prefix.md +2 -2
  323. package/zh/configure/app/dev/hmr.md +2 -2
  324. package/zh/configure/app/dev/https.md +2 -2
  325. package/zh/configure/app/dev/port.md +2 -2
  326. package/zh/configure/app/dev/progress-bar.md +2 -2
  327. package/zh/configure/app/dev/proxy.md +0 -1
  328. package/zh/configure/app/dev/start-url.md +2 -2
  329. package/zh/configure/app/experiments/lazy-compilation.md +2 -2
  330. package/zh/configure/app/html/app-icon.md +2 -2
  331. package/zh/configure/app/html/crossorigin.md +2 -2
  332. package/zh/configure/app/html/disable-html-folder.md +2 -2
  333. package/zh/configure/app/html/favicon-by-entries.md +2 -2
  334. package/zh/configure/app/html/favicon.md +2 -2
  335. package/zh/configure/app/html/inject-by-entries.md +2 -2
  336. package/zh/configure/app/html/inject.md +2 -2
  337. package/zh/configure/app/html/meta-by-entries.md +2 -2
  338. package/zh/configure/app/html/meta.md +2 -2
  339. package/zh/configure/app/html/mount-id.md +2 -2
  340. package/zh/configure/app/html/tags-by-entries.md +12 -0
  341. package/zh/configure/app/html/tags.md +12 -0
  342. package/zh/configure/app/html/template-by-entries.md +2 -2
  343. package/zh/configure/app/html/template-parameters-by-entries.md +2 -2
  344. package/zh/configure/app/html/template-parameters.md +2 -2
  345. package/zh/configure/app/html/template.md +2 -2
  346. package/zh/configure/app/html/title-by-entries.md +2 -2
  347. package/zh/configure/app/html/title.md +2 -2
  348. package/zh/configure/app/output/asset-prefix.md +2 -2
  349. package/zh/configure/app/output/assets-retry.md +2 -2
  350. package/zh/configure/app/output/charset.md +2 -2
  351. package/zh/configure/app/output/clean-dist-path.md +2 -2
  352. package/zh/configure/app/output/convert-to-rem.md +2 -2
  353. package/zh/configure/app/output/copy.md +2 -2
  354. package/zh/configure/app/output/css-module-local-ident-name.md +2 -2
  355. package/zh/configure/app/output/data-uri-limit.md +2 -2
  356. package/zh/configure/app/output/disable-css-extract.md +2 -2
  357. package/zh/configure/app/output/disable-css-module-extension.md +2 -2
  358. package/zh/configure/app/output/disable-filename-hash.md +2 -2
  359. package/zh/configure/app/output/disable-inline-runtime-chunk.md +2 -2
  360. package/zh/configure/app/output/disable-minimize.md +2 -2
  361. package/zh/configure/app/output/disable-node-polyfill.md +8 -8
  362. package/zh/configure/app/output/disable-source-map.md +2 -2
  363. package/zh/configure/app/output/disable-ts-checker.md +2 -2
  364. package/zh/configure/app/output/dist-path.md +2 -2
  365. package/zh/configure/app/output/enable-asset-fallback.md +2 -2
  366. package/zh/configure/app/output/enable-asset-manifest.md +2 -2
  367. package/zh/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
  368. package/zh/configure/app/output/enable-inline-scripts.md +2 -2
  369. package/zh/configure/app/output/enable-inline-styles.md +2 -2
  370. package/zh/configure/app/output/enable-latest-decorators.md +2 -2
  371. package/zh/configure/app/output/externals.md +2 -2
  372. package/zh/configure/app/output/filename.md +2 -2
  373. package/zh/configure/app/output/legal-comments.md +2 -2
  374. package/zh/configure/app/output/override-browserslist.md +2 -2
  375. package/zh/configure/app/output/polyfill.md +2 -2
  376. package/zh/configure/app/output/ssg.md +3 -2
  377. package/zh/configure/app/output/svg-default-export.md +2 -2
  378. package/zh/configure/app/performance/build-cache.md +2 -2
  379. package/zh/configure/app/performance/bundle-analyze.md +2 -2
  380. package/zh/configure/app/performance/chunk-split.md +2 -2
  381. package/zh/configure/app/performance/print-file-size.md +2 -2
  382. package/zh/configure/app/performance/profile.md +2 -2
  383. package/zh/configure/app/performance/remove-console.md +2 -2
  384. package/zh/configure/app/performance/remove-moment-locale.md +2 -2
  385. package/zh/configure/app/plugins.md +6 -6
  386. package/zh/configure/app/runtime/intro.md +39 -11
  387. package/zh/configure/app/runtime/master-app.md +1 -2
  388. package/zh/configure/app/runtime/router.md +6 -7
  389. package/zh/configure/app/runtime/state.md +15 -16
  390. package/zh/configure/app/security/sri.md +2 -2
  391. package/zh/configure/app/server/base-url.md +3 -6
  392. package/zh/configure/app/server/enable-framework-ext.md +5 -4
  393. package/zh/configure/app/server/port.md +24 -6
  394. package/zh/configure/app/server/public-routes.md +6 -8
  395. package/zh/configure/app/server/routes.md +6 -6
  396. package/zh/configure/app/server/ssr-by-entries.md +5 -8
  397. package/zh/configure/app/server/ssr.md +4 -5
  398. package/zh/configure/app/source/alias.md +2 -2
  399. package/zh/configure/app/source/compile-js-data-uri.md +2 -2
  400. package/zh/configure/app/source/config-dir.md +2 -2
  401. package/zh/configure/app/source/define.md +2 -2
  402. package/zh/configure/app/source/design-system.md +656 -630
  403. package/zh/configure/app/source/disable-default-entries.md +3 -3
  404. package/zh/configure/app/source/disable-entry-dirs.md +8 -7
  405. package/zh/configure/app/source/enable-async-entry.md +3 -3
  406. package/zh/configure/app/source/entries-dir.md +7 -7
  407. package/zh/configure/app/source/entries.md +5 -6
  408. package/zh/configure/app/source/exclude.md +2 -2
  409. package/zh/configure/app/source/global-vars.md +2 -2
  410. package/zh/configure/app/source/include.md +2 -2
  411. package/zh/configure/app/source/module-scopes.md +2 -2
  412. package/zh/configure/app/source/pre-entry.md +2 -2
  413. package/zh/configure/app/source/resolve-extension-prefix.md +2 -2
  414. package/zh/configure/app/source/resolve-main-fields.md +2 -2
  415. package/zh/configure/app/testing/transformer.md +2 -3
  416. package/zh/configure/app/tools/autoprefixer.md +2 -2
  417. package/zh/configure/app/tools/babel.md +2 -2
  418. package/zh/configure/app/tools/css-extract.md +2 -2
  419. package/zh/configure/app/tools/css-loader.md +2 -2
  420. package/zh/configure/app/tools/dev-server.md +2 -2
  421. package/zh/configure/app/tools/html-plugin.md +2 -2
  422. package/zh/configure/app/tools/inspector.md +2 -2
  423. package/zh/configure/app/tools/jest.md +9 -9
  424. package/zh/configure/app/tools/less.md +2 -2
  425. package/zh/configure/app/tools/minify-css.md +2 -2
  426. package/zh/configure/app/tools/postcss.md +2 -2
  427. package/zh/configure/app/tools/pug.md +2 -2
  428. package/zh/configure/app/tools/sass.md +2 -2
  429. package/zh/configure/app/tools/style-loader.md +2 -2
  430. package/zh/configure/app/tools/styled-components.md +2 -2
  431. package/zh/configure/app/tools/swc.md +12 -1
  432. package/zh/configure/app/tools/terser.md +2 -2
  433. package/zh/configure/app/tools/ts-checker.md +2 -2
  434. package/zh/configure/app/tools/ts-loader.md +2 -2
  435. package/zh/configure/app/tools/webpack-chain.md +2 -2
  436. package/zh/configure/app/tools/webpack.md +2 -2
  437. package/zh/guides/advanced-features/bff/frameworks.md +6 -6
  438. package/zh/guides/advanced-features/bff/function.md +49 -44
  439. package/zh/guides/advanced-features/bff/index.md +9 -9
  440. package/zh/guides/advanced-features/bff/type.md +0 -1
  441. package/zh/guides/advanced-features/code-split.md +3 -3
  442. package/zh/guides/advanced-features/compatibility.md +6 -7
  443. package/zh/guides/advanced-features/eslint.md +0 -1
  444. package/zh/guides/advanced-features/index.md +0 -5
  445. package/zh/guides/advanced-features/low-level.md +17 -19
  446. package/zh/guides/advanced-features/ssg.md +8 -9
  447. package/zh/guides/advanced-features/ssr.md +5 -11
  448. package/zh/guides/advanced-features/testing.md +3 -2
  449. package/zh/guides/advanced-features/web-server.md +3 -4
  450. package/zh/guides/basic-features/alias.md +7 -11
  451. package/zh/guides/basic-features/css/css-in-js.md +5 -5
  452. package/zh/guides/basic-features/css/css-modules.md +2 -2
  453. package/zh/guides/basic-features/css/postcss.md +42 -46
  454. package/zh/guides/basic-features/css/tailwindcss.md +5 -5
  455. package/zh/guides/basic-features/data-fetch.md +109 -192
  456. package/zh/guides/basic-features/env-vars.md +7 -6
  457. package/zh/guides/basic-features/html.md +54 -46
  458. package/zh/guides/basic-features/index.md +0 -5
  459. package/zh/guides/basic-features/mock.md +4 -4
  460. package/zh/guides/basic-features/proxy.md +4 -5
  461. package/zh/guides/basic-features/routes.md +105 -18
  462. package/zh/guides/concept/entries.md +5 -7
  463. package/zh/guides/get-started/quick-start.md +3 -4
  464. package/zh/guides/topic-detail/changesets/add.md +1 -3
  465. package/zh/guides/topic-detail/changesets/changelog.md +30 -31
  466. package/zh/guides/topic-detail/changesets/commit.md +44 -45
  467. package/zh/guides/topic-detail/changesets/config.md +2 -1
  468. package/zh/guides/topic-detail/changesets/github.md +6 -10
  469. package/zh/guides/topic-detail/changesets/introduce.md +0 -1
  470. package/zh/guides/topic-detail/changesets/release-note.md +9 -12
  471. package/zh/guides/topic-detail/changesets/release-pre.md +1 -1
  472. package/zh/guides/topic-detail/framework-plugin/extend.md +13 -13
  473. package/zh/guides/topic-detail/framework-plugin/hook-list.md +2 -2
  474. package/zh/guides/topic-detail/framework-plugin/hook.md +57 -54
  475. package/zh/guides/topic-detail/framework-plugin/implement.md +11 -11
  476. package/zh/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
  477. package/zh/guides/topic-detail/generator/codesmith/api/app.md +36 -36
  478. package/zh/guides/topic-detail/generator/codesmith/api/ejs.md +2 -2
  479. package/zh/guides/topic-detail/generator/codesmith/api/fs.md +2 -2
  480. package/zh/guides/topic-detail/generator/codesmith/api/git.md +3 -2
  481. package/zh/guides/topic-detail/generator/codesmith/api/handlebars.md +2 -2
  482. package/zh/guides/topic-detail/generator/codesmith/api/json.md +9 -11
  483. package/zh/guides/topic-detail/generator/codesmith/api/npm.md +4 -2
  484. package/zh/guides/topic-detail/generator/codesmith/introduce.md +20 -7
  485. package/zh/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
  486. package/zh/guides/topic-detail/generator/codesmith/structure.md +13 -10
  487. package/zh/guides/topic-detail/generator/config/common.md +18 -27
  488. package/zh/guides/topic-detail/generator/plugin/abstract.md +1 -1
  489. package/zh/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -0
  490. package/zh/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -4
  491. package/zh/guides/topic-detail/generator/plugin/api/info/locale.md +1 -1
  492. package/zh/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +2 -2
  493. package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +3 -4
  494. package/zh/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
  495. package/zh/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
  496. package/zh/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
  497. package/zh/guides/topic-detail/generator/plugin/develop.md +13 -13
  498. package/zh/guides/topic-detail/generator/plugin/use.md +8 -8
  499. package/zh/guides/topic-detail/generator/project.md +1 -1
  500. package/zh/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
  501. package/zh/guides/topic-detail/micro-frontend/c02-development.md +20 -23
  502. package/zh/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
  503. package/zh/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
  504. package/zh/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
  505. package/zh/guides/topic-detail/model/auto-actions.md +0 -1
  506. package/zh/guides/topic-detail/model/computed-state.md +0 -2
  507. package/zh/guides/topic-detail/model/define-model.md +3 -6
  508. package/zh/guides/topic-detail/model/faq.md +2 -5
  509. package/zh/guides/topic-detail/model/manage-effects.md +2 -5
  510. package/zh/guides/topic-detail/model/model-communicate.md +1 -4
  511. package/zh/guides/topic-detail/model/performance.md +1 -5
  512. package/zh/guides/topic-detail/model/quick-start.md +0 -6
  513. package/zh/guides/topic-detail/model/redux-integration.md +3 -2
  514. package/zh/guides/topic-detail/model/test-model.md +1 -1
  515. package/zh/guides/topic-detail/model/typescript-best-practice.md +13 -14
  516. package/zh/guides/topic-detail/model/use-model.md +14 -12
  517. package/zh/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
  518. package/zh/guides/topic-detail/monorepo/intro.md +0 -1
  519. package/zh/guides/topic-detail/monorepo/sub-project-interface.md +14 -7
  520. package/zh/tutorials/first-app/c01-start.md +2 -2
  521. package/zh/tutorials/first-app/c03-css.md +6 -9
  522. package/zh/tutorials/first-app/c04-routes.md +1 -1
  523. package/zh/tutorials/first-app/c05-loader.md +2 -1
  524. package/zh/tutorials/first-app/c07-container.md +6 -7
  525. package/zh/tutorials/first-app/c08-entries.md +5 -7
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```ts
4
4
  interface Manifest {
5
- getAppList?: ()=> Array<AppInfo>
5
+ getAppList?: () => Array<AppInfo>;
6
6
  }
7
7
  ```
8
8
 
@@ -11,5 +11,5 @@ interface Manifest {
11
11
  Through the `getAppList` configuration, you can customize how to get remote list data
12
12
 
13
13
  ```ts
14
- type GetAppList = ()=> Promise<Array<AppInfo>>;
14
+ type GetAppList = () => Promise<Array<AppInfo>>;
15
15
  ```
@@ -1,4 +1,4 @@
1
- ```javascript title="src/App.tsx"
1
+ ```js title="src/App.tsx"
2
2
  import { defineConfig } from '@modern-js/runtime';
3
3
 
4
4
  defineConfig(App, {
@@ -0,0 +1,19 @@
1
+ ### Node.js
2
+
3
+ Requires [Node.js LTS] (https://github.com/nodejs/Release) and makes sure the Node version is greater than or equal to v16.18.1.
4
+
5
+ Modern.js recommend installing [nvm](https://github.com/nvm-sh/nvm#install--update-script) in the development environment and integrating [script to automatically switch node versions](https://github.com/nvm-sh/nvm#deeper-shell-integration) in the shell.
6
+
7
+ Then whenever there is a `.nvmrc` file with `lts/gallium` in the root directory of the repository, entering the repository will automatically install or switch to the correct Node.js version.
8
+
9
+ ### pnpm
10
+
11
+ It is recommended to use [pnpm](https://pnpm.io/installation) to manage dependencies:
12
+
13
+ ```bash
14
+ npm install -g pnpm
15
+ ```
16
+
17
+ :::note
18
+ Modern.js also supports dependency management with `yarn` and `npm`.
19
+ :::
@@ -1,4 +1,4 @@
1
- :::info information
1
+ :::info information
2
2
  By default, the export package name for all APIs in this section is: `@modern-js/runtime/model`.
3
3
 
4
4
  If Reduck is integrated separately from Modern.js, the export package name is: `@modern-js-reduck/react`.
@@ -13,13 +13,12 @@ Used to configure whether Modern.js enables auto-registration of plugins.
13
13
  By default, installing the plugin requires you to register the plugin manually in the `modern.config.ts`.
14
14
 
15
15
  ```ts title="modern.config.ts"
16
- import AppToolsPlugin, { defineConfig } from '@modern-js/app-tools';
17
- import I18nPlugin from '@modern-js/plugin-i18n';
18
-
19
- default export defineConfig({
20
- plugins: [AppToolsPlugin(), I18nPlugin()]
21
- })
16
+ import appTools, { defineConfig } from '@modern-js/app-tools';
17
+ import i18nPlugin from '@modern-js/plugin-i18n';
22
18
 
19
+ export default defineConfig({
20
+ plugins: [appTools(), i18nPlugin()],
21
+ });
23
22
  ```
24
23
 
25
24
  ### Auto Registration plugin
@@ -29,9 +28,9 @@ In addition to means registration, Modern.js also provides a way to automaticall
29
28
  ```ts title="modern.config.ts"
30
29
  import { defineConfig } from '@modern-js/app-tools';
31
30
 
32
- default export defineConfig({
33
- autoLoadPlugins: true
34
- })
31
+ export default defineConfig({
32
+ autoLoadPlugins: true,
33
+ });
35
34
  ```
36
35
 
37
36
  Modern.js will help you automatically register the plugin by following these steps
@@ -4,8 +4,8 @@ sidebar_label: prefix
4
4
 
5
5
  # bff.prefix
6
6
 
7
- * Type: `string`
8
- * Default: `/api`
7
+ - Type: `string`
8
+ - Default: `/api`
9
9
 
10
10
  :::caution Caution
11
11
  First you need to enable the "BFF" function using [new](/docs/apis/app/commands/new) command.
@@ -22,12 +22,12 @@ The corresponding route for `api/hello.ts` access is `localhost:8080/api/hello`.
22
22
 
23
23
  This configuration option can modify the default route prefix:
24
24
 
25
- ```typescript title="modern.config.ts"
25
+ ```ts title="modern.config.ts"
26
26
  export default defineConfig({
27
27
  bff: {
28
- prefix: '/api-demo'
29
- }
30
- })
28
+ prefix: '/api-demo',
29
+ },
30
+ });
31
31
  ```
32
32
 
33
33
  The corresponding `api/hello.ts` access route is `localhost:8080/api-demo/hello`.
@@ -4,8 +4,8 @@ sidebar_label: proxy
4
4
 
5
5
  # bff.proxy
6
6
 
7
- * Type: `Record<string, string>`
8
- * Default: `{}`
7
+ - Type: `Record<string, string>`
8
+ - Default: `{}`
9
9
 
10
10
  :::caution Caution
11
11
  First you need to enable the "BFF" function using [new](/docs/apis/app/commands/new) command.
@@ -17,15 +17,15 @@ BFF Proxy uses the powerful [http-proxy-middleware](https://github.com/chimurai/
17
17
 
18
18
  Add the following configuration to `modern.server-runtime.config.ts`, you can turn on the proxy:
19
19
 
20
- ```typescript title="modern.server-runtime.config.ts"
20
+ ```ts title="modern.server-runtime.config.ts"
21
21
  import { defineConfig } from '@modern-js/app-tools/server';
22
22
  export default defineConfig({
23
23
  bff: {
24
24
  proxy: {
25
- "/api": "https://cnodejs.org"
26
- }
27
- }
28
- })
25
+ '/api': 'https://cnodejs.org',
26
+ },
27
+ },
28
+ });
29
29
  ```
30
30
 
31
31
  Assuming that the starting Modern.js BFF server's service address is `localhost:8080`, all requests whose path starts with `api` will be intercepted, such as requests sent to `localhost:8080/api/v1/topics` will be proxied to `https://cnodejs.org/api/v1/topics`.
@@ -57,14 +57,13 @@ In the process of project development, because web pages and interface services
57
57
 
58
58
  There are many ways to solve cross-domain problems, and here we use `bff.proxy` to easily solve cross-domain problems.
59
59
 
60
-
61
60
  :::info
62
61
  In BFF proxy mode, if you do not need to write the BFF interface, the API directory can be deleted; at this time, BFF proxy will still be enabled.
63
62
  :::
64
63
 
65
64
  As shown below, in the `modern.server-runtime.config.js`, write the following configuration; we send all web pages to the same domain that request proxies starting with `/api` to another domain's service.
66
65
 
67
- ```typescript title="modern.server-runtime.config.ts"
66
+ ```ts title="modern.server-runtime.config.ts"
68
67
  export default defineServerConfig({
69
68
  bff: {
70
69
  proxy: {
@@ -33,10 +33,10 @@ Below is an example of using the Builder plugin.
33
33
  To use a plugin on npm, you need to install the plugin through the package manager and import it.
34
34
 
35
35
  ```ts title="modern.config.ts"
36
- import MyBuilderPlugin from 'my-builder-plugin';
36
+ import myBuilderPlugin from 'my-builder-plugin';
37
37
 
38
38
  export default defineConfig({
39
- builderPlugins: [MyBuilderPlugin()],
39
+ builderPlugins: [myBuilderPlugin()],
40
40
  });
41
41
  ```
42
42
 
@@ -45,10 +45,10 @@ export default defineConfig({
45
45
  Use the plugin in the local code repository, you can import it directly through the relative path import.
46
46
 
47
47
  ```ts title="modern.config.ts"
48
- import MyBuilderPlugin from './plugin/myBuilderPlugin';
48
+ import myBuilderPlugin from './plugin/myBuilderPlugin';
49
49
 
50
50
  export default defineConfig({
51
- builderPlugins: [MyBuilderPlugin()],
51
+ builderPlugins: [myBuilderPlugin()],
52
52
  });
53
53
  ```
54
54
 
@@ -57,11 +57,11 @@ export default defineConfig({
57
57
  If the plugin provides some custom configuration options, you can pass in the configuration through the parameters of the plugin function.
58
58
 
59
59
  ```ts title="modern.config.ts"
60
- import MyBuilderPlugin from 'my-builder-plugin';
60
+ import myBuilderPlugin from 'my-builder-plugin';
61
61
 
62
62
  export default defineConfig({
63
63
  builderPlugins: [
64
- MyBuilderPlugin({
64
+ myBuilderPlugin({
65
65
  foo: 1,
66
66
  bar: 2,
67
67
  }),
@@ -4,8 +4,8 @@ sidebar_label: microFrontend
4
4
 
5
5
  # deploy.microFrontend
6
6
 
7
- * 类型:`object`
8
- * 默认值:`{enableHtmlEntry: true, externalBasicLibrary: false}`
7
+ - Type: `object`
8
+ - Default: `{ enableHtmlEntry: true, externalBasicLibrary: false }`
9
9
 
10
10
  ```ts
11
11
  interface MicroFrontend {
@@ -27,9 +27,9 @@ Enable the "Micro Frontend" features through `pnpm run new` first.
27
27
  export default defineConfig({
28
28
  deploy: {
29
29
  microFrontend: {
30
- enableHtmlEntry: true
31
- }
32
- }
30
+ enableHtmlEntry: true,
31
+ },
32
+ },
33
33
  });
34
34
  ```
35
35
 
@@ -37,18 +37,16 @@ export default defineConfig({
37
37
 
38
38
  ### enableHtmlEntry
39
39
 
40
- * Type: `boolean`
40
+ - Type: `boolean`
41
+ - Default: `true`
41
42
 
42
- * Default: `true`
43
-
44
- * Whether to enable the html entry, the default is `true`, the sub-application is built into the `HTML` mode, Garfish supports the `html` entry, you can turn on the open option, experience the corresponding features, and directly point the sub-application entry to the HTML entry when it is the HTML entry. Just point to the html of the sub-application
45
- * set it to `false` to indicate that the sub-application is built as `js`. After the sub-application is built as `js`, it cannot run independently. When it is a `JS` entry, point the entry file of the sub-application to the `JS` of the sub-application.
43
+ Whether to enable the html entry, the default is `true`, the sub-application is built into the `HTML` mode, Garfish supports the `html` entry, you can turn on the open option, experience the corresponding features, and directly point the sub-application entry to the HTML entry when it is the HTML entry. Just point to the html of the sub-application
46
44
 
45
+ Set it to `false` to indicate that the sub-application is built as `js`. After the sub-application is built as `js`, it cannot run independently. When it is a `JS` entry, point the entry file of the sub-application to the `JS` of the sub-application.
47
46
 
48
47
  ### externalBasicLibrary
49
48
 
50
- * Type: `boolean`
51
-
52
- * Default: `false`
49
+ - Type: `boolean`
50
+ - Default: `false`
53
51
 
54
52
  Whether the `external` base library, when set to `true`, the current child application will be `external`: `react`, `react-dom`, Modern.js main application will automatically `setExternal` these two base libraries, if other types of frameworks Please add `react`, `react-dom` dependencies through `Garfish.setExternal`.
@@ -4,9 +4,9 @@ sidebar_label: assetPrefix
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/zh/api/config-dev.html#dev-assetprefix)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/en/api/config-dev.html#dev-assetprefix)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/dev/assetPrefix.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/assetPrefix.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: hmr
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [dev.hmr](https://modernjs.dev/builder/zh/api/config-dev.html#dev-hmr)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [dev.hmr](https://modernjs.dev/builder/en/api/config-dev.html#dev-hmr)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/dev/hmr.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/hmr.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: https
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [dev.https](https://modernjs.dev/builder/zh/api/config-dev.html#dev-https)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [dev.https](https://modernjs.dev/builder/en/api/config-dev.html#dev-https)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/dev/https.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/https.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: port
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [dev.port](https://modernjs.dev/builder/zh/api/config-dev.html#dev-port)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [dev.port](https://modernjs.dev/builder/en/api/config-dev.html#dev-port)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/dev/port.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/port.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: progressBar
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [dev.progressBar](https://modernjs.dev/builder/zh/api/config-dev.html#dev-progressbar)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [dev.progressBar](https://modernjs.dev/builder/en/api/config-dev.html#dev-progressbar)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/dev/progressBar.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/progressBar.md'
11
11
 
12
12
  <Main />
@@ -4,7 +4,6 @@ sidebar_label: proxy
4
4
 
5
5
  # dev.proxy
6
6
 
7
-
8
7
  import GlobalProxyConfig from '@site-docs-en/components/global-proxy-config.md'
9
8
 
10
9
  <GlobalProxyConfig />
@@ -4,9 +4,9 @@ sidebar_label: startUrl
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [dev.startUrl](https://modernjs.dev/builder/zh/api/config-dev.html#dev-starturl)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [dev.startUrl](https://modernjs.dev/builder/en/api/config-dev.html#dev-starturl)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/dev/startUrl.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/startUrl.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: lazyCompilation
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/zh/api/config-experiments.html#experiments-lazycompilation)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/en/api/config-experiments.html#experiments-lazycompilation)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/experiments/lazyCompilation.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/experiments/lazyCompilation.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: appIcon
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.appIcon](https://modernjs.dev/builder/zh/api/config-html.html#html-appicon)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.appIcon](https://modernjs.dev/builder/en/api/config-html.html#html-appicon)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/appIcon.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/appIcon.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: crossorigin
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.crossorigin](https://modernjs.dev/builder/zh/api/config-html.html#html-crossorigin)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.crossorigin](https://modernjs.dev/builder/en/api/config-html.html#html-crossorigin)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/crossorigin.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/crossorigin.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: disableHtmlFolder
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/zh/api/config-html.html#html-disablehtmlfolder)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/en/api/config-html.html#html-disablehtmlfolder)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/disableHtmlFolder.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/disableHtmlFolder.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: faviconByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-faviconbyentries)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-faviconbyentries)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/faviconByEntries.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/faviconByEntries.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: favicon
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.favicon](https://modernjs.dev/builder/zh/api/config-html.html#html-favicon)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.favicon](https://modernjs.dev/builder/en/api/config-html.html#html-favicon)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/favicon.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/favicon.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: injectByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.injectByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-injectbyentries)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.injectByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-injectbyentries)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/injectByEntries.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/injectByEntries.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: inject
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.inject](https://modernjs.dev/builder/zh/api/config-html.html#html-inject)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.inject](https://modernjs.dev/builder/en/api/config-html.html#html-inject)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/inject.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/inject.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: metaByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.metaByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-metabyentries)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.metaByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-metabyentries)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/metaByEntries.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/metaByEntries.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: meta
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.meta](https://modernjs.dev/builder/zh/api/config-html.html#html-meta)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.meta](https://modernjs.dev/builder/en/api/config-html.html#html-meta)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/meta.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/meta.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: mountId
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.mountId](https://modernjs.dev/builder/zh/api/config-html.html#html-mountid)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.mountId](https://modernjs.dev/builder/en/api/config-html.html#html-mountid)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/mountId.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/mountId.md'
11
11
 
12
12
  <Main />
@@ -0,0 +1,12 @@
1
+ ---
2
+ title: html.tagsByEntries
3
+ sidebar_label: tagsByEntries
4
+ ---
5
+
6
+ :::info BUILDER
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.tagsByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-tagsbyentries)。
8
+ :::
9
+
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/tagsByEntries.md'
11
+
12
+ <Main />
@@ -0,0 +1,12 @@
1
+ ---
2
+ title: html.tags
3
+ sidebar_label: tags
4
+ ---
5
+
6
+ :::info BUILDER
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.tags](https://modernjs.dev/builder/en/api/config-html.html#html-tags)。
8
+ :::
9
+
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/tags.md'
11
+
12
+ <Main />
@@ -4,9 +4,9 @@ sidebar_label: templateByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.templateByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-templatebyentries)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.templateByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-templatebyentries)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/templateByEntries.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/templateByEntries.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: templateParametersByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.templateParametersByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-templateparametersbyentries)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.templateParametersByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-templateparametersbyentries)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/templateParametersByEntries.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/templateParametersByEntries.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: templateParameters
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.templateParameters](https://modernjs.dev/builder/zh/api/config-html.html#html-templateparameters)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.templateParameters](https://modernjs.dev/builder/en/api/config-html.html#html-templateparameters)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/templateParameters.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/templateParameters.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: template
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.template](https://modernjs.dev/builder/zh/api/config-html.html#html-template)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.template](https://modernjs.dev/builder/en/api/config-html.html#html-template)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/template.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/template.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: titleByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.titleByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-titlebyentries)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.titleByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-titlebyentries)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/titleByEntries.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/titleByEntries.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: title
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [html.title](https://modernjs.dev/builder/zh/api/config-html.html#html-title)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [html.title](https://modernjs.dev/builder/en/api/config-html.html#html-title)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/html/title.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/html/title.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: assetPrefix
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [output.assetPrefix](https://modernjs.dev/builder/zh/api/config-output.html#output-assetprefix)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [output.assetPrefix](https://modernjs.dev/builder/en/api/config-output.html#output-assetprefix)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/output/assetPrefix.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/output/assetPrefix.md'
11
11
 
12
12
  <Main />
@@ -4,9 +4,9 @@ sidebar_label: assetsRetry
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- This configuration is Modern.js Builder configuration, more detail can see [output.assetsRetry](https://modernjs.dev/builder/zh/api/config-output.html#output-assetsretry)。
7
+ This configuration is Modern.js Builder configuration, more detail can see [output.assetsRetry](https://modernjs.dev/builder/en/api/config-output.html#output-assetsretry)。
8
8
  :::
9
9
 
10
- import Main from '@modern-js/builder-doc/en/config/output/assetsRetry.md'
10
+ import Main from '@modern-js/builder-doc/docs/en/config/output/assetsRetry.md'
11
11
 
12
12
  <Main />