@modern-js/main-doc 2.57.1 → 2.58.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (455) hide show
  1. package/docs/en/_meta.json +27 -0
  2. package/docs/en/apis/_meta.json +13 -0
  3. package/docs/en/apis/app/commands.mdx +1 -1
  4. package/docs/en/apis/app/hooks/_meta.json +28 -0
  5. package/docs/en/apis/app/runtime/_meta.json +50 -0
  6. package/docs/en/community/_meta.json +11 -0
  7. package/docs/en/community/blog/2022-0708-updates.md +95 -0
  8. package/docs/en/community/blog/2022-0910-updates.md +80 -0
  9. package/docs/en/community/blog/_meta.json +6 -0
  10. package/docs/en/community/blog/v2-release-note.mdx +246 -0
  11. package/docs/en/components/debug-app.mdx +1 -1
  12. package/docs/en/configure/_meta.json +78 -0
  13. package/docs/en/configure/app/bff/prefix.mdx +1 -1
  14. package/docs/en/configure/app/deploy/microFrontend.mdx +1 -1
  15. package/docs/en/configure/app/dev/asset-prefix.mdx +1 -1
  16. package/docs/en/configure/app/dev/before-start-url.mdx +1 -1
  17. package/docs/en/configure/app/dev/client.mdx +1 -1
  18. package/docs/en/configure/app/dev/hmr.mdx +1 -1
  19. package/docs/en/configure/app/dev/host.mdx +1 -1
  20. package/docs/en/configure/app/dev/https.mdx +1 -1
  21. package/docs/en/configure/app/dev/live-reload.mdx +1 -1
  22. package/docs/en/configure/app/dev/port.mdx +1 -1
  23. package/docs/en/configure/app/dev/progress-bar.mdx +1 -1
  24. package/docs/en/configure/app/dev/proxy.mdx +1 -1
  25. package/docs/en/configure/app/dev/setup-middlewares.mdx +1 -1
  26. package/docs/en/configure/app/dev/start-url.mdx +1 -1
  27. package/docs/en/configure/app/dev/watch-files.mdx +1 -1
  28. package/docs/en/configure/app/dev/write-to-disk.mdx +1 -1
  29. package/docs/en/configure/app/experiments/lazy-compilation.mdx +1 -1
  30. package/docs/en/configure/app/experiments/source-build.mdx +1 -1
  31. package/docs/en/configure/app/html/app-icon.mdx +1 -1
  32. package/docs/en/configure/app/html/crossorigin.mdx +1 -1
  33. package/docs/en/configure/app/html/disable-html-folder.mdx +1 -1
  34. package/docs/en/configure/app/html/favicon-by-entries.mdx +1 -1
  35. package/docs/en/configure/app/html/favicon.mdx +1 -1
  36. package/docs/en/configure/app/html/inject-by-entries.mdx +1 -1
  37. package/docs/en/configure/app/html/inject.mdx +1 -1
  38. package/docs/en/configure/app/html/meta-by-entries.mdx +1 -1
  39. package/docs/en/configure/app/html/meta.mdx +1 -1
  40. package/docs/en/configure/app/html/mount-id.mdx +1 -1
  41. package/docs/en/configure/app/html/script-loading.mdx +1 -1
  42. package/docs/en/configure/app/html/tags-by-entries.mdx +1 -1
  43. package/docs/en/configure/app/html/tags.mdx +1 -1
  44. package/docs/en/configure/app/html/template-by-entries.mdx +1 -1
  45. package/docs/en/configure/app/html/template-parameters-by-entries.mdx +1 -1
  46. package/docs/en/configure/app/html/template-parameters.mdx +1 -1
  47. package/docs/en/configure/app/html/template.mdx +1 -1
  48. package/docs/en/configure/app/html/title-by-entries.mdx +1 -1
  49. package/docs/en/configure/app/html/title.mdx +1 -1
  50. package/docs/en/configure/app/output/asset-prefix.mdx +1 -1
  51. package/docs/en/configure/app/output/assets-retry.mdx +1 -1
  52. package/docs/en/configure/app/output/charset.mdx +1 -1
  53. package/docs/en/configure/app/output/clean-dist-path.mdx +1 -1
  54. package/docs/en/configure/app/output/convert-to-rem.mdx +1 -1
  55. package/docs/en/configure/app/output/copy.mdx +1 -1
  56. package/docs/en/configure/app/output/css-module-local-ident-name.mdx +1 -1
  57. package/docs/en/configure/app/output/css-modules.mdx +1 -1
  58. package/docs/en/configure/app/output/data-uri-limit.mdx +1 -1
  59. package/docs/en/configure/app/output/disable-css-extract.mdx +1 -1
  60. package/docs/en/configure/app/output/disable-css-module-extension.mdx +1 -1
  61. package/docs/en/configure/app/output/disable-filename-hash.mdx +1 -1
  62. package/docs/en/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
  63. package/docs/en/configure/app/output/disable-minimize.mdx +1 -1
  64. package/docs/en/configure/app/output/disable-node-polyfill.mdx +2 -2
  65. package/docs/en/configure/app/output/disable-source-map.mdx +1 -1
  66. package/docs/en/configure/app/output/disable-svgr.mdx +1 -1
  67. package/docs/en/configure/app/output/disable-ts-checker.mdx +1 -1
  68. package/docs/en/configure/app/output/dist-path.mdx +1 -1
  69. package/docs/en/configure/app/output/enable-asset-fallback.mdx +1 -1
  70. package/docs/en/configure/app/output/enable-asset-manifest.mdx +1 -1
  71. package/docs/en/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
  72. package/docs/en/configure/app/output/enable-inline-route-manifests.mdx +1 -1
  73. package/docs/en/configure/app/output/enable-inline-scripts.mdx +1 -1
  74. package/docs/en/configure/app/output/enable-inline-styles.mdx +1 -1
  75. package/docs/en/configure/app/output/enable-latest-decorators.mdx +1 -1
  76. package/docs/en/configure/app/output/externals.mdx +1 -1
  77. package/docs/en/configure/app/output/filename-hash.mdx +1 -1
  78. package/docs/en/configure/app/output/filename.mdx +1 -1
  79. package/docs/en/configure/app/output/legal-comments.mdx +1 -1
  80. package/docs/en/configure/app/output/override-browserslist.mdx +1 -1
  81. package/docs/en/configure/app/output/polyfill.mdx +1 -1
  82. package/docs/en/configure/app/output/splitRouteChunks.mdx +1 -1
  83. package/docs/en/configure/app/output/ssg.mdx +1 -1
  84. package/docs/en/configure/app/output/svg-default-export.mdx +1 -1
  85. package/docs/en/configure/app/output/temp-dir.mdx +1 -1
  86. package/docs/en/configure/app/performance/build-cache.mdx +1 -1
  87. package/docs/en/configure/app/performance/bundle-analyze.mdx +1 -1
  88. package/docs/en/configure/app/performance/chunk-split.mdx +1 -1
  89. package/docs/en/configure/app/performance/dns-prefetch.mdx +1 -1
  90. package/docs/en/configure/app/performance/preconnect.mdx +1 -1
  91. package/docs/en/configure/app/performance/prefetch.mdx +1 -1
  92. package/docs/en/configure/app/performance/preload.mdx +1 -1
  93. package/docs/en/configure/app/performance/print-file-size.mdx +1 -1
  94. package/docs/en/configure/app/performance/profile.mdx +1 -1
  95. package/docs/en/configure/app/performance/remove-console.mdx +1 -1
  96. package/docs/en/configure/app/performance/remove-moment-locale.mdx +1 -1
  97. package/docs/en/configure/app/performance/transform-lodash.mdx +1 -1
  98. package/docs/en/configure/app/runtime/{intro.mdx → 0-intro.mdx} +1 -1
  99. package/docs/en/configure/app/runtime/master-app.mdx +1 -1
  100. package/docs/en/configure/app/runtime/router.mdx +3 -1
  101. package/docs/en/configure/app/runtime/state.mdx +1 -1
  102. package/docs/en/configure/app/security/check-syntax.mdx +1 -1
  103. package/docs/en/configure/app/security/nonce.mdx +1 -1
  104. package/docs/en/configure/app/security/sri.mdx +1 -1
  105. package/docs/en/configure/app/server/base-url.mdx +1 -1
  106. package/docs/en/configure/app/server/enable-framework-ext.mdx +1 -1
  107. package/docs/en/configure/app/server/port.mdx +1 -1
  108. package/docs/en/configure/app/server/public-routes.mdx +1 -1
  109. package/docs/en/configure/app/server/routes.mdx +1 -1
  110. package/docs/en/configure/app/server/ssr-by-entries.mdx +1 -1
  111. package/docs/en/configure/app/server/ssr.mdx +1 -1
  112. package/docs/en/configure/app/source/alias-strategy.mdx +1 -1
  113. package/docs/en/configure/app/source/alias.mdx +1 -1
  114. package/docs/en/configure/app/source/config-dir.mdx +1 -1
  115. package/docs/en/configure/app/source/decorators.mdx +1 -1
  116. package/docs/en/configure/app/source/define.mdx +1 -1
  117. package/docs/en/configure/app/source/disable-default-entries.mdx +1 -1
  118. package/docs/en/configure/app/source/disable-entry-dirs.mdx +1 -1
  119. package/docs/en/configure/app/source/enable-async-entry.mdx +1 -1
  120. package/docs/en/configure/app/source/enable-custom-entry.mdx +1 -1
  121. package/docs/en/configure/app/source/entries-dir.mdx +1 -1
  122. package/docs/en/configure/app/source/entries.mdx +1 -1
  123. package/docs/en/configure/app/source/exclude.mdx +1 -1
  124. package/docs/en/configure/app/source/global-vars.mdx +1 -1
  125. package/docs/en/configure/app/source/include.mdx +1 -1
  126. package/docs/en/configure/app/source/mainEntryName.mdx +1 -1
  127. package/docs/en/configure/app/source/module-scopes.mdx +1 -1
  128. package/docs/en/configure/app/source/pre-entry.mdx +1 -1
  129. package/docs/en/configure/app/source/resolve-extension-prefix.mdx +1 -1
  130. package/docs/en/configure/app/source/resolve-main-fields.mdx +1 -1
  131. package/docs/en/configure/app/source/transform-import.mdx +1 -1
  132. package/docs/en/configure/app/tools/autoprefixer.mdx +1 -1
  133. package/docs/en/configure/app/tools/babel.mdx +1 -1
  134. package/docs/en/configure/app/tools/bundler-chain.mdx +1 -1
  135. package/docs/en/configure/app/tools/css-extract.mdx +1 -1
  136. package/docs/en/configure/app/tools/css-loader.mdx +1 -1
  137. package/docs/en/configure/app/tools/dev-server.mdx +1 -1
  138. package/docs/en/configure/app/tools/esbuild.mdx +1 -1
  139. package/docs/en/configure/app/tools/html-plugin.mdx +1 -1
  140. package/docs/en/configure/app/tools/less.mdx +1 -1
  141. package/docs/en/configure/app/tools/minify-css.mdx +1 -1
  142. package/docs/en/configure/app/tools/postcss.mdx +1 -1
  143. package/docs/en/configure/app/tools/pug.mdx +1 -1
  144. package/docs/en/configure/app/tools/rspack.mdx +1 -1
  145. package/docs/en/configure/app/tools/sass.mdx +1 -1
  146. package/docs/en/configure/app/tools/style-loader.mdx +1 -1
  147. package/docs/en/configure/app/tools/styled-components.mdx +1 -1
  148. package/docs/en/configure/app/tools/swc.mdx +1 -1
  149. package/docs/en/configure/app/tools/tailwindcss.mdx +1 -1
  150. package/docs/en/configure/app/tools/terser.mdx +1 -1
  151. package/docs/en/configure/app/tools/ts-checker.mdx +1 -1
  152. package/docs/en/configure/app/tools/ts-loader.mdx +1 -1
  153. package/docs/en/configure/app/tools/webpack-chain.mdx +1 -1
  154. package/docs/en/configure/app/tools/webpack.mdx +1 -1
  155. package/docs/en/guides/_meta.json +33 -0
  156. package/docs/en/guides/advanced-features/_meta.json +26 -0
  157. package/docs/en/guides/advanced-features/bff/_meta.json +6 -0
  158. package/docs/en/guides/advanced-features/optimize-bundle.mdx +1 -1
  159. package/docs/en/guides/advanced-features/rsbuild-plugin.mdx +17 -17
  160. package/docs/en/guides/advanced-features/ssr/_meta.json +5 -0
  161. package/docs/en/guides/basic-features/_meta.json +22 -0
  162. package/docs/en/guides/basic-features/data/_meta.json +4 -0
  163. package/docs/en/guides/concept/_meta.json +4 -0
  164. package/docs/en/guides/{deprecat.md → deprecated.md} +1 -1
  165. package/docs/en/guides/get-started/_meta.json +7 -0
  166. package/docs/en/guides/get-started/quick-start.mdx +2 -2
  167. package/docs/en/guides/get-started/upgrade.mdx +1 -1
  168. package/docs/en/guides/topic-detail/_meta.json +26 -0
  169. package/docs/en/guides/topic-detail/framework-plugin/_meta.json +10 -0
  170. package/docs/en/guides/topic-detail/framework-plugin/hook-list.mdx +14 -22
  171. package/docs/en/guides/topic-detail/generator/_meta.json +17 -0
  172. package/docs/en/guides/topic-detail/generator/create/_meta.json +5 -0
  173. package/docs/en/guides/topic-detail/generator/new/_meta.json +5 -0
  174. package/docs/en/guides/topic-detail/generator/plugin/_meta.json +11 -0
  175. package/docs/en/guides/topic-detail/model/_meta.json +14 -0
  176. package/docs/en/guides/troubleshooting/_meta.json +6 -0
  177. package/docs/en/guides/troubleshooting/dependencies.mdx +4 -4
  178. package/docs/en/tutorials/_meta.json +17 -0
  179. package/docs/zh/_meta.json +27 -0
  180. package/docs/zh/apis/_meta.json +13 -0
  181. package/docs/zh/apis/app/commands.mdx +1 -1
  182. package/docs/zh/apis/app/hooks/_meta.json +28 -0
  183. package/docs/zh/apis/app/runtime/_meta.json +50 -0
  184. package/docs/zh/community/_meta.json +11 -0
  185. package/docs/zh/community/blog/_meta.json +6 -0
  186. package/docs/zh/community/blog/v2-release-note.mdx +1 -2
  187. package/docs/zh/components/debug-app.mdx +1 -1
  188. package/docs/zh/configure/_meta.json +78 -0
  189. package/docs/zh/configure/app/auto-load-plugin.mdx +1 -1
  190. package/docs/zh/configure/app/bff/prefix.mdx +1 -1
  191. package/docs/zh/configure/app/builder-plugins.mdx +1 -1
  192. package/docs/zh/configure/app/deploy/microFrontend.mdx +1 -1
  193. package/docs/zh/configure/app/dev/asset-prefix.mdx +1 -1
  194. package/docs/zh/configure/app/dev/before-start-url.mdx +1 -1
  195. package/docs/zh/configure/app/dev/client.mdx +1 -1
  196. package/docs/zh/configure/app/dev/hmr.mdx +1 -1
  197. package/docs/zh/configure/app/dev/host.mdx +1 -1
  198. package/docs/zh/configure/app/dev/https.mdx +1 -1
  199. package/docs/zh/configure/app/dev/live-reload.mdx +1 -1
  200. package/docs/zh/configure/app/dev/port.mdx +1 -1
  201. package/docs/zh/configure/app/dev/progress-bar.mdx +1 -1
  202. package/docs/zh/configure/app/dev/proxy.mdx +1 -1
  203. package/docs/zh/configure/app/dev/setup-middlewares.mdx +1 -1
  204. package/docs/zh/configure/app/dev/start-url.mdx +1 -1
  205. package/docs/zh/configure/app/dev/watch-files.mdx +1 -1
  206. package/docs/zh/configure/app/dev/write-to-disk.mdx +1 -1
  207. package/docs/zh/configure/app/experiments/lazy-compilation.mdx +1 -1
  208. package/docs/zh/configure/app/experiments/source-build.mdx +1 -1
  209. package/docs/zh/configure/app/html/app-icon.mdx +1 -1
  210. package/docs/zh/configure/app/html/crossorigin.mdx +1 -1
  211. package/docs/zh/configure/app/html/disable-html-folder.mdx +1 -1
  212. package/docs/zh/configure/app/html/favicon-by-entries.mdx +1 -1
  213. package/docs/zh/configure/app/html/favicon.mdx +1 -1
  214. package/docs/zh/configure/app/html/inject-by-entries.mdx +1 -1
  215. package/docs/zh/configure/app/html/inject.mdx +1 -1
  216. package/docs/zh/configure/app/html/meta-by-entries.mdx +1 -1
  217. package/docs/zh/configure/app/html/meta.mdx +1 -1
  218. package/docs/zh/configure/app/html/mount-id.mdx +1 -1
  219. package/docs/zh/configure/app/html/script-loading.mdx +1 -1
  220. package/docs/zh/configure/app/html/tags-by-entries.mdx +1 -1
  221. package/docs/zh/configure/app/html/tags.mdx +1 -1
  222. package/docs/zh/configure/app/html/template-by-entries.mdx +1 -1
  223. package/docs/zh/configure/app/html/template-parameters-by-entries.mdx +1 -1
  224. package/docs/zh/configure/app/html/template-parameters.mdx +1 -1
  225. package/docs/zh/configure/app/html/template.mdx +1 -1
  226. package/docs/zh/configure/app/html/title-by-entries.mdx +1 -1
  227. package/docs/zh/configure/app/html/title.mdx +1 -1
  228. package/docs/zh/configure/app/output/asset-prefix.mdx +1 -1
  229. package/docs/zh/configure/app/output/assets-retry.mdx +1 -1
  230. package/docs/zh/configure/app/output/charset.mdx +1 -1
  231. package/docs/zh/configure/app/output/clean-dist-path.mdx +1 -1
  232. package/docs/zh/configure/app/output/convert-to-rem.mdx +1 -1
  233. package/docs/zh/configure/app/output/copy.mdx +1 -1
  234. package/docs/zh/configure/app/output/css-module-local-ident-name.mdx +1 -1
  235. package/docs/zh/configure/app/output/css-modules.mdx +1 -1
  236. package/docs/zh/configure/app/output/data-uri-limit.mdx +1 -1
  237. package/docs/zh/configure/app/output/disable-css-extract.mdx +1 -1
  238. package/docs/zh/configure/app/output/disable-css-module-extension.mdx +1 -1
  239. package/docs/zh/configure/app/output/disable-filename-hash.mdx +1 -1
  240. package/docs/zh/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
  241. package/docs/zh/configure/app/output/disable-minimize.mdx +1 -1
  242. package/docs/zh/configure/app/output/disable-node-polyfill.mdx +2 -2
  243. package/docs/zh/configure/app/output/disable-source-map.mdx +1 -1
  244. package/docs/zh/configure/app/output/disable-svgr.mdx +1 -1
  245. package/docs/zh/configure/app/output/disable-ts-checker.mdx +1 -1
  246. package/docs/zh/configure/app/output/dist-path.mdx +1 -1
  247. package/docs/zh/configure/app/output/enable-asset-fallback.mdx +1 -1
  248. package/docs/zh/configure/app/output/enable-asset-manifest.mdx +1 -1
  249. package/docs/zh/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
  250. package/docs/zh/configure/app/output/enable-inline-route-manifests.mdx +1 -1
  251. package/docs/zh/configure/app/output/enable-inline-scripts.mdx +1 -1
  252. package/docs/zh/configure/app/output/enable-inline-styles.mdx +1 -1
  253. package/docs/zh/configure/app/output/enable-latest-decorators.mdx +1 -1
  254. package/docs/zh/configure/app/output/externals.mdx +1 -1
  255. package/docs/zh/configure/app/output/filename-hash.mdx +1 -1
  256. package/docs/zh/configure/app/output/filename.mdx +1 -1
  257. package/docs/zh/configure/app/output/legal-comments.mdx +1 -1
  258. package/docs/zh/configure/app/output/override-browserslist.mdx +1 -1
  259. package/docs/zh/configure/app/output/polyfill.mdx +1 -1
  260. package/docs/zh/configure/app/output/splitRouteChunks.mdx +1 -1
  261. package/docs/zh/configure/app/output/ssg.mdx +1 -1
  262. package/docs/zh/configure/app/output/svg-default-export.mdx +1 -1
  263. package/docs/zh/configure/app/output/temp-dir.mdx +1 -1
  264. package/docs/zh/configure/app/performance/build-cache.mdx +1 -1
  265. package/docs/zh/configure/app/performance/bundle-analyze.mdx +1 -1
  266. package/docs/zh/configure/app/performance/chunk-split.mdx +1 -1
  267. package/docs/zh/configure/app/performance/dns-prefetch.mdx +1 -1
  268. package/docs/zh/configure/app/performance/preconnect.mdx +1 -1
  269. package/docs/zh/configure/app/performance/prefetch.mdx +1 -1
  270. package/docs/zh/configure/app/performance/preload.mdx +1 -1
  271. package/docs/zh/configure/app/performance/print-file-size.mdx +1 -1
  272. package/docs/zh/configure/app/performance/profile.mdx +1 -1
  273. package/docs/zh/configure/app/performance/remove-console.mdx +1 -1
  274. package/docs/zh/configure/app/performance/remove-moment-locale.mdx +1 -1
  275. package/docs/zh/configure/app/performance/transform-lodash.mdx +1 -1
  276. package/docs/zh/configure/app/plugins.mdx +1 -1
  277. package/docs/zh/configure/app/runtime/{intro.mdx → 0-intro.mdx} +1 -1
  278. package/docs/zh/configure/app/runtime/master-app.mdx +1 -1
  279. package/docs/zh/configure/app/runtime/router.mdx +3 -1
  280. package/docs/zh/configure/app/runtime/state.mdx +1 -1
  281. package/docs/zh/configure/app/security/check-syntax.mdx +1 -1
  282. package/docs/zh/configure/app/security/nonce.mdx +1 -1
  283. package/docs/zh/configure/app/security/sri.mdx +1 -1
  284. package/docs/zh/configure/app/server/base-url.mdx +1 -1
  285. package/docs/zh/configure/app/server/enable-framework-ext.mdx +1 -1
  286. package/docs/zh/configure/app/server/port.mdx +1 -1
  287. package/docs/zh/configure/app/server/public-routes.mdx +1 -1
  288. package/docs/zh/configure/app/server/routes.mdx +1 -1
  289. package/docs/zh/configure/app/server/ssr-by-entries.mdx +1 -1
  290. package/docs/zh/configure/app/server/ssr.mdx +1 -1
  291. package/docs/zh/configure/app/source/alias-strategy.mdx +1 -1
  292. package/docs/zh/configure/app/source/alias.mdx +1 -1
  293. package/docs/zh/configure/app/source/config-dir.mdx +1 -1
  294. package/docs/zh/configure/app/source/decorators.mdx +1 -1
  295. package/docs/zh/configure/app/source/define.mdx +1 -1
  296. package/docs/zh/configure/app/source/disable-default-entries.mdx +1 -1
  297. package/docs/zh/configure/app/source/disable-entry-dirs.mdx +1 -1
  298. package/docs/zh/configure/app/source/enable-async-entry.mdx +1 -1
  299. package/docs/zh/configure/app/source/enable-custom-entry.mdx +1 -1
  300. package/docs/zh/configure/app/source/entries-dir.mdx +1 -1
  301. package/docs/zh/configure/app/source/entries.mdx +1 -1
  302. package/docs/zh/configure/app/source/exclude.mdx +1 -1
  303. package/docs/zh/configure/app/source/global-vars.mdx +1 -1
  304. package/docs/zh/configure/app/source/include.mdx +1 -1
  305. package/docs/zh/configure/app/source/mainEntryName.mdx +1 -1
  306. package/docs/zh/configure/app/source/module-scopes.mdx +1 -1
  307. package/docs/zh/configure/app/source/pre-entry.mdx +1 -1
  308. package/docs/zh/configure/app/source/resolve-extension-prefix.mdx +1 -1
  309. package/docs/zh/configure/app/source/resolve-main-fields.mdx +1 -1
  310. package/docs/zh/configure/app/source/transform-import.mdx +1 -1
  311. package/docs/zh/configure/app/tools/autoprefixer.mdx +1 -1
  312. package/docs/zh/configure/app/tools/babel.mdx +1 -1
  313. package/docs/zh/configure/app/tools/bundler-chain.mdx +1 -1
  314. package/docs/zh/configure/app/tools/css-extract.mdx +1 -1
  315. package/docs/zh/configure/app/tools/css-loader.mdx +1 -1
  316. package/docs/zh/configure/app/tools/dev-server.mdx +1 -1
  317. package/docs/zh/configure/app/tools/esbuild.mdx +1 -1
  318. package/docs/zh/configure/app/tools/html-plugin.mdx +1 -1
  319. package/docs/zh/configure/app/tools/less.mdx +1 -1
  320. package/docs/zh/configure/app/tools/minify-css.mdx +1 -1
  321. package/docs/zh/configure/app/tools/postcss.mdx +1 -1
  322. package/docs/zh/configure/app/tools/pug.mdx +1 -1
  323. package/docs/zh/configure/app/tools/rspack.mdx +1 -1
  324. package/docs/zh/configure/app/tools/sass.mdx +1 -1
  325. package/docs/zh/configure/app/tools/style-loader.mdx +1 -1
  326. package/docs/zh/configure/app/tools/styled-components.mdx +1 -1
  327. package/docs/zh/configure/app/tools/swc.mdx +1 -1
  328. package/docs/zh/configure/app/tools/tailwindcss.mdx +1 -1
  329. package/docs/zh/configure/app/tools/terser.mdx +1 -1
  330. package/docs/zh/configure/app/tools/ts-checker.mdx +1 -1
  331. package/docs/zh/configure/app/tools/ts-loader.mdx +1 -1
  332. package/docs/zh/configure/app/tools/webpack-chain.mdx +1 -1
  333. package/docs/zh/configure/app/tools/webpack.mdx +1 -1
  334. package/docs/zh/guides/_meta.json +33 -0
  335. package/docs/zh/guides/advanced-features/_meta.json +26 -0
  336. package/docs/zh/guides/advanced-features/bff/_meta.json +6 -0
  337. package/docs/zh/guides/advanced-features/optimize-bundle.mdx +1 -1
  338. package/docs/zh/guides/advanced-features/rsbuild-plugin.mdx +17 -17
  339. package/docs/zh/guides/advanced-features/ssr/_meta.json +5 -0
  340. package/docs/zh/guides/basic-features/_meta.json +22 -0
  341. package/docs/zh/guides/basic-features/data/_meta.json +4 -0
  342. package/docs/zh/guides/basic-features/mock.mdx +1 -1
  343. package/docs/zh/guides/concept/_meta.json +4 -0
  344. package/docs/zh/guides/get-started/_meta.json +7 -0
  345. package/docs/zh/guides/get-started/quick-start.mdx +2 -2
  346. package/docs/zh/guides/get-started/upgrade.mdx +1 -1
  347. package/docs/zh/guides/topic-detail/_meta.json +26 -0
  348. package/docs/zh/guides/topic-detail/framework-plugin/_meta.json +10 -0
  349. package/docs/zh/guides/topic-detail/framework-plugin/hook-list.mdx +11 -19
  350. package/docs/zh/guides/topic-detail/generator/_meta.json +17 -0
  351. package/docs/zh/guides/topic-detail/generator/create/_meta.json +5 -0
  352. package/docs/zh/guides/topic-detail/generator/new/_meta.json +5 -0
  353. package/docs/zh/guides/topic-detail/generator/plugin/_meta.json +11 -0
  354. package/docs/zh/guides/topic-detail/model/_meta.json +14 -0
  355. package/docs/zh/guides/troubleshooting/_meta.json +6 -0
  356. package/docs/zh/guides/troubleshooting/dependencies.mdx +4 -4
  357. package/docs/zh/tutorials/_meta.json +17 -0
  358. package/i18n.json +110 -0
  359. package/package.json +9 -10
  360. package/rspress.config.ts +3 -20
  361. package/docs/en/apis/app/hooks/_category_.json +0 -5
  362. package/docs/en/apis/app/hooks/api/_category_.json +0 -4
  363. package/docs/en/apis/app/hooks/config/_category_.json +0 -4
  364. package/docs/en/apis/app/hooks/server/_category_.json +0 -4
  365. package/docs/en/apis/app/hooks/src/_category_.json +0 -4
  366. package/docs/en/apis/app/runtime/_category_.json +0 -5
  367. package/docs/en/apis/app/runtime/app/_category_.json +0 -4
  368. package/docs/en/apis/app/runtime/bff/_category_.json +0 -4
  369. package/docs/en/apis/app/runtime/core/_category_.json +0 -5
  370. package/docs/en/apis/app/runtime/model/_category_.json +0 -4
  371. package/docs/en/apis/app/runtime/router/_category_.json +0 -4
  372. package/docs/en/apis/app/runtime/ssr/_category_.json +0 -4
  373. package/docs/en/apis/app/runtime/utility/_category_.json +0 -4
  374. package/docs/en/apis/app/runtime/web-server/_category_.json +0 -4
  375. package/docs/en/community/blog/_category_.json +0 -6
  376. package/docs/en/configure/app/bff/_category_.json +0 -4
  377. package/docs/en/configure/app/deploy/_category_.json +0 -4
  378. package/docs/en/configure/app/dev/_category_.json +0 -4
  379. package/docs/en/configure/app/experiments/_category_.json +0 -4
  380. package/docs/en/configure/app/html/_category_.json +0 -4
  381. package/docs/en/configure/app/output/_category_.json +0 -4
  382. package/docs/en/configure/app/performance/_category_.json +0 -4
  383. package/docs/en/configure/app/runtime/_category_.json +0 -4
  384. package/docs/en/configure/app/security/_category_.json +0 -4
  385. package/docs/en/configure/app/server/_category_.json +0 -4
  386. package/docs/en/configure/app/source/_category_.json +0 -4
  387. package/docs/en/configure/app/tools/_category_.json +0 -4
  388. package/docs/en/guides/advanced-features/_category_.json +0 -5
  389. package/docs/en/guides/advanced-features/bff/_category_.json +0 -8
  390. package/docs/en/guides/advanced-features/ssr/_category_.json +0 -8
  391. package/docs/en/guides/basic-features/_category_.json +0 -5
  392. package/docs/en/guides/basic-features/data/_category_.json +0 -4
  393. package/docs/en/guides/concept/_category_.json +0 -5
  394. package/docs/en/guides/get-started/_category_.json +0 -5
  395. package/docs/en/guides/topic-detail/_category_.json +0 -5
  396. package/docs/en/guides/topic-detail/framework-plugin/_category_.json +0 -4
  397. package/docs/en/guides/topic-detail/generator/_category_.json +0 -4
  398. package/docs/en/guides/topic-detail/generator/create/_category_.json +0 -4
  399. package/docs/en/guides/topic-detail/generator/new/_category_.json +0 -4
  400. package/docs/en/guides/topic-detail/generator/plugin/_category_.json +0 -4
  401. package/docs/en/guides/topic-detail/generator/plugin/api/_category_.json +0 -4
  402. package/docs/en/guides/topic-detail/micro-frontend/_category_.json +0 -4
  403. package/docs/en/guides/topic-detail/model/_category_.json +0 -4
  404. package/docs/en/guides/troubleshooting/_category_.json +0 -5
  405. package/docs/en/tutorials/examples/_category_.json +0 -5
  406. package/docs/en/tutorials/first-app/_category_.json +0 -5
  407. package/docs/en/tutorials/foundations/_category_.json +0 -5
  408. package/docs/zh/apis/app/hooks/_category_.json +0 -5
  409. package/docs/zh/apis/app/hooks/api/_category_.json +0 -4
  410. package/docs/zh/apis/app/hooks/config/_category_.json +0 -4
  411. package/docs/zh/apis/app/hooks/server/_category_.json +0 -4
  412. package/docs/zh/apis/app/hooks/src/_category_.json +0 -4
  413. package/docs/zh/apis/app/runtime/_category_.json +0 -5
  414. package/docs/zh/apis/app/runtime/app/_category_.json +0 -4
  415. package/docs/zh/apis/app/runtime/bff/_category_.json +0 -4
  416. package/docs/zh/apis/app/runtime/core/_category_.json +0 -4
  417. package/docs/zh/apis/app/runtime/model/_category_.json +0 -4
  418. package/docs/zh/apis/app/runtime/router/_category_.json +0 -4
  419. package/docs/zh/apis/app/runtime/ssr/_category_.json +0 -4
  420. package/docs/zh/apis/app/runtime/utility/_category_.json +0 -4
  421. package/docs/zh/apis/app/runtime/web-server/_category_.json +0 -4
  422. package/docs/zh/community/blog/_category_.json +0 -6
  423. package/docs/zh/configure/app/bff/_category_.json +0 -4
  424. package/docs/zh/configure/app/deploy/_category_.json +0 -4
  425. package/docs/zh/configure/app/dev/_category_.json +0 -4
  426. package/docs/zh/configure/app/experiments/_category_.json +0 -4
  427. package/docs/zh/configure/app/html/_category_.json +0 -4
  428. package/docs/zh/configure/app/output/_category_.json +0 -4
  429. package/docs/zh/configure/app/performance/_category_.json +0 -4
  430. package/docs/zh/configure/app/runtime/_category_.json +0 -4
  431. package/docs/zh/configure/app/security/_category_.json +0 -4
  432. package/docs/zh/configure/app/server/_category_.json +0 -4
  433. package/docs/zh/configure/app/source/_category_.json +0 -4
  434. package/docs/zh/configure/app/tools/_category_.json +0 -4
  435. package/docs/zh/guides/advanced-features/_category_.json +0 -5
  436. package/docs/zh/guides/advanced-features/bff/_category_.json +0 -8
  437. package/docs/zh/guides/advanced-features/ssr/_category_.json +0 -8
  438. package/docs/zh/guides/basic-features/_category_.json +0 -5
  439. package/docs/zh/guides/basic-features/data/_category_.json +0 -4
  440. package/docs/zh/guides/concept/_category_.json +0 -5
  441. package/docs/zh/guides/get-started/_category_.json +0 -5
  442. package/docs/zh/guides/topic-detail/_category_.json +0 -5
  443. package/docs/zh/guides/topic-detail/framework-plugin/_category_.json +0 -4
  444. package/docs/zh/guides/topic-detail/generator/_category_.json +0 -4
  445. package/docs/zh/guides/topic-detail/generator/create/_category_.json +0 -4
  446. package/docs/zh/guides/topic-detail/generator/new/_category_.json +0 -4
  447. package/docs/zh/guides/topic-detail/generator/plugin/_category_.json +0 -4
  448. package/docs/zh/guides/topic-detail/generator/plugin/api/_category_.json +0 -4
  449. package/docs/zh/guides/topic-detail/micro-frontend/_category_.json +0 -4
  450. package/docs/zh/guides/topic-detail/model/_category_.json +0 -4
  451. package/docs/zh/guides/troubleshooting/_category_.json +0 -5
  452. package/docs/zh/tutorials/examples/_category_.json +0 -5
  453. package/docs/zh/tutorials/first-app/_category_.json +0 -5
  454. package/docs/zh/tutorials/foundations/_category_.json +0 -5
  455. /package/docs/zh/guides/{deprecat.md → deprecated.md} +0 -0
@@ -28,26 +28,26 @@ If your current version is lower than MAJOR_VERSION.46.0, you can upgrade by exe
28
28
 
29
29
  Here are the official Rsbuild plugins built into Modern.js:
30
30
 
31
- | Plugin Name | Introduce | Modern.js Link |
32
- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
33
- | [React Plugin](https://rsbuild.dev/plugins/list/plugin-react) | Provides support for React | - |
34
- | [SVGR Plugin](https://rsbuild.dev/plugins/list/plugin-svgr) | Support convert SVG to React components | [output.disableSvgr](/configure/app/output/disable-svgr)<br />[output.svgDefaultExport](/configure/app/output/svg-default-export) |
35
- | [Styled Components Plugin](https://rsbuild.dev/plugins/list/plugin-styled-components) | Provides compile-time support for styled-components | [tools.styledComponents](/configure/app/tools/styled-components.html) |
36
- | [Assets Retry Plugin](https://rsbuild.dev/plugins/list/plugin-assets-retry) | Used to automatically resend requests when static assets fail to load | [output.assetsRetry](/configure/app/output/assets-retry.html) |
37
- | [Type Check Plugin](https://rsbuild.dev/plugins/list/plugin-type-check) | Used to run TypeScript type checker on a separate process | [output.disableTsChecker](/configure/app/output/disable-ts-checker.html)<br />[tools.tsChecker](/configure/app/tools/ts-checker.html) |
38
- | [Node Polyfill Plugin](https://rsbuild.dev/plugins/list/plugin-node-polyfill) | Used to inject polyfills of Node core modules in the browser side | [output.disableNodePolyfill](/configure/app/output/disable-node-polyfill.html) |
39
- | [Source Build Plugin](https://rsbuild.dev/plugins/list/plugin-source-build) | Supports referencing source code from other subdirectories | [experiments.sourceBuild](/configure/app/experiments/source-build.html) |
40
- | [Check Syntax Plugin](https://rsbuild.dev/plugins/list/plugin-check-syntax) | Used to analyze the syntax compatibility of artifacts | [security.checkSyntax](/configure/app/security/check-syntax.html) |
41
- | [CSS Minimizer Plugin](https://rsbuild.dev/plugins/list/plugin-css-minimizer) | Used to customize CSS minimizer, switch to [cssnano](https://cssnano.co/) or other tools for CSS compression | [tools.minifyCss](/configure/app/tools/minify-css.html) |
42
- | [Pug Plugin](https://rsbuild.dev/plugins/list/plugin-pug) | Provides support for the Pug template engine | [tools.pug](/configure/app/tools/pug.html) |
43
- | [Rem Plugin](https://rsbuild.dev/plugins/list/plugin-rem) | Implements the rem adaptive layout for mobile pages | [output.convertToRem](/configure/app/output/convert-to-rem.html) |
44
- | [YAML Plugin](https://rsbuild.dev/plugins/list/plugin-yaml) | Used to import YAML files and convert them into JavaScript objects | [TOML File](/guides/basic-features/json-files.html#toml-file) |
45
- | [TOML Plugin](https://rsbuild.dev/plugins/list/plugin-toml) | Used to import TOML files and convert them into JavaScript objects | [YAML File](/guides/basic-features/json-files.html#yaml-file) |
31
+ | Plugin Name | Introduce | Modern.js Link |
32
+ | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
33
+ | [React Plugin](https://rsbuild.dev/plugins/list/plugin-react) | Provides support for React | - |
34
+ | [SVGR Plugin](https://rsbuild.dev/plugins/list/plugin-svgr) | Support convert SVG to React components | [output.disableSvgr](/configure/app/output/disable-svgr)<br />[output.svgDefaultExport](/configure/app/output/svg-default-export) |
35
+ | [Styled Components Plugin](https://github.com/rspack-contrib/rsbuild-plugin-styled-components) | Provides compile-time support for styled-components | [tools.styledComponents](/configure/app/tools/styled-components.html) |
36
+ | [Assets Retry Plugin](https://rsbuild.dev/plugins/list/plugin-assets-retry) | Used to automatically resend requests when static assets fail to load | [output.assetsRetry](/configure/app/output/assets-retry.html) |
37
+ | [Type Check Plugin](https://rsbuild.dev/plugins/list/plugin-type-check) | Used to run TypeScript type checker on a separate process | [output.disableTsChecker](/configure/app/output/disable-ts-checker.html)<br />[tools.tsChecker](/configure/app/tools/ts-checker.html) |
38
+ | [Node Polyfill Plugin](https://github.com/rspack-contrib/rsbuild-plugin-node-polyfill) | Used to inject polyfills of Node core modules in the browser side | [output.disableNodePolyfill](/configure/app/output/disable-node-polyfill.html) |
39
+ | [Source Build Plugin](https://github.com/rspack-contrib/rsbuild-plugin-source-build) | Supports referencing source code from other subdirectories | [experiments.sourceBuild](/configure/app/experiments/source-build.html) |
40
+ | [Check Syntax Plugin](https://github.com/rspack-contrib/rsbuild-plugin-check-syntax) | Used to analyze the syntax compatibility of artifacts | [security.checkSyntax](/configure/app/security/check-syntax.html) |
41
+ | [CSS Minimizer Plugin](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) | Used to customize CSS minimizer, switch to [cssnano](https://cssnano.co/) or other tools for CSS compression | [tools.minifyCss](/configure/app/tools/minify-css.html) |
42
+ | [Pug Plugin](https://github.com/rspack-contrib/rsbuild-plugin-pug) | Provides support for the Pug template engine | [tools.pug](/configure/app/tools/pug.html) |
43
+ | [Rem Plugin](https://github.com/rspack-contrib/rsbuild-plugin-rem) | Implements the rem adaptive layout for mobile pages | [output.convertToRem](/configure/app/output/convert-to-rem.html) |
44
+ | [YAML Plugin](https://github.com/rspack-contrib/rsbuild-plugin-yaml) | Used to import YAML files and convert them into JavaScript objects | [TOML File](/guides/basic-features/json-files.html#toml-file) |
45
+ | [TOML Plugin](https://github.com/rspack-contrib/rsbuild-plugin-toml) | Used to import TOML files and convert them into JavaScript objects | [YAML File](/guides/basic-features/json-files.html#yaml-file) |
46
46
 
47
47
  ### Un-builtin Plugins
48
48
 
49
49
  Here are the official Rsbuild plugins that are not built into Modern.js:
50
50
 
51
- - [Image Compress Plugin](https://rsbuild.dev/plugins/list/plugin-image-compress): Compress the image resources used in the project.
51
+ - [Image Compress Plugin](https://github.com/rspack-contrib/rsbuild-plugin-image-compress): Compress the image resources used in the project.
52
52
  - [Stylus Plugin](https://rsbuild.dev/plugins/list/plugin-stylus): Use Stylus as the CSS preprocessor.
53
- - [UMD Plugin](https://rsbuild.dev/plugins/list/plugin-umd): Used to build outputs in UMD format.
53
+ - [UMD Plugin](https://github.com/rspack-contrib/rsbuild-plugin-umd): Used to build outputs in UMD format.
@@ -0,0 +1,5 @@
1
+ [
2
+ "usage",
3
+ "stream",
4
+ "cache"
5
+ ]
@@ -0,0 +1,22 @@
1
+ [
2
+ "css",
3
+ "routes",
4
+ {
5
+ "type": "dir",
6
+ "name": "data",
7
+ "label": "data-solution",
8
+ "collapsed": true
9
+ },
10
+ "alias",
11
+ "mock",
12
+ "proxy",
13
+ "env-vars",
14
+ "html",
15
+ "output-files",
16
+ "static-assets",
17
+ "svg-assets",
18
+ "json-files",
19
+ "wasm-assets",
20
+ "css-modules",
21
+ "deploy"
22
+ ]
@@ -0,0 +1,4 @@
1
+ [
2
+ "data-fetch",
3
+ "data-write"
4
+ ]
@@ -0,0 +1,4 @@
1
+ [
2
+ "entries",
3
+ "builder"
4
+ ]
@@ -2,7 +2,7 @@
2
2
  sidebar_position: 10
3
3
  ---
4
4
 
5
- # Deprecated Functions
5
+ # Deprecated
6
6
 
7
7
  This article will introduce the functions that were previously supported by Modern.js, but have now been deprecated, along with the recommended alternatives.
8
8
 
@@ -0,0 +1,7 @@
1
+ [
2
+ "introduction",
3
+ "quick-start",
4
+ "upgrade",
5
+ "glossary",
6
+ "tech-stack"
7
+ ]
@@ -93,7 +93,7 @@ $ pnpm run build
93
93
 
94
94
  > modern build
95
95
 
96
- Modern.js Framework v2.55.0
96
+ Modern.js Framework
97
97
 
98
98
  info Starting production build...
99
99
  info Type checker is enabled. It may take some time.
@@ -141,7 +141,7 @@ $ pnpm run serve
141
141
 
142
142
  > modern serve
143
143
 
144
- Modern.js Framework v2.55.0
144
+ Modern.js Framework
145
145
 
146
146
  info Starting production server...
147
147
 
@@ -18,7 +18,7 @@ import { PackageManagerTabs } from '@theme';
18
18
  > modern upgrade
19
19
 
20
20
  [INFO] [Project Type]: Web App
21
- [INFO] [Modern.js Latest Version]: 2.0.0
21
+ [INFO] [Modern.js Latest Version]: x.y.z
22
22
  [INFO] Upgrade Modern.js package version success!
23
23
  ```
24
24
 
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "type": "dir",
4
+ "name": "micro-frontend",
5
+ "label": "micro-frontend",
6
+ "collapsed": true
7
+ },
8
+ {
9
+ "type": "dir",
10
+ "name": "framework-plugin",
11
+ "label": "framework-plugin",
12
+ "collapsed": true
13
+ },
14
+ {
15
+ "type": "dir",
16
+ "name": "model",
17
+ "label": "reduck",
18
+ "collapsed": true
19
+ },
20
+ {
21
+ "type": "dir",
22
+ "name": "generator",
23
+ "label": "generator",
24
+ "collapsed": true
25
+ }
26
+ ]
@@ -0,0 +1,10 @@
1
+ [
2
+ "introduction",
3
+ "lifecycle",
4
+ "hook",
5
+ "implement",
6
+ "relationship",
7
+ "extend",
8
+ "plugin-api",
9
+ "hook-list"
10
+ ]
@@ -674,17 +674,17 @@ export const myPlugin = (): ServerPlugin => ({
674
674
  ## Runtime
675
675
 
676
676
  :::note
677
- The Runtime plugin is currently not fully opened, and the API is not guaranteed to be stable. Use with caution.
677
+ Currently, the Runtime plugin is not fully open, and the API does not guarantee stability. Use with caution.
678
678
  :::
679
679
 
680
- The Runtime plugin is mainly used for developers to modify the component that need to be rendered.
680
+ The Runtime plugin is mainly used by developers to add behaviors before application rendering and to modify components that need to be rendered.
681
681
 
682
- ### `init`
682
+ ### `beforeRender`
683
683
 
684
- - Function: Executes `App.init`.
684
+ - Function: Add behaviors before application rendering
685
685
  - Execution stage: Rendering (SSR/CSR).
686
- - Hook model: `AsyncPipeline`
687
- - Type: `AsyncPipeline<{ context: RuntimeContext; }, unknown>`
686
+ - Hook model: `AsyncWorkflow`
687
+ - Type: `AsyncWorkflow<RuntimeContext, void>`
688
688
  - Example:
689
689
 
690
690
  ```ts
@@ -693,27 +693,22 @@ import type { Plugin } from '@modern-js/runtime';
693
693
  export const myPlugin = (): Plugin => ({
694
694
  setup(api) {
695
695
  return {
696
- init({ context }, next) {
696
+ beforeRender(context) {
697
697
  // do something
698
- return next({ context });
699
698
  },
700
699
  };
701
700
  },
702
701
  });
703
702
  ```
704
703
 
705
- ### `hoc`
704
+ ### `wrapRoot`
706
705
 
707
- - Function: Modifies the components that need to be rendered.
706
+ - Function: Modify components that need to be rendered
708
707
  - Execution stage: Rendering (SSR/CSR).
709
- - Hook model: `Pipeline`
710
- - Type: `Pipeline<{ App: React.ComponentType<any>;config: Record<string, any>; },React.ComponentType<any>>`
708
+ - Hook model: `Waterfall`
709
+ - Type: `Waterfall<React.ComponentType<any>>`
711
710
  - Example:
712
711
 
713
- :::note
714
- When using the hoc hook, you need to copy the static properties of the original App component to the new component and pass through the props.
715
- :::
716
-
717
712
  ```ts
718
713
  import { createContext } from 'react';
719
714
  import type { Plugin } from '@modern-js/runtime';
@@ -722,18 +717,15 @@ export const myPlugin = (): Plugin => ({
722
717
  setup(api) {
723
718
  const FooContext = createContext('');
724
719
  return {
725
- hoc({ App, config }, next) {
720
+ wrapRoot(App) {
726
721
  const AppWrapper = (props: any) => {
727
722
  return (
728
- <FooContext.Provider store={'test'}>
723
+ <FooContext.Provider value={'test'}>
729
724
  <App {...props} />
730
725
  </FooContext.Provider>
731
726
  );
732
727
  };
733
- return next({
734
- App: AppWrapper,
735
- config
736
- });
728
+ return AppWrapper;
737
729
  },
738
730
  };
739
731
  },
@@ -0,0 +1,17 @@
1
+ [
2
+ {
3
+ "type": "dir",
4
+ "name": "create",
5
+ "label": "@modern-js/create"
6
+ },
7
+ {
8
+ "type": "dir",
9
+ "name": "new",
10
+ "label": "new-command"
11
+ },
12
+ {
13
+ "type": "dir",
14
+ "name": "plugin",
15
+ "label": "generator-plugin"
16
+ }
17
+ ]
@@ -0,0 +1,5 @@
1
+ [
2
+ "use",
3
+ "option",
4
+ "config"
5
+ ]
@@ -0,0 +1,5 @@
1
+ [
2
+ "use",
3
+ "option",
4
+ "config"
5
+ ]
@@ -0,0 +1,11 @@
1
+ [
2
+ "structure",
3
+ "category",
4
+ "use",
5
+ "context",
6
+ {
7
+ "type": "dir",
8
+ "name": "api",
9
+ "label": "API"
10
+ }
11
+ ]
@@ -0,0 +1,14 @@
1
+ [
2
+ "quick-start",
3
+ "define-model",
4
+ "use-model",
5
+ "computed-state",
6
+ "manage-effects",
7
+ "auto-actions",
8
+ "model-communicate",
9
+ "performance",
10
+ "typescript-best-practice",
11
+ "redux-integration",
12
+ "use-out-of-modernjs",
13
+ "faq"
14
+ ]
@@ -0,0 +1,6 @@
1
+ [
2
+ "dependencies",
3
+ "cli",
4
+ "builder",
5
+ "hmr"
6
+ ]
@@ -18,8 +18,8 @@ For example, running `npm ls @modern-js/core` will show the following result:
18
18
 
19
19
  ```
20
20
  project
21
- └─┬ @modern-js/app-tools@2.0.0
22
- └── @modern-js/core@2.0.0
21
+ └─┬ @modern-js/app-tools@x.y.z
22
+ └── @modern-js/core@x.y.z
23
23
  ```
24
24
 
25
25
  **pnpm**
@@ -30,8 +30,8 @@ For example, running `pnpm ls @modern-js/core --depth Infinity` will show the fo
30
30
 
31
31
  ```
32
32
  devDependencies:
33
- @modern-js/app-tools 2.0.0
34
- └── @modern-js/core 2.0.0
33
+ @modern-js/app-tools x.y.z
34
+ └── @modern-js/core x.y.z
35
35
  ```
36
36
 
37
37
  ---
@@ -0,0 +1,17 @@
1
+ [
2
+ {
3
+ "type": "dir",
4
+ "name": "foundations",
5
+ "label": "foundations"
6
+ },
7
+ {
8
+ "type": "dir",
9
+ "name": "first-app",
10
+ "label": "first-app"
11
+ },
12
+ {
13
+ "type": "dir",
14
+ "name": "examples",
15
+ "label": "examples"
16
+ }
17
+ ]
@@ -0,0 +1,27 @@
1
+ [
2
+ {
3
+ "text": "guide",
4
+ "link": "/guides/get-started/introduction",
5
+ "activeMatch": "/guides/"
6
+ },
7
+ {
8
+ "text": "tutorials",
9
+ "link": "/tutorials/foundations/introduction",
10
+ "activeMatch": "/tutorials/"
11
+ },
12
+ {
13
+ "text": "configure",
14
+ "link": "/configure/app/usage",
15
+ "activeMatch": "/configure/"
16
+ },
17
+ {
18
+ "text": "apis",
19
+ "link": "/apis/app/commands",
20
+ "activeMatch": "/apis/"
21
+ },
22
+ {
23
+ "text": "community",
24
+ "link": "/community/showcase",
25
+ "activeMatch": "/community/"
26
+ }
27
+ ]
@@ -0,0 +1,13 @@
1
+ [
2
+ "app/commands",
3
+ {
4
+ "type": "dir",
5
+ "name": "app/hooks",
6
+ "label": "file-conventions"
7
+ },
8
+ {
9
+ "type": "dir",
10
+ "name": "app/runtime",
11
+ "label": "runtime-api"
12
+ }
13
+ ]
@@ -200,7 +200,7 @@ Usage: modern inspect [options]
200
200
 
201
201
  Options:
202
202
  --env <env> 查看指定环境下的配置 (default: "development")
203
- --output <output> 指定在 dist 目录下输出的路径 (default: "/")
203
+ --output <output> 指定在 dist 目录下输出的路径 (default: "./")
204
204
  --verbose 在结果中展示函数的完整内容
205
205
  -c --config <config> 指定配置文件路径,可以为相对路径或绝对路径
206
206
  -h, --help 显示命令帮助
@@ -0,0 +1,28 @@
1
+ [
2
+ {
3
+ "type": "dir",
4
+ "name": "src",
5
+ "label": "src/",
6
+ "collapsed": true
7
+ },
8
+ {
9
+ "type": "dir",
10
+ "name": "api",
11
+ "label": "api/",
12
+ "collapsed": true
13
+ },
14
+ {
15
+ "type": "dir",
16
+ "name": "server",
17
+ "label": "server/",
18
+ "collapsed": true
19
+ },
20
+ "shared",
21
+ {
22
+ "type": "dir",
23
+ "name": "config",
24
+ "label": "config/",
25
+ "collapsed": true
26
+ },
27
+ "modern-config"
28
+ ]
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "type": "dir",
4
+ "name": "core",
5
+ "label": "Core",
6
+ "collapsed": true
7
+ },
8
+ {
9
+ "type": "dir",
10
+ "name": "app",
11
+ "label": "App",
12
+ "collapsed": true
13
+ },
14
+ {
15
+ "type": "dir",
16
+ "name": "router",
17
+ "label": "Router",
18
+ "collapsed": true
19
+ },
20
+ {
21
+ "type": "dir",
22
+ "name": "model",
23
+ "label": "Model",
24
+ "collapsed": true
25
+ },
26
+ {
27
+ "type": "dir",
28
+ "name": "ssr",
29
+ "label": "SSR",
30
+ "collapsed": true
31
+ },
32
+ {
33
+ "type": "dir",
34
+ "name": "bff",
35
+ "label": "BFF",
36
+ "collapsed": true
37
+ },
38
+ {
39
+ "type": "dir",
40
+ "name": "web-server",
41
+ "label": "Web Server",
42
+ "collapsed": true
43
+ },
44
+ {
45
+ "type": "dir",
46
+ "name": "utility",
47
+ "label": "Utility",
48
+ "collapsed": true
49
+ }
50
+ ]
@@ -0,0 +1,11 @@
1
+ [
2
+ "showcase",
3
+ "team",
4
+ "releases",
5
+ "contributing-guide",
6
+ {
7
+ "type": "dir",
8
+ "name": "blog",
9
+ "label": "blog"
10
+ }
11
+ ]
@@ -0,0 +1,6 @@
1
+ [
2
+ "overview",
3
+ "v2-release-note",
4
+ "2022-0910-updates",
5
+ "2022-0708-updates"
6
+ ]
@@ -1,6 +1,5 @@
1
1
  ---
2
- sidebar_label: Modern.js v2 发布
3
- sidebar_position: 97
2
+ title: Modern.js v2 发布
4
3
  ---
5
4
 
6
5
  # Modern.js v2 发布:支持 Rspack 构建
@@ -5,7 +5,7 @@ $ pnpm run dev
5
5
 
6
6
  > modern dev
7
7
 
8
- Modern.js Framework v2.55.0
8
+ Modern.js Framework
9
9
 
10
10
  ready Client compiled in 0.86 s
11
11
 
@@ -0,0 +1,78 @@
1
+ [
2
+ "app/usage",
3
+ {
4
+ "type": "dir",
5
+ "name": "app/dev",
6
+ "label": "dev",
7
+ "collapsed": true
8
+ },
9
+ {
10
+ "type": "dir",
11
+ "name": "app/bff",
12
+ "label": "bff",
13
+ "collapsed": true
14
+ },
15
+ {
16
+ "type": "dir",
17
+ "name": "app/html",
18
+ "label": "html",
19
+ "collapsed": true
20
+ },
21
+ {
22
+ "type": "dir",
23
+ "name": "app/tools",
24
+ "label": "tools",
25
+ "collapsed": true
26
+ },
27
+ {
28
+ "type": "dir",
29
+ "name": "app/source",
30
+ "label": "source",
31
+ "collapsed": true
32
+ },
33
+ {
34
+ "type": "dir",
35
+ "name": "app/server",
36
+ "label": "server",
37
+ "collapsed": true
38
+ },
39
+ {
40
+ "type": "dir",
41
+ "name": "app/output",
42
+ "label": "output",
43
+ "collapsed": true
44
+ },
45
+ {
46
+ "type": "dir",
47
+ "name": "app/deploy",
48
+ "label": "deploy",
49
+ "collapsed": true
50
+ },
51
+ "app/plugins",
52
+ {
53
+ "type": "dir",
54
+ "name": "app/security",
55
+ "label": "security",
56
+ "collapsed": true
57
+ },
58
+ {
59
+ "type": "dir",
60
+ "name": "app/runtime",
61
+ "label": "runtime",
62
+ "collapsed": true
63
+ },
64
+ {
65
+ "type": "dir",
66
+ "name": "app/performance",
67
+ "label": "performance",
68
+ "collapsed": true
69
+ },
70
+ {
71
+ "type": "dir",
72
+ "name": "app/experiments",
73
+ "label": "experiments",
74
+ "collapsed": true
75
+ },
76
+ "app/builder-plugins",
77
+ "app/auto-load-plugin"
78
+ ]
@@ -2,7 +2,7 @@
2
2
  sidebar_position: 22
3
3
  ---
4
4
 
5
- # autoLoadPlugins 自动注册插件
5
+ # autoLoadPlugins
6
6
 
7
7
  - **类型:** `boolean`
8
8
  - **默认值:** `false`
@@ -1,5 +1,5 @@
1
1
  ---
2
- sidebar_label: prefix
2
+ title: prefix
3
3
  ---
4
4
 
5
5
  # bff.prefix
@@ -2,7 +2,7 @@
2
2
  sidebar_position: 21
3
3
  ---
4
4
 
5
- # builderPlugins 构建插件
5
+ # builderPlugins
6
6
 
7
7
  - **类型:** `RsbuildPlugin[]`
8
8
  - **默认值:** `[]`