@bleedingdev/modern-js-app-tools 3.5.0-ultramodern.100 → 3.5.0-ultramodern.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/bin/modern-bundle-docs.js +7 -0
  2. package/dist/cjs/bundleDocs.js +114 -0
  3. package/dist/esm/bundleDocs.mjs +62 -0
  4. package/dist/esm-node/bundleDocs.mjs +63 -0
  5. package/dist/types/bundleDocs.d.ts +20 -0
  6. package/docs/apis/app/{commands.mdx → commands.md} +35 -9
  7. package/docs/apis/app/hooks/api/{lambda.mdx → lambda.md} +2 -6
  8. package/docs/apis/app/hooks/config/{favicon.mdx → favicon.md} +1 -6
  9. package/docs/apis/app/hooks/config/{html.mdx → html.md} +1 -5
  10. package/docs/apis/app/hooks/config/{icon.mdx → icon.md} +1 -6
  11. package/docs/apis/app/hooks/config/{mock.mdx → mock.md} +1 -5
  12. package/docs/apis/app/hooks/config/{public.mdx → public.md} +0 -4
  13. package/docs/apis/app/hooks/config/{upload.mdx → upload.md} +3 -7
  14. package/docs/apis/app/hooks/{modern-config.mdx → modern-config.md} +1 -5
  15. package/docs/apis/app/hooks/server/{server.mdx → server.md} +1 -6
  16. package/docs/apis/app/hooks/{shared.mdx → shared.md} +0 -4
  17. package/docs/apis/app/hooks/src/{app.mdx → app.md} +2 -2
  18. package/docs/apis/app/hooks/src/{entry.mdx → entry.md} +1 -6
  19. package/docs/apis/app/hooks/src/{entry.server.mdx → entry.server.md} +0 -5
  20. package/docs/apis/app/hooks/src/{modern.runtime.mdx → modern.runtime.md} +1 -5
  21. package/docs/apis/app/hooks/src/{routes.mdx → routes.md} +3 -7
  22. package/docs/apis/app/hooks/src/{server.mdx → server.md} +1 -5
  23. package/docs/apis/app/runtime/bff/{use-backend-context.mdx → use-backend-context.md} +0 -3
  24. package/docs/apis/app/runtime/core/{create-root.mdx → create-root.md} +0 -3
  25. package/docs/apis/app/runtime/core/{render.mdx → render.md} +1 -4
  26. package/docs/apis/app/runtime/core/{runtime-context.mdx → runtime-context.md} +0 -4
  27. package/docs/apis/app/runtime/router/{router.mdx → router.md} +1 -6
  28. package/docs/apis/app/runtime/ssr/{no-ssr.mdx → no-ssr.md} +0 -3
  29. package/docs/apis/app/runtime/ssr/{renderStreaming.mdx → renderStreaming.md} +0 -4
  30. package/docs/apis/app/runtime/ssr/{renderString.mdx → renderString.md} +0 -4
  31. package/docs/apis/app/runtime/ssr/{requestHandler.mdx → requestHandler.md} +0 -4
  32. package/docs/apis/app/runtime/utility/{css-in-js.mdx → css-in-js.md} +0 -4
  33. package/docs/apis/app/runtime/utility/{head.mdx → head.md} +0 -3
  34. package/docs/apis/app/runtime/utility/{loadable.mdx → loadable.md} +0 -3
  35. package/docs/community/blog/2022-0708-updates.md +91 -0
  36. package/docs/community/blog/2022-0910-updates.md +76 -0
  37. package/docs/community/blog/overview.md +63 -0
  38. package/docs/community/blog/v2-release-note.md +238 -0
  39. package/docs/community/blog/v3-release-note.md +622 -0
  40. package/docs/community/contributing-guide.md +252 -0
  41. package/docs/community/releases.md +23 -0
  42. package/docs/community/showcase.md +24 -0
  43. package/docs/community/team.md +14 -0
  44. package/docs/configure/app/bff/{cross-project.mdx → cross-project.md} +4 -8
  45. package/docs/configure/app/bff/{effect.mdx → effect.md} +3 -7
  46. package/docs/configure/app/bff/{prefix.mdx → prefix.md} +3 -7
  47. package/docs/configure/app/bff/{runtime-framework.mdx → runtime-framework.md} +3 -7
  48. package/docs/configure/app/{builder-plugins.mdx → builder-plugins.md} +4 -8
  49. package/docs/configure/app/dev/{asset-prefix.mdx → asset-prefix.md} +4 -9
  50. package/docs/configure/app/dev/{before-start-url.mdx → before-start-url.md} +0 -4
  51. package/docs/configure/app/dev/{client.mdx → client.md} +3 -7
  52. package/docs/configure/app/dev/hmr.md +10 -0
  53. package/docs/configure/app/dev/{host.mdx → host.md} +0 -4
  54. package/docs/configure/app/dev/{https.mdx → https.md} +0 -4
  55. package/docs/configure/app/dev/{lazy-compilation.mdx → lazy-compilation.md} +2 -8
  56. package/docs/configure/app/dev/live-reload.md +10 -0
  57. package/docs/configure/app/dev/{mock-dir.mdx → mock-dir.md} +0 -4
  58. package/docs/configure/app/dev/progress-bar.md +19 -0
  59. package/docs/configure/app/dev/{server.mdx → server.md} +0 -4
  60. package/docs/configure/app/dev/{setup-middlewares.mdx → setup-middlewares.md} +3 -7
  61. package/docs/configure/app/dev/{start-url.mdx → start-url.md} +0 -5
  62. package/docs/configure/app/dev/{watch-files.mdx → watch-files.md} +3 -7
  63. package/docs/configure/app/dev/{write-to-disk.mdx → write-to-disk.md} +3 -7
  64. package/docs/configure/app/experiments/{source-build.mdx → source-build.md} +1 -3
  65. package/docs/configure/app/html/{app-icon.mdx → app-icon.md} +3 -7
  66. package/docs/configure/app/html/{crossorigin.mdx → crossorigin.md} +3 -7
  67. package/docs/configure/app/html/{favicon.mdx → favicon.md} +3 -7
  68. package/docs/configure/app/html/inject.md +10 -0
  69. package/docs/configure/app/html/{meta.mdx → meta.md} +3 -7
  70. package/docs/configure/app/html/{mount-id.mdx → mount-id.md} +3 -7
  71. package/docs/configure/app/html/output-structure.md +10 -0
  72. package/docs/configure/app/html/script-loading.md +10 -0
  73. package/docs/configure/app/html/{tags.mdx → tags.md} +3 -7
  74. package/docs/configure/app/html/{template-parameters.mdx → template-parameters.md} +3 -7
  75. package/docs/configure/app/html/template.md +10 -0
  76. package/docs/configure/app/html/title.md +18 -0
  77. package/docs/configure/app/output/asset-prefix.md +11 -0
  78. package/docs/configure/app/output/{assets-retry.mdx → assets-retry.md} +1 -5
  79. package/docs/configure/app/output/{charset.mdx → charset.md} +3 -7
  80. package/docs/configure/app/output/{clean-dist-path.mdx → clean-dist-path.md} +0 -4
  81. package/docs/configure/app/output/{convert-to-rem.mdx → convert-to-rem.md} +12 -16
  82. package/docs/configure/app/output/{copy.mdx → copy.md} +3 -7
  83. package/docs/configure/app/output/{css-modules.mdx → css-modules.md} +3 -7
  84. package/docs/configure/app/output/{data-uri-limit.mdx → data-uri-limit.md} +3 -7
  85. package/docs/configure/app/output/{disable-css-module-extension.mdx → disable-css-module-extension.md} +3 -7
  86. package/docs/configure/app/output/{disable-inline-runtime-chunk.mdx → disable-inline-runtime-chunk.md} +0 -4
  87. package/docs/configure/app/output/{disable-svgr.mdx → disable-svgr.md} +0 -4
  88. package/docs/configure/app/output/{disable-ts-checker.mdx → disable-ts-checker.md} +0 -4
  89. package/docs/configure/app/output/{dist-path.mdx → dist-path.md} +3 -11
  90. package/docs/configure/app/output/{enable-asset-manifest.mdx → enable-asset-manifest.md} +0 -4
  91. package/docs/configure/app/output/{enable-css-module-tsdeclaration.mdx → enable-css-module-tsdeclaration.md} +0 -4
  92. package/docs/configure/app/output/{enable-inline-route-manifests.mdx → enable-inline-route-manifests.md} +0 -4
  93. package/docs/configure/app/output/{externals.mdx → externals.md} +3 -7
  94. package/docs/configure/app/output/filename-hash.md +10 -0
  95. package/docs/configure/app/output/{filename.mdx → filename.md} +3 -7
  96. package/docs/configure/app/output/inject-styles.md +10 -0
  97. package/docs/configure/app/output/{inline-scripts.mdx → inline-scripts.md} +4 -8
  98. package/docs/configure/app/output/{inline-styles.mdx → inline-styles.md} +4 -8
  99. package/docs/configure/app/output/{legal-comments.mdx → legal-comments.md} +3 -7
  100. package/docs/configure/app/output/{minify.mdx → minify.md} +3 -7
  101. package/docs/configure/app/output/{override-browserslist.mdx → override-browserslist.md} +4 -8
  102. package/docs/configure/app/output/polyfill.md +12 -0
  103. package/docs/configure/app/output/{source-map.mdx → source-map.md} +3 -7
  104. package/docs/configure/app/output/{split-route-chunks.mdx → split-route-chunks.md} +0 -4
  105. package/docs/configure/app/output/{ssg.mdx → ssg.md} +3 -7
  106. package/docs/configure/app/output/{ssgByEntries.mdx → ssgByEntries.md} +1 -4
  107. package/docs/configure/app/output/{svg-default-export.mdx → svg-default-export.md} +0 -4
  108. package/docs/configure/app/output/{temp-dir.mdx → temp-dir.md} +0 -4
  109. package/docs/configure/app/performance/{build-cache.mdx → build-cache.md} +3 -7
  110. package/docs/configure/app/performance/{chunk-split.mdx → chunk-split.md} +3 -7
  111. package/docs/configure/app/performance/{dns-prefetch.mdx → dns-prefetch.md} +3 -7
  112. package/docs/configure/app/performance/preconnect.md +16 -0
  113. package/docs/configure/app/performance/{prefetch.mdx → prefetch.md} +3 -7
  114. package/docs/configure/app/performance/{preload.mdx → preload.md} +3 -7
  115. package/docs/configure/app/performance/{print-file-size.mdx → print-file-size.md} +3 -7
  116. package/docs/configure/app/performance/profile.md +10 -0
  117. package/docs/configure/app/performance/remove-console.md +10 -0
  118. package/docs/configure/app/performance/remove-moment-locale.md +10 -0
  119. package/docs/configure/app/performance/{rsdoctor.mdx → rsdoctor.md} +0 -4
  120. package/docs/configure/app/{plugins.mdx → plugins.md} +4 -4
  121. package/docs/configure/app/resolve/{alias-strategy.mdx → alias-strategy.md} +3 -7
  122. package/docs/configure/app/resolve/alias.md +9 -0
  123. package/docs/configure/app/resolve/{condition-names.mdx → condition-names.md} +3 -8
  124. package/docs/configure/app/resolve/{dedupe.mdx → dedupe.md} +3 -7
  125. package/docs/configure/app/resolve/{extensions.mdx → extensions.md} +3 -8
  126. package/docs/configure/app/runtime/{0-intro.mdx → 0-intro.md} +1 -4
  127. package/docs/configure/app/runtime/{plugins.mdx → plugins.md} +1 -1
  128. package/docs/configure/app/runtime/{router.mdx → router.md} +3 -7
  129. package/docs/configure/app/security/{check-syntax.mdx → check-syntax.md} +0 -4
  130. package/docs/configure/app/security/{nonce.mdx → nonce.md} +3 -7
  131. package/docs/configure/app/security/{sri.mdx → sri.md} +0 -4
  132. package/docs/configure/app/server/{base-url.mdx → base-url.md} +0 -4
  133. package/docs/configure/app/server/{port.mdx → port.md} +3 -7
  134. package/docs/configure/app/server/{public-routes.mdx → public-routes.md} +0 -4
  135. package/docs/configure/app/server/{routes.mdx → routes.md} +1 -5
  136. package/docs/configure/app/server/{rsc.mdx → rsc.md} +2 -6
  137. package/docs/configure/app/server/{ssr-by-entries.mdx → ssr-by-entries.md} +1 -5
  138. package/docs/configure/app/server/ssr.md +80 -0
  139. package/docs/configure/app/server/{tsconfig-path.mdx → tsconfig-path.md} +0 -4
  140. package/docs/configure/app/source/{alias-strategy.mdx → alias-strategy.md} +4 -8
  141. package/docs/configure/app/source/{alias.mdx → alias.md} +4 -8
  142. package/docs/configure/app/source/{config-dir.mdx → config-dir.md} +1 -5
  143. package/docs/configure/app/source/{decorators.mdx → decorators.md} +0 -4
  144. package/docs/configure/app/source/{define.mdx → define.md} +3 -7
  145. package/docs/configure/app/source/{disable-default-entries.mdx → disable-default-entries.md} +2 -6
  146. package/docs/{components/module-federation.mdx → configure/app/source/enable-async-entry.md} +47 -0
  147. package/docs/configure/app/source/{enable-async-pre-entry.mdx → enable-async-pre-entry.md} +0 -4
  148. package/docs/configure/app/source/{entries-dir.mdx → entries-dir.md} +0 -4
  149. package/docs/configure/app/source/{entries.mdx → entries.md} +1 -5
  150. package/docs/configure/app/source/{exclude.mdx → exclude.md} +4 -8
  151. package/docs/configure/app/source/{global-vars.mdx → global-vars.md} +0 -4
  152. package/docs/configure/app/source/{include.mdx → include.md} +4 -8
  153. package/docs/configure/app/source/{main-entry-name.mdx → main-entry-name.md} +0 -4
  154. package/docs/configure/app/source/{pre-entry.mdx → pre-entry.md} +3 -7
  155. package/docs/configure/app/source/{react-compiler.mdx → react-compiler.md} +0 -4
  156. package/docs/configure/app/source/{transform-import.mdx → transform-import.md} +3 -7
  157. package/docs/configure/app/{split-chunks.mdx → split-chunks.md} +3 -3
  158. package/docs/configure/app/tools/{autoprefixer.mdx → autoprefixer.md} +0 -4
  159. package/docs/configure/app/tools/{bundler-chain.mdx → bundler-chain.md} +0 -4
  160. package/docs/configure/app/tools/{css-extract.mdx → css-extract.md} +3 -7
  161. package/docs/configure/app/tools/{css-loader.mdx → css-loader.md} +3 -7
  162. package/docs/configure/app/tools/{dev-server.mdx → dev-server.md} +0 -4
  163. package/docs/configure/app/tools/{html-plugin.mdx → html-plugin.md} +3 -7
  164. package/docs/configure/app/tools/{less.mdx → less.md} +0 -4
  165. package/docs/configure/app/tools/{lightningcss-loader.mdx → lightningcss-loader.md} +3 -7
  166. package/docs/configure/app/tools/{minify-css.mdx → minify-css.md} +0 -4
  167. package/docs/configure/app/tools/{postcss.mdx → postcss.md} +3 -7
  168. package/docs/configure/app/tools/rspack.md +10 -0
  169. package/docs/configure/app/tools/{sass.mdx → sass.md} +0 -4
  170. package/docs/configure/app/tools/style-loader.md +10 -0
  171. package/docs/configure/app/tools/{swc.mdx → swc.md} +4 -8
  172. package/docs/configure/app/tools/{ts-checker.mdx → ts-checker.md} +20 -7
  173. package/docs/configure/app/{usage.mdx → usage.md} +1 -1
  174. package/docs/guides/advanced-features/bff/{cross-project.mdx → cross-project.md} +1 -2
  175. package/docs/guides/advanced-features/bff/{data-platform.mdx → data-platform.md} +0 -4
  176. package/docs/guides/advanced-features/bff/{extend-server.mdx → extend-server.md} +1 -1
  177. package/docs/guides/advanced-features/bff/frameworks.md +243 -0
  178. package/docs/guides/advanced-features/bff/{function.mdx → function.md} +60 -7
  179. package/docs/guides/advanced-features/bff/{operators.mdx → operators.md} +2 -77
  180. package/docs/{components/bff-upload.mdx → guides/advanced-features/bff/upload.md} +4 -0
  181. package/docs/guides/advanced-features/{bff.mdx → bff.md} +0 -4
  182. package/docs/guides/advanced-features/{build-performance.mdx → build-performance.md} +3 -7
  183. package/docs/guides/advanced-features/{compatibility.mdx → compatibility.md} +54 -15
  184. package/docs/guides/advanced-features/international/{advanced.mdx → advanced.md} +0 -4
  185. package/docs/guides/advanced-features/international/{api.mdx → api.md} +16 -20
  186. package/docs/guides/advanced-features/international/{best-practices.mdx → best-practices.md} +0 -4
  187. package/docs/guides/advanced-features/international/configuration.md +228 -0
  188. package/docs/guides/advanced-features/international/{locale-detection.mdx → locale-detection.md} +25 -29
  189. package/docs/guides/advanced-features/international/{quick-start.mdx → quick-start.md} +29 -13
  190. package/docs/guides/advanced-features/international/{resource-loading.mdx → resource-loading.md} +11 -15
  191. package/docs/guides/advanced-features/international/{routing.mdx → routing.md} +12 -16
  192. package/docs/guides/advanced-features/international.md +27 -0
  193. package/docs/guides/advanced-features/{low-level.mdx → low-level.md} +17 -21
  194. package/docs/guides/advanced-features/page-performance/{code-split.mdx → code-split.md} +2 -6
  195. package/docs/guides/advanced-features/page-performance/{inline-assets.mdx → inline-assets.md} +3 -7
  196. package/docs/guides/advanced-features/page-performance/{optimize-bundle.mdx → optimize-bundle.md} +4 -8
  197. package/docs/{components/internal-logger.mdx → guides/advanced-features/server-monitor/logger.md} +16 -0
  198. package/docs/guides/advanced-features/server-monitor/metrics.md +58 -0
  199. package/docs/guides/advanced-features/server-monitor/{monitors.mdx → monitors.md} +3 -3
  200. package/docs/guides/advanced-features/{source-build.mdx → source-build.md} +1 -5
  201. package/docs/guides/advanced-features/{web-server.mdx → web-server.md} +1 -9
  202. package/docs/guides/basic-features/{alias.mdx → alias.md} +3 -7
  203. package/docs/guides/basic-features/css/{css-in-js.mdx → css-in-js.md} +12 -9
  204. package/docs/guides/basic-features/css/{css-modules.mdx → css-modules.md} +3 -3
  205. package/docs/guides/basic-features/css/{css.mdx → css.md} +2 -6
  206. package/docs/guides/basic-features/data/{data-cache.mdx → data-cache.md} +1 -6
  207. package/docs/guides/basic-features/data/{data-fetch.mdx → data-fetch.md} +4 -8
  208. package/docs/guides/basic-features/data/{data-write.mdx → data-write.md} +6 -9
  209. package/docs/guides/basic-features/debug/{mock.mdx → mock.md} +1 -5
  210. package/docs/guides/basic-features/debug/{proxy.mdx → proxy.md} +1 -5
  211. package/docs/guides/basic-features/debug/{using-storybook.mdx → using-storybook.md} +20 -8
  212. package/docs/guides/basic-features/{deploy.mdx → deploy.md} +23 -13
  213. package/docs/guides/basic-features/{env-vars.mdx → env-vars.md} +8 -12
  214. package/docs/guides/basic-features/{html.mdx → html.md} +3 -7
  215. package/docs/guides/basic-features/{output-files.mdx → output-files.md} +6 -10
  216. package/docs/guides/basic-features/render/{before-render.mdx → before-render.md} +1 -1
  217. package/docs/guides/basic-features/render/overview.md +47 -0
  218. package/docs/guides/basic-features/render/{rsc.mdx → rsc.md} +12 -20
  219. package/docs/guides/basic-features/render/{ssg.mdx → ssg.md} +71 -10
  220. package/docs/guides/basic-features/render/{ssr-cache.mdx → ssr-cache.md} +5 -5
  221. package/docs/guides/basic-features/render/{ssr.mdx → ssr.md} +10 -12
  222. package/docs/guides/basic-features/render/{streaming-ssr.mdx → streaming-ssr.md} +5 -8
  223. package/docs/guides/basic-features/routes/{config-routes.mdx → config-routes.md} +10 -11
  224. package/docs/guides/basic-features/routes/{routes.mdx → routes.md} +8 -16
  225. package/docs/guides/basic-features/static-assets/{json-files.mdx → json-files.md} +0 -4
  226. package/docs/guides/basic-features/static-assets/{svg-assets.mdx → svg-assets.md} +3 -7
  227. package/docs/guides/basic-features/static-assets/{wasm-assets.mdx → wasm-assets.md} +1 -5
  228. package/docs/guides/basic-features/{static-assets.mdx → static-assets.md} +10 -14
  229. package/docs/guides/basic-features/testing/{playwright.mdx → playwright.md} +12 -3
  230. package/docs/guides/basic-features/testing/{rstest.mdx → rstest.md} +70 -11
  231. package/docs/guides/concept/{builder.mdx → builder.md} +3 -26
  232. package/docs/guides/concept/{entries.mdx → entries.md} +11 -17
  233. package/docs/guides/concept/{server.mdx → server.md} +3 -3
  234. package/docs/guides/get-started/{ai-coding-agents.mdx → ai-coding-agents.md} +4 -9
  235. package/docs/guides/get-started/glossary.md +63 -0
  236. package/docs/guides/get-started/{introduction.mdx → introduction.md} +1 -6
  237. package/docs/guides/get-started/quick-start.md +269 -0
  238. package/docs/guides/get-started/{tech-stack.mdx → tech-stack.md} +9 -15
  239. package/docs/guides/get-started/{ultramodern.mdx → ultramodern.md} +19 -24
  240. package/docs/guides/get-started/{upgrade.mdx → upgrade.md} +21 -12
  241. package/docs/guides/topic-detail/module-federation/{application.mdx → application.md} +3 -3
  242. package/docs/guides/topic-detail/module-federation/{deploy.mdx → deploy.md} +2 -2
  243. package/docs/guides/topic-detail/module-federation/{i18n.mdx → i18n.md} +14 -14
  244. package/docs/guides/topic-detail/module-federation/{introduce.mdx → introduce.md} +2 -3
  245. package/docs/guides/topic-detail/module-federation/{ssr.mdx → ssr.md} +12 -7
  246. package/docs/guides/topic-detail/module-federation/{usage.mdx → usage.md} +20 -3
  247. package/docs/guides/troubleshooting/{builder.mdx → builder.md} +10 -14
  248. package/docs/guides/troubleshooting/{cli.mdx → cli.md} +0 -4
  249. package/docs/guides/troubleshooting/{dependencies.mdx → dependencies.md} +7 -11
  250. package/docs/guides/troubleshooting/{hmr.mdx → hmr.md} +5 -9
  251. package/docs/guides/upgrade/{config.mdx → config.md} +8 -5
  252. package/docs/guides/upgrade/{entry.mdx → entry.md} +6 -6
  253. package/docs/guides/upgrade/{other.mdx → other.md} +8 -8
  254. package/docs/guides/upgrade/{overview.mdx → overview.md} +4 -4
  255. package/docs/guides/upgrade/{tailwindcss.mdx → tailwindcss.md} +0 -1
  256. package/docs/guides/upgrade/web-server.md +11 -11
  257. package/docs/index.md +33 -4
  258. package/docs/llms.txt +290 -0
  259. package/docs/plugin/cli-plugins/api.md +573 -0
  260. package/docs/plugin/cli-plugins/life-cycle.md +2 -0
  261. package/docs/plugin/introduction.md +152 -0
  262. package/docs/plugin/official/cli-plugins/plugin-bff.md +5 -0
  263. package/docs/plugin/official/cli-plugins/plugin-ssg.md +5 -0
  264. package/docs/plugin/official/cli-plugins/plugin-styled-components.md +5 -0
  265. package/docs/plugin/official/cli-plugins.md +4 -0
  266. package/docs/plugin/plugin-system.md +238 -0
  267. package/docs/plugin/runtime-plugins/api.md +194 -0
  268. package/docs/plugin/runtime-plugins/life-cycle.md +2 -0
  269. package/docs/plugin/server-plugins/api.md +209 -0
  270. package/docs/plugin/server-plugins/life-cycle.md +13 -0
  271. package/docs/tutorials/examples/csr-auth.md +9 -0
  272. package/docs/tutorials/foundations/introduction.md +16 -0
  273. package/package.json +32 -14
  274. package/docs/_nav.json +0 -36
  275. package/docs/apis/_meta.json +0 -13
  276. package/docs/apis/app/hooks/_meta.json +0 -28
  277. package/docs/apis/app/hooks/config/_meta.json +0 -1
  278. package/docs/apis/app/runtime/_meta.json +0 -32
  279. package/docs/components/auto-upgrade.mdx +0 -0
  280. package/docs/components/build-output.mdx +0 -45
  281. package/docs/components/bundler.mdx +0 -3
  282. package/docs/components/convention-routing-motivation.mdx +0 -0
  283. package/docs/components/debug-app.mdx +0 -15
  284. package/docs/components/default-browserslist.mdx +0 -7
  285. package/docs/components/deploy-command.mdx +0 -14
  286. package/docs/components/deploy.mdx +0 -1
  287. package/docs/components/enable-bff-caution.mdx +0 -3
  288. package/docs/components/enable-bff.mdx +0 -56
  289. package/docs/components/enable-ssg.mdx +0 -49
  290. package/docs/components/entry-mode.mdx +0 -0
  291. package/docs/components/entry-scan-logic.mdx +0 -7
  292. package/docs/components/extend-bff-function.mdx +0 -3
  293. package/docs/components/hono.mdx +0 -120
  294. package/docs/components/init-app.mdx +0 -93
  295. package/docs/components/init-rspack-app.mdx +0 -5
  296. package/docs/components/internal-metrics.mdx +0 -20
  297. package/docs/components/international/custom-instance-code.mdx +0 -16
  298. package/docs/components/international/init-options-desc.mdx +0 -1
  299. package/docs/components/international/install-command.mdx +0 -10
  300. package/docs/components/international/instance-code.mdx +0 -16
  301. package/docs/components/international/introduce.mdx +0 -5
  302. package/docs/components/international/platform-support.mdx +0 -0
  303. package/docs/components/language-config.mdx +0 -9
  304. package/docs/components/micro-frontend.mdx +0 -6
  305. package/docs/components/micro-master-manifest-config.mdx +0 -15
  306. package/docs/components/micro-runtime-config.mdx +0 -17
  307. package/docs/components/new-entry-tooltip.mdx +0 -0
  308. package/docs/components/nodeVersion.mdx +0 -28
  309. package/docs/components/other-plugins.mdx +0 -0
  310. package/docs/components/output-asset-prefix-extend.mdx +0 -0
  311. package/docs/components/output-distpath-warning.mdx +0 -0
  312. package/docs/components/output-polyfill-extend.mdx +0 -1
  313. package/docs/components/prerequisites.mdx +0 -18
  314. package/docs/components/release-note.mdx +0 -1
  315. package/docs/components/routes-practice.mdx +0 -0
  316. package/docs/components/rsbuild-config-tooltip.mdx +0 -5
  317. package/docs/components/rsbuild.mdx +0 -3
  318. package/docs/components/rsc-deploy-tip.mdx +0 -1
  319. package/docs/components/rspack.mdx +0 -3
  320. package/docs/components/rspackTip.mdx +0 -7
  321. package/docs/components/runtime-cli-config.mdx +0 -0
  322. package/docs/components/serve-command.mdx +0 -22
  323. package/docs/components/ssr-monitor.mdx +0 -3
  324. package/docs/components/stream-ssr-performance.mdx +0 -0
  325. package/docs/components/swc.mdx +0 -3
  326. package/docs/components/tech-stack-node-framework.mdx +0 -1
  327. package/docs/components/turtorials-example-list.mdx +0 -2
  328. package/docs/components/ua-polyfill.mdx +0 -44
  329. package/docs/components/upgrade-browserslist.mdx +0 -0
  330. package/docs/components/upgrade-config-deploy.mdx +0 -0
  331. package/docs/components/upgrade-faq.mdx +0 -0
  332. package/docs/configure/_meta.json +0 -78
  333. package/docs/configure/app/dev/hmr.mdx +0 -14
  334. package/docs/configure/app/dev/live-reload.mdx +0 -14
  335. package/docs/configure/app/dev/progress-bar.mdx +0 -23
  336. package/docs/configure/app/html/inject.mdx +0 -14
  337. package/docs/configure/app/html/output-structure.mdx +0 -14
  338. package/docs/configure/app/html/script-loading.mdx +0 -14
  339. package/docs/configure/app/html/template.mdx +0 -14
  340. package/docs/configure/app/html/title.mdx +0 -22
  341. package/docs/configure/app/output/asset-prefix.mdx +0 -18
  342. package/docs/configure/app/output/filename-hash.mdx +0 -14
  343. package/docs/configure/app/output/inject-styles.mdx +0 -14
  344. package/docs/configure/app/output/polyfill.mdx +0 -18
  345. package/docs/configure/app/performance/preconnect.mdx +0 -20
  346. package/docs/configure/app/performance/profile.mdx +0 -14
  347. package/docs/configure/app/performance/remove-console.mdx +0 -14
  348. package/docs/configure/app/performance/remove-moment-locale.mdx +0 -14
  349. package/docs/configure/app/resolve/alias.mdx +0 -13
  350. package/docs/configure/app/server/ssr.mdx +0 -85
  351. package/docs/configure/app/source/enable-async-entry.mdx +0 -54
  352. package/docs/configure/app/tools/rspack.mdx +0 -14
  353. package/docs/configure/app/tools/style-loader.mdx +0 -14
  354. package/docs/guides/_meta.json +0 -37
  355. package/docs/guides/advanced-features/_meta.json +0 -32
  356. package/docs/guides/advanced-features/bff/_meta.json +0 -10
  357. package/docs/guides/advanced-features/bff/frameworks.mdx +0 -131
  358. package/docs/guides/advanced-features/bff/upload.mdx +0 -7
  359. package/docs/guides/advanced-features/international/_meta.json +0 -10
  360. package/docs/guides/advanced-features/international/configuration.mdx +0 -222
  361. package/docs/guides/advanced-features/international.mdx +0 -29
  362. package/docs/guides/advanced-features/page-performance/_meta.json +0 -1
  363. package/docs/guides/advanced-features/server-monitor/_meta.json +0 -1
  364. package/docs/guides/advanced-features/server-monitor/logger.mdx +0 -19
  365. package/docs/guides/advanced-features/server-monitor/metrics.mdx +0 -41
  366. package/docs/guides/basic-features/_meta.json +0 -49
  367. package/docs/guides/basic-features/css/_meta.json +0 -1
  368. package/docs/guides/basic-features/data/_meta.json +0 -1
  369. package/docs/guides/basic-features/debug/_meta.json +0 -1
  370. package/docs/guides/basic-features/render/_meta.json +0 -1
  371. package/docs/guides/basic-features/render/overview.mdx +0 -51
  372. package/docs/guides/basic-features/routes/_meta.json +0 -1
  373. package/docs/guides/basic-features/static-assets/_meta.json +0 -1
  374. package/docs/guides/basic-features/testing/_meta.json +0 -1
  375. package/docs/guides/concept/_meta.json +0 -1
  376. package/docs/guides/get-started/_meta.json +0 -9
  377. package/docs/guides/get-started/glossary.mdx +0 -63
  378. package/docs/guides/get-started/quick-start.mdx +0 -92
  379. package/docs/guides/topic-detail/_meta.json +0 -8
  380. package/docs/guides/topic-detail/module-federation/_meta.json +0 -1
  381. package/docs/guides/troubleshooting/_meta.json +0 -1
  382. package/docs/guides/upgrade/_meta.json +0 -1
  383. package/scripts/copy-main-doc.mjs +0 -50
  384. /package/docs/guides/advanced-features/bff/{sdk.mdx → sdk.md} +0 -0
  385. /package/docs/guides/advanced-features/page-performance/{react-compiler.mdx → react-compiler.md} +0 -0
  386. /package/docs/guides/basic-features/css/{tailwindcss.mdx → tailwindcss.md} +0 -0
  387. /package/docs/guides/basic-features/debug/{rsdoctor.mdx → rsdoctor.md} +0 -0
@@ -0,0 +1,252 @@
1
+ # Contributing Guide
2
+
3
+ Thanks for that you are interested in contributing to Modern.js. Before starting your contribution, please take a moment to read the following guidelines.
4
+
5
+ ## Setup the Dev Environment
6
+
7
+ ### Fork the Repo
8
+
9
+ [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your
10
+ own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local.
11
+
12
+ ### Install Node.js
13
+
14
+ We recommend using Node.js 22. You can check your currently used Node.js version with the following command:
15
+
16
+ ```bash
17
+ node -v
18
+ ```
19
+
20
+ If you do not have Node.js installed in your current environment, you can use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm) to install it.
21
+
22
+ Here is an example of how to install the Node.js 22 LTS version via nvm:
23
+
24
+ ```bash
25
+ # Install the LTS version of Node.js 22
26
+ nvm install 22 --lts
27
+
28
+ # Make the newly installed Node.js 22 as the default version
29
+ nvm alias default 22
30
+
31
+ # Switch to the newly installed Node.js 22
32
+ nvm use 22
33
+ ```
34
+
35
+ ### Install pnpm
36
+
37
+ ```sh
38
+ mise install
39
+ ```
40
+
41
+ ### Install Dependencies
42
+
43
+ ```sh
44
+ pnpm install
45
+ ```
46
+
47
+ What this will do:
48
+
49
+ - Install all dependencies
50
+ - Create symlinks between packages in the monorepo
51
+ - Run the `prepare` script to build all packages (this will take some time, but is necessary to make ensure all packages are built)
52
+
53
+ > A full rebuild of all packages is generally not required after this. If a new feature you are developing requires an updated version of another package, it is usually sufficient to build the changed dependencies.
54
+
55
+ ### Set Git Email
56
+
57
+ Please make sure you have your email set up in `<https://github.com/settings/emails>`. This will be needed later when you want to submit a pull request.
58
+
59
+ Check that your git client is already configured the email:
60
+
61
+ ```sh
62
+ git config --list | grep email
63
+ ```
64
+
65
+ Set the email to global config:
66
+
67
+ ```sh
68
+ git config --global user.email "SOME_EMAIL@example.com"
69
+ ```
70
+
71
+ Set the email for local repo:
72
+
73
+ ```sh
74
+ git config user.email "SOME_EMAIL@example.com"
75
+ ```
76
+
77
+ ## Making Changes and Building
78
+
79
+ Once you have set up the local development environment in your forked repo, we can start development.
80
+
81
+ ### Checkout A New Branch
82
+
83
+ It is recommended to develop on a new branch, as it will make things easier later when you submit a pull request:
84
+
85
+ ```sh
86
+ git checkout -b MY_BRANCH_NAME
87
+ ```
88
+
89
+ ### Build the Package
90
+
91
+ To build the package you want to change, first open the package directory, then run the `build` command:
92
+
93
+ ```sh
94
+ # Replace some-path with the path of the package you want to work on
95
+ cd ./packages/some-path
96
+ pnpm run build
97
+ ```
98
+
99
+ Alternatively, you can build the package from the root directory of the repository using the `--filter` option:
100
+
101
+ ```sh
102
+ pnpm run --filter @modern-js/some-package build
103
+ ```
104
+
105
+ Build all packages:
106
+
107
+ ```sh
108
+ pnpm run prepare
109
+ ```
110
+
111
+ If you need to clean all `node_modules/*` in the project, run the `reset` command:
112
+
113
+ ```sh
114
+ pnpm run reset
115
+ ```
116
+
117
+ ## Testing
118
+
119
+ ### Add New Tests
120
+
121
+ If you've fixed a bug or added code that should be tested, then add some tests.
122
+
123
+ Modern.js uses [Rstest](https://rstest.rs/) for unit tests across the repository. You can add test cases in the `<PACKAGE_DIR>/tests` folder, using Rstest syntax.
124
+
125
+ ### Run Unit Tests
126
+
127
+ Before submitting a pull request, it's important to make sure that the changes haven't introduced any regressions or bugs. You can run the unit tests for the project by executing the following command:
128
+
129
+ ```sh
130
+ pnpm run test
131
+ ```
132
+
133
+ Alternatively, you can run the unit tests of single package using the `--filter` option:
134
+
135
+ ```sh
136
+ pnpm run --filter @modern-js/some-package test
137
+ ```
138
+
139
+ ### Run E2E Tests
140
+
141
+ In addition to the unit tests, the Modern.js also includes end-to-end (E2E) tests, which checks the functionality of the application as a whole.
142
+
143
+ You can run the `test:e2e` command to run the E2E tests:
144
+
145
+ ```sh
146
+ pnpm run test:e2e
147
+ ```
148
+
149
+ If you need to run a specified test, you can add keywords to filter:
150
+
151
+ ```sh
152
+ # Only run test cases with the copy-assets keyword
153
+ npx rstest copy-assets
154
+ ```
155
+
156
+ ## Linting
157
+
158
+ To help maintain consistency and readability of the codebase, we use a ESLint to lint the codes.
159
+
160
+ You can run the Linter by executing the following command:
161
+
162
+ ```sh
163
+ pnpm run lint
164
+ ```
165
+
166
+ ## Benchmarking
167
+
168
+ You can input `!bench-framework` or `!bench-module` in the comment area of ​​the PR to do benchmarking on `@modern-js/app-tools` and `@modern-js/module-tools` respectively (you need to have Collaborator and above permissions).
169
+
170
+ You can focus on metrics related to build time and bundle size based on the comparison table output by comments to assist you in making relevant performance judgments and decisions.
171
+
172
+ Dependencies installation-related metrics base on publishing process, so the data is relatively lagging and is for reference only.
173
+
174
+ ## Documentation
175
+
176
+ Currently Modern.js provides documentation in English and Chinese. If you can use Chinese, please update both documents at the same time. Otherwise, just update the English documentation.
177
+
178
+ You can find all the documentation in the `packages/document` folder:
179
+
180
+ ```bash
181
+ root
182
+ └─ packages
183
+ └─ document # Documentation for Modern.js Framework
184
+ ```
185
+
186
+ This website is built with Rspress, the document content can be written using markdown or mdx syntax. You can refer to the [Rspress Website](https://rspress.rs/) for detailed usage.
187
+
188
+ The source code of Rspress can be found in [this repo](https://github.com/web-infra-dev/rspress).
189
+
190
+ ## Submitting Changes
191
+
192
+ ### Add a Changeset
193
+
194
+ Modern.js is using [Changesets](https://github.com/changesets/changesets) to manage the versioning and changelogs.
195
+
196
+ If you've changed some packages, you need add a new changeset for the changes. Please run `change` command to select the changed packages and add the changeset info.
197
+
198
+ ```sh
199
+ pnpm run change
200
+ ```
201
+
202
+ ### Committing your Changes
203
+
204
+ Commit your changes to your forked repo, and [create a pull request](https://help.github.com/articles/creating-a-pull-request/).
205
+
206
+ ### Format of PR titles
207
+
208
+ The format of PR titles follow Conventional Commits.
209
+
210
+ An example:
211
+
212
+ ```
213
+ feat(plugin-swc): Add `xxx` config
214
+ ^ ^ ^
215
+ | | |__ Subject
216
+ | |_______ Scope
217
+ |____________ Type
218
+ ```
219
+
220
+ ## Publishing
221
+
222
+ We use **Modern.js Monorepo Solution** to manage version and changelog.
223
+
224
+ Repository maintainers can publish a new version of all packages to npm.
225
+
226
+ Here are the steps to publish (we generally use CI for releases and avoid publishing npm packages locally):
227
+
228
+ 1. Pull latest code from the `main` branch.
229
+ 2. Install:
230
+
231
+ ```sh
232
+ pnpm i
233
+ ```
234
+
235
+ 3. Build packages:
236
+
237
+ ```sh
238
+ pnpm run prepare
239
+ ```
240
+
241
+ 4. Bump version:
242
+
243
+ ```sh
244
+ pnpm run bump
245
+ ```
246
+
247
+ 5. Commit the version change.
248
+
249
+ ```sh
250
+ git add .
251
+ git commit -m "Release va.b.c"
252
+ ```
@@ -0,0 +1,23 @@
1
+ # Releases
2
+
3
+ ## Changelog
4
+
5
+ Please visit [GitHub - Releases](https://github.com/web-infra-dev/modern.js/releases) to see what has changed with each release of Modern.js.
6
+
7
+ ## Version Specification
8
+
9
+ Modern.js follows the [Semantic Versioning](https://semver.org) specification.
10
+
11
+ - Major version: Contains incompatible API changes.
12
+ - Minor version: Contains backward compatible functional changes.
13
+ - Patch version: Contains backwards compatible bug fixes
14
+
15
+ ## Release Cycle
16
+
17
+ - Modern.js generally releases an official release every Thursday.
18
+ - If critical bugs appear, we will release a revised version on the same day.
19
+ - We expect to keep Modern.js v2 stable and compatible, there are currently no plans to release the next major version.
20
+
21
+ ## Version Upgrade
22
+
23
+ Modern.js 3.0 no longer ships the `modern upgrade` command. When you need to upgrade a project, follow the manual migration steps in [Upgrade](/guides/get-started/upgrade.md).
@@ -0,0 +1,24 @@
1
+ # Showcase
2
+
3
+ Welcome to the Modern.js showcase page! Here, we present a collection of websites that have been built using Modern.js.
4
+
5
+ If you have built a website using Modern.js, we would love for you to share it with the community. Simply reply to the GitHub discussion thread with a link to your website. We will collect content on a regular basis and display it on the current page.
6
+
7
+ ## The Cases
8
+
9
+
10
+ [![](/img/features/framework.svg)UltraModern.jsFramework
11
+
12
+ bleedingdev.github.io](https://bleedingdev.github.io/ultramodern.js/)[![](/img/features/api.svg)EffectFramework
13
+
14
+ effect.website](https://effect.website/)[![](/img/features/url.svg)TanStack RouterFramework
15
+
16
+ tanstack.com](https://tanstack.com/router)[![](/img/features/compiler.svg)RspackBuilder
17
+
18
+ rspack.rs](https://rspack.rs/)[![](/img/features/visual.svg)RspressDoc
19
+
20
+ rspress.rs](https://rspress.rs/)[![](/img/features/app.svg)Modern.jsDoc
21
+
22
+ modernjs.dev](https://modernjs.dev/en/)[![](/img/features/frameworks.svg)Module FederationModule
23
+
24
+ module-federation.io](https://module-federation.io/)
@@ -0,0 +1,14 @@
1
+ # Meet the Team
2
+
3
+ The development of Modern.js is driven by ByteDance's Modern.js team and community contributors.
4
+
5
+ ## Core Team Members
6
+
7
+ The Modern.js core team members:
8
+
9
+
10
+ ## All Contributors
11
+
12
+ Thanks to the following friends for their contributions to Modern.js:
13
+
14
+ [![contributors](https://opencollective.com/modernjs/contributors.svg?width=890&button=false)](https://github.com/web-infra-dev/modern.js/graphs/contributors)
@@ -1,15 +1,11 @@
1
- ---
2
- title: crossProject
3
- ---
4
-
5
1
  # bff.crossProject
6
2
 
7
3
  - **Type:** `boolean`
8
4
  - **Default:** `false`
9
5
 
10
- import EnableBFFCaution from "@site-docs-en/components/enable-bff-caution";
11
-
12
- <EnableBFFCaution />
6
+ :::tip
7
+ Please refer to the [Enable BFF](/guides/advanced-features/bff/function.md#enable-bff) section in Basic Usage to enable BFF functionality first.
8
+ :::
13
9
 
14
10
  This configuration is used to enable BFF cross-project invocation functionality. When enabled, the current project can be used as a BFF producer, generating an SDK that can be directly called by other projects.
15
11
 
@@ -21,4 +17,4 @@ export default defineConfig({
21
17
  });
22
18
  ```
23
19
 
24
- For detailed configuration and usage of BFF cross-project invocation, please refer to the [BFF Cross-Project Invocation Guide](/guides/advanced-features/bff/cross-project.html).
20
+ For detailed configuration and usage of BFF cross-project invocation, please refer to the [BFF Cross-Project Invocation Guide](/guides/advanced-features/bff/cross-project.md).
@@ -1,7 +1,3 @@
1
- ---
2
- title: effect
3
- ---
4
-
5
1
  # bff.effect
6
2
 
7
3
  - **Type:**
@@ -39,9 +35,9 @@ type BffEffectUserConfig = {
39
35
 
40
36
  - **Default:** `{}`
41
37
 
42
- import EnableBFFCaution from "@site-docs-en/components/enable-bff-caution";
43
-
44
- <EnableBFFCaution />
38
+ :::tip
39
+ Please refer to the [Enable BFF](/guides/advanced-features/bff/function.md#enable-bff) section in Basic Usage to enable BFF functionality first.
40
+ :::
45
41
 
46
42
  `bff.effect` is only effective when `bff.runtimeFramework` is set to `'effect'`.
47
43
 
@@ -1,15 +1,11 @@
1
- ---
2
- title: prefix
3
- ---
4
-
5
1
  # bff.prefix
6
2
 
7
3
  - **Type:** `string`
8
4
  - **Default:** `/api`
9
5
 
10
- import EnableBFFCaution from "@site-docs-en/components/enable-bff-caution";
11
-
12
- <EnableBFFCaution />
6
+ :::tip
7
+ Please refer to the [Enable BFF](/guides/advanced-features/bff/function.md#enable-bff) section in Basic Usage to enable BFF functionality first.
8
+ :::
13
9
 
14
10
  By default, the prefix for accessing routes in the BFF API directory is `/api`, as shown in the following directory structure:
15
11
 
@@ -1,15 +1,11 @@
1
- ---
2
- title: runtimeFramework
3
- ---
4
-
5
1
  # bff.runtimeFramework
6
2
 
7
3
  - **Type:** `'hono' | 'effect'`
8
4
  - **Default:** `'effect'`
9
5
 
10
- import EnableBFFCaution from "@site-docs-en/components/enable-bff-caution";
11
-
12
- <EnableBFFCaution />
6
+ :::tip
7
+ Please refer to the [Enable BFF](/guides/advanced-features/bff/function.md#enable-bff) section in Basic Usage to enable BFF functionality first.
8
+ :::
13
9
 
14
10
  Controls which runtime framework Modern.js uses for BFF routing.
15
11
 
@@ -1,7 +1,3 @@
1
- ---
2
- sidebar_position: 21
3
- ---
4
-
5
1
  # builderPlugins
6
2
 
7
3
  - **Type:** `RsbuildPlugin[]`
@@ -9,18 +5,18 @@ sidebar_position: 21
9
5
 
10
6
  Used to configure the Rsbuild plugin.
11
7
 
12
- Rsbuild is the build tool of Modern.js, please read [Build Engine](/guides/concept/builder) for background. If you want to know how to write Rsbuild plugins, you can refer to [Rsbuild - Plugin System](https://v2.rsbuild.rs/plugins/dev/index).
8
+ Rsbuild is the build tool of Modern.js, please read [Build Engine](/guides/concept/builder.md) for background. If you want to know how to write Rsbuild plugins, you can refer to [Rsbuild - Plugin System](https://v2.rsbuild.rs/plugins/dev/index).
13
9
 
14
10
  ## Precautions
15
11
 
16
12
  This option **is used to configure the Rsbuild plugins**. If you need to configure other types of plugins, please select the corresponding configs:
17
13
 
18
- - Use [plugins](/configure/app/plugins) to configure Modern.js framework plugins.
19
- - Use [tools.bundlerChain](/configure/app/tools/bundler-chain) to configure Rspack plugins.
14
+ - Use [plugins](/configure/app/plugins.md) to configure Modern.js framework plugins.
15
+ - Use [tools.bundlerChain](/configure/app/tools/bundler-chain.md) to configure Rspack plugins.
20
16
 
21
17
  ## When to use
22
18
 
23
- In most scenarios, we recommend you to use the Modern.js framework plugin, which can be registered through the [plugins](/configure/app/plugins) config. Because the API provided by the framework plugin is richer and more capable, while the API provided by the Rsbuild plugin can only be used to build scenes.
19
+ In most scenarios, we recommend you to use the Modern.js framework plugin, which can be registered through the [plugins](/configure/app/plugins.md) config. Because the API provided by the framework plugin is richer and more capable, while the API provided by the Rsbuild plugin can only be used to build scenes.
24
20
 
25
21
  When you need to reference some existing Rsbuild plugins (and there is no related capability in Modern.js), or reuse Rsbuild plugins between different frameworks, you can use the `builderPlugins` field to register them.
26
22
 
@@ -1,7 +1,3 @@
1
- ---
2
- title: assetPrefix
3
- ---
4
-
5
1
  # dev.assetPrefix
6
2
 
7
3
  - **Type:** `boolean | string | 'auto'`
@@ -9,10 +5,9 @@ title: assetPrefix
9
5
 
10
6
  This configuration item is used to set the URL prefix of static resources in **development mode**.
11
7
 
12
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
13
-
14
- <RsbuildConfig configName="dev.assetPrefix" />
15
-
8
+ :::info
9
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.assetPrefix](https://v2.rsbuild.dev/config/dev/asset-prefix).
10
+ :::
16
11
  :::warning
17
- Please note that this configuration item is only applicable in development mode. In production mode, please use the [output.assetPrefix](/configure/app/output/asset-prefix) configuration item for setting.
12
+ Please note that this configuration item is only applicable in development mode. In production mode, please use the [output.assetPrefix](/configure/app/output/asset-prefix.md) configuration item for setting.
18
13
  :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: beforeStartUrl
3
- ---
4
-
5
1
  # dev.beforeStartUrl
6
2
 
7
3
  - **Type:** `() => Promise<void> | void`
@@ -1,7 +1,3 @@
1
- ---
2
- title: client
3
- ---
4
-
5
1
  # dev.client
6
2
 
7
3
  - **Type:**
@@ -40,6 +36,6 @@ const defaultConfig = {
40
36
 
41
37
  Configure the client code injected by Modern.js during the development process. This can be used to set the WebSocket URL for HMR.
42
38
 
43
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
44
-
45
- <RsbuildConfig configName="dev.client" />
39
+ :::info
40
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.client](https://v2.rsbuild.dev/config/dev/client).
41
+ :::
@@ -0,0 +1,10 @@
1
+ # dev.hmr
2
+
3
+ - **Type:** `boolean`
4
+ - **Default:** `true`
5
+
6
+ Whether to enable Hot Module Replacement.
7
+
8
+ :::info
9
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.hmr](https://v2.rsbuild.dev/config/dev/hmr).
10
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: host
3
- ---
4
-
5
1
  # dev.host
6
2
 
7
3
  - **Type:** `string`
@@ -1,7 +1,3 @@
1
- ---
2
- title: https
3
- ---
4
-
5
1
  # dev.https
6
2
 
7
3
  - **Type:** `boolean | { key: string; cert: string }`
@@ -1,7 +1,3 @@
1
- ---
2
- title: lazyCompilation
3
- ---
4
-
5
1
  # dev.lazyCompilation
6
2
 
7
3
  - **Type:**
@@ -37,9 +33,7 @@ type LazyCompilationOptions =
37
33
 
38
34
  Enable lazy compilation (compilation on demand), implemented based on Rspack's [lazy compilation](https://rspack.rs/guide/features/lazy-compilation) feature.
39
35
 
40
- import RsbuildLink from '@site/src/components/RsbuildLink';
41
-
42
36
  :::info
43
- The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to <RsbuildLink configName="dev.lazyCompilation"/>。
37
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.lazyCompilation](https://v2.rsbuild.dev/config/dev/lazy-compilation)。
44
38
  In Rspack build mode,
45
- :::
39
+ :::
@@ -0,0 +1,10 @@
1
+ # dev.liveReload
2
+
3
+ - **Type:** `boolean`
4
+ - **Default:** `true`
5
+
6
+ Whether to reload the page when source files are changed.
7
+
8
+ :::info
9
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.liveReload](https://v2.rsbuild.dev/config/dev/live-reload).
10
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: mockDir
3
- ---
4
-
5
1
  # dev.mockDir
6
2
 
7
3
  - **Type:** `string`
@@ -0,0 +1,19 @@
1
+ # dev.progressBar
2
+
3
+ - **Type:**
4
+
5
+ ```ts
6
+ type ProgressBar =
7
+ | boolean
8
+ | {
9
+ id?: string;
10
+ };
11
+ ```
12
+
13
+ - **Default:** true
14
+
15
+ Whether to display progress bar during compilation.
16
+
17
+ :::info
18
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.progressBar](https://v2.rsbuild.dev/config/dev/progress-bar).
19
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: server
3
- ---
4
-
5
1
  # dev.server
6
2
 
7
3
  - **Type:** `Object`
@@ -1,7 +1,3 @@
1
- ---
2
- title: setupMiddlewares
3
- ---
4
-
5
1
  # dev.setupMiddlewares
6
2
 
7
3
  - **Type:**
@@ -31,6 +27,6 @@ type SetupMiddlewares = Array<
31
27
 
32
28
  Provides the ability to execute a custom function and apply custom middlewares.
33
29
 
34
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
35
-
36
- <RsbuildConfig configName="dev.setupMiddlewares" />
30
+ :::info
31
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.setupMiddlewares](https://v2.rsbuild.dev/config/dev/setup-middlewares).
32
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: startUrl
3
- ---
4
-
5
1
  # dev.startUrl
6
2
 
7
3
  - **Type:** `boolean | string | string[] | undefined`
@@ -50,4 +46,3 @@ On MacOS, you can open the specified browser when Dev Server starts, by set envi
50
46
  - Brave Browser
51
47
  - Vivaldi
52
48
  - Chromium
53
-
@@ -1,7 +1,3 @@
1
- ---
2
- title: watchFiles
3
- ---
4
-
5
1
  # dev.watchFiles
6
2
 
7
3
  - **Type:**
@@ -26,6 +22,6 @@ type WatchFilesConfig = WatchFiles | WatchFiles[];
26
22
 
27
23
  Watch specified files and directories for changes. When a file change is detected, it can trigger a page reload or restart the dev server.
28
24
 
29
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
30
-
31
- <RsbuildConfig configName="dev.watchFiles" />
25
+ :::info
26
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.watchFiles](https://v2.rsbuild.dev/config/dev/watch-files).
27
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: writeToDisk
3
- ---
4
-
5
1
  # dev.writeToDisk
6
2
 
7
3
  - **Type:** `boolean | ((filename: string) => boolean)`
@@ -9,6 +5,6 @@ title: writeToDisk
9
5
 
10
6
  Controls whether the build output from development mode is written to disk.
11
7
 
12
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
13
-
14
- <RsbuildConfig configName="dev.writeToDisk" />
8
+ :::info
9
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.writeToDisk](https://v2.rsbuild.dev/config/dev/write-to-disk).
10
+ :::
@@ -1,6 +1,4 @@
1
- ---
2
- title: sourceBuild
3
- ---
1
+ # sourceBuild
4
2
 
5
3
  - **Type:** `boolean | PluginSourceBuildOptions`
6
4
  - **Default:** `false`