@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
@@ -1,7 +1,3 @@
1
- ---
2
- title: tsconfigPath
3
- ---
4
-
5
1
  # server.tsconfigPath
6
2
 
7
3
  - **Type:** `string`
@@ -1,11 +1,7 @@
1
- ---
2
- title: aliasStrategy
3
- ---
4
-
5
1
  # source.aliasStrategy
6
2
 
7
3
  :::warning Deprecation Warning
8
- `source.aliasStrategy` is deprecated, please use [resolve.aliasStrategy](/configure/app/resolve/alias-strategy) instead.
4
+ `source.aliasStrategy` is deprecated, please use [resolve.aliasStrategy](/configure/app/resolve/alias-strategy.md) instead.
9
5
  :::
10
6
 
11
7
  - **Type:** `'prefer-tsconfig' | 'prefer-alias'`
@@ -13,6 +9,6 @@ title: aliasStrategy
13
9
 
14
10
  `source.aliasStrategy` is used to control the priority between the `paths` option in `tsconfig.json` and the `alias` option in the bundler.
15
11
 
16
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
17
-
18
- <RsbuildConfig configName="source.aliasStrategy" />
12
+ :::info
13
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - source.aliasStrategy](https://v2.rsbuild.dev/config/source/alias-strategy).
14
+ :::
@@ -1,11 +1,7 @@
1
- ---
2
- title: alias
3
- ---
4
-
5
1
  # source.alias
6
2
 
7
3
  :::warning Deprecation Warning
8
- `source.alias` is deprecated, please use [resolve.alias](/configure/app/resolve/alias) instead.
4
+ `source.alias` is deprecated, please use [resolve.alias](/configure/app/resolve/alias.md) instead.
9
5
  :::
10
6
 
11
7
  - **Type:**
@@ -22,6 +18,6 @@ Create aliases to import or require certain modules, same as the [resolve.alias]
22
18
  For TypeScript projects, you only need to configure [compilerOptions.paths](https://www.typescriptlang.org/tsconfig#paths) in the `tsconfig.json` file. The Rsbuild will automatically recognize it, so there is no need to configure the `source.alias` option separately. For more details, please refer to [Path Aliases](https://modernjs.dev/en/guides/basic-features/alias.html).
23
19
  :::
24
20
 
25
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
26
-
27
- <RsbuildConfig configName="source.alias" />
21
+ :::info
22
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - source.alias](https://v2.rsbuild.dev/config/source/alias).
23
+ :::
@@ -1,13 +1,9 @@
1
- ---
2
- title: configDir
3
- ---
4
-
5
1
  # source.configDir
6
2
 
7
3
  - **Type:** `string`
8
4
  - **Default:** `'./config'`
9
5
 
10
- Modern.js supports placing some files in the `./config` folder to customize HTML templates, icons, static assets, etc. For details, please refer to [File Convention](/apis/app/hooks/config/html).
6
+ Modern.js supports placing some files in the `./config` folder to customize HTML templates, icons, static assets, etc. For details, please refer to [File Convention](/apis/app/hooks/config/html.md).
11
7
 
12
8
  This option allows you to customize the directory of the configuration files.
13
9
 
@@ -1,7 +1,3 @@
1
- ---
2
- title: decorators
3
- ---
4
-
5
1
  # source.decorators
6
2
 
7
3
  - **Type:**
@@ -1,7 +1,3 @@
1
- ---
2
- title: define
3
- ---
4
-
5
1
  # source.define
6
2
 
7
3
  - **Type:** `Record<string, unknown>`
@@ -15,6 +11,6 @@ const defaultDefine = {
15
11
 
16
12
  Replaces variables in your code with other values or expressions at compile time. This can be useful for allowing different behavior between development builds and production builds.
17
13
 
18
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
19
-
20
- <RsbuildConfig configName="source.define" />
14
+ :::info
15
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - source.define](https://v2.rsbuild.dev/config/source/define).
16
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: disableDefaultEntries
3
- ---
4
-
5
1
  # source.disableDefaultEntries
6
2
 
7
3
  - **Type:** `boolean`
@@ -10,7 +6,7 @@ title: disableDefaultEntries
10
6
  Used to disable the functionality of automatically identifying page entry points based on directory structure.
11
7
 
12
8
  :::info
13
- By default, Modern.js automatically determines the entry points of pages based on directory conventions, as described in [Entries](/guides/concept/entries).
9
+ By default, Modern.js automatically determines the entry points of pages based on directory conventions, as described in [Entries](/guides/concept/entries.md).
14
10
 
15
11
  :::
16
12
 
@@ -24,7 +20,7 @@ export default defineConfig({
24
20
  });
25
21
  ```
26
22
 
27
- After disabling the default behavior, you will need to use the [`source.entries`](/configure/app/source/entries) configuration to define custom entry points.
23
+ After disabling the default behavior, you will need to use the [`source.entries`](/configure/app/source/entries.md) configuration to define custom entry points.
28
24
 
29
25
  :::warning
30
26
  We recommend organizing your code using the directory conventions provided by Modern.js to make better use of the framework's functionality and to avoid some redundant configurations.
@@ -1,3 +1,14 @@
1
+ # source.enableAsyncEntry
2
+
3
+ - **Type:** `boolean`
4
+ - **Default:** `false`
5
+
6
+ This option is used for Rspack Module Federation scenario.
7
+
8
+ When this option is enabled, Modern.js will wrap the automatically generated entry files with dynamic import (Asynchronous Boundaries), allowing page code to consume remote modules generated by Module Federation.
9
+
10
+ ## Background
11
+
1
12
  Module Federation (MF) is a technology solution that allows multiple JavaScript applications to share code and resources. Similar to microservices architecture on the server side, it allows you to split large applications into multiple independent smaller applications that can be developed, tested, and deployed independently, while dynamically loading modules from other applications at runtime.
2
13
 
3
14
  Module Federation solves the problem of code duplication across multiple frontend applications. In the traditional approach, if multiple applications need to use the same components or utility functions, you would need to duplicate this code in each application, leading to code duplication, high maintenance costs, and larger application sizes. With Module Federation, you can place common code in one application and have other applications load it dynamically as needed, enabling code sharing and reducing duplication.
@@ -5,3 +16,39 @@ Module Federation solves the problem of code duplication across multiple fronten
5
16
  Module Federation 2.0 supports [Rspack](https://rspack.rs/) build tools, and provides enhanced features such as dynamic type hints, Manifest, Federation Runtime, runtime plugin system, and Chrome Devtools support for better development experience and debugging capabilities. You can visit the [Module Federation official documentation](https://module-federation.io/) to learn more.
6
17
 
7
18
  Modern.js provides an example project for Module Federation. Please refer to [module-federation-examples - modernjs](https://github.com/module-federation/module-federation-examples/tree/db5bdbeee56f779999a2c591fc553eb94eb20b36/modernjs).
19
+
20
+ ## Example
21
+
22
+ First, enable this option in the configuration file:
23
+
24
+ ```ts title="modern.config.ts"
25
+ export default defineConfig({
26
+ source: {
27
+ enableAsyncEntry: true,
28
+ },
29
+ });
30
+ ```
31
+
32
+ Then run the `dev` or `build` command, and you will see that the files automatically generated by Modern.js have the following structure:
33
+
34
+ ```bash
35
+ node_modules
36
+ └─ .modern-js
37
+ └─ main
38
+ ├─ bootstrap.jsx # asynchronous entry file
39
+ ├─ index.js # real entry code
40
+ └─ index.html
41
+ ```
42
+
43
+ The contents of `bootstrap.js` are as follows:
44
+
45
+ ```js
46
+ import('./index.jsx');
47
+ ```
48
+
49
+ At this point, you can consume any remote module in the current page.
50
+
51
+ :::info
52
+ Modern.js does not have ModuleFederationPlugin plugin built in. Please configure the ModuleFederationPlugin yourself via [tools.bundlerChain](/configure/app/tools/bundler-chain.md).
53
+
54
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: enableAsyncPreEntry
3
- ---
4
-
5
1
  # source.enableAsyncPreEntry
6
2
 
7
3
  - **Type:** `boolean`
@@ -1,7 +1,3 @@
1
- ---
2
- title: entriesDir
3
- ---
4
-
5
1
  # source.entriesDir
6
2
 
7
3
  - **Type:** `string`
@@ -1,7 +1,3 @@
1
- ---
2
- title: entries
3
- ---
4
-
5
1
  # source.entries
6
2
 
7
3
  - **Type:**
@@ -22,7 +18,7 @@ type Entries = Record<
22
18
  Used to configure custom page entries.
23
19
 
24
20
  :::tip When to use
25
- For most scenarios, the entry automatically generated by Modern.js based on the directory structure can meet the requirements. For details, please refer to [Entry](/guides/concept/entries).
21
+ For most scenarios, the entry automatically generated by Modern.js based on the directory structure can meet the requirements. For details, please refer to [Entry](/guides/concept/entries.md).
26
22
 
27
23
  If you need to customize page entries, you can set them through this option.
28
24
 
@@ -1,14 +1,10 @@
1
- ---
2
- title: exclude
3
- ---
4
-
5
1
  # source.exclude
6
2
 
7
- - **Type:** [RuleSetCondition[]](https://rspack.rs/config/module#condition)
3
+ - **Type:** [RuleSetCondition\[\]](https://rspack.rs/config/module#condition)
8
4
  - **Default:** `[]`
9
5
 
10
6
  Specifies JavaScript/TypeScript files that do not need to be compiled. The usage is consistent with [Rule.exclude](https://rspack.rs/config/module#ruleexclude) in Rspack, which supports passing in strings or regular expressions to match the module path.
11
7
 
12
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
13
-
14
- <RsbuildConfig configName="source.exclude" />
8
+ :::info
9
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - source.exclude](https://v2.rsbuild.dev/config/source/exclude).
10
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: globalVars
3
- ---
4
-
5
1
  # source.globalVars
6
2
 
7
3
  - **Type:** `Record<string, JSONValue> | Function`
@@ -1,10 +1,6 @@
1
- ---
2
- title: include
3
- ---
4
-
5
1
  # source.include
6
2
 
7
- - **Type:** [RuleSetCondition[]](https://rspack.rs/config/module#condition)
3
+ - **Type:** [RuleSetCondition\[\]](https://rspack.rs/config/module#condition)
8
4
  - **Default value:**
9
5
 
10
6
  ```ts
@@ -35,6 +31,6 @@ const defaultInclude = [
35
31
  The difference from the new version is that `.js`, `.mjs`, `.cjs` files only in the current directory will be compiled.
36
32
  :::
37
33
 
38
- import RsbuildConfig from '@site-docs/components/rsbuild-config-tooltip';
39
-
40
- <RsbuildConfig configName="source.include" />
34
+ :::info
35
+ 该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 [Rsbuild - source.include](https://v2.rsbuild.dev/config/source/include)。
36
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: mainEntryName
3
- ---
4
-
5
1
  # source.mainEntryName
6
2
 
7
3
  - **Type:** `string`
@@ -1,7 +1,3 @@
1
- ---
2
- title: preEntry
3
- ---
4
-
5
1
  # source.preEntry
6
2
 
7
3
  - **Type:** `string | string[]`
@@ -9,6 +5,6 @@ title: preEntry
9
5
 
10
6
  Add a script before the entry file of each page. This script will be executed before the page code. It can be used to execute global logics, such as injecting polyfills, setting global styles, etc.
11
7
 
12
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
13
-
14
- <RsbuildConfig configName="source.preEntry" />
8
+ :::info
9
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - source.preEntry](https://v2.rsbuild.dev/config/source/pre-entry).
10
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: reactCompiler
3
- ---
4
-
5
1
  # source.reactCompiler
6
2
 
7
3
  - **Type:** `boolean | ReactCompilerOptions`
@@ -1,7 +1,3 @@
1
- ---
2
- title: transformImport
3
- ---
4
-
5
1
  # source.transformImport
6
2
 
7
3
  Transform the import path, which can be used to modularly import the subpath of third-party packages. The functionality is similar to [babel-plugin-import](https://www.npmjs.com/package/babel-plugin-import)。
@@ -26,6 +22,6 @@ type TransformImport =
26
22
 
27
23
  - **Default:** `undefined`
28
24
 
29
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
30
-
31
- <RsbuildConfig configName="source.transformImport" />
25
+ :::info
26
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - source.transformImport](https://v2.rsbuild.dev/config/source/transform-import).
27
+ :::
@@ -12,6 +12,6 @@ type SplitChunksConfig =
12
12
 
13
13
  `splitChunks` is used to configure Rsbuild's chunk splitting strategy.
14
14
 
15
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
16
-
17
- <RsbuildConfig configName="splitChunks" />
15
+ :::info
16
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - splitChunks](https://v2.rsbuild.dev/config/split-chunks).
17
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: autoprefixer
3
- ---
4
-
5
1
  # tools.autoprefixer
6
2
 
7
3
  - **Type:** `Object | Function`
@@ -1,7 +1,3 @@
1
- ---
2
- title: bundlerChain
3
- ---
4
-
5
1
  # tools.bundlerChain
6
2
 
7
3
  - **Type:**
@@ -1,7 +1,3 @@
1
- ---
2
- title: cssExtract
3
- ---
4
-
5
1
  # tools.cssExtract
6
2
 
7
3
  - **Type:**
@@ -32,6 +28,6 @@ const defaultOptions = {
32
28
 
33
29
  The config of [CssExtractRspackPlugin](https://rspack.rs/plugins/rspack/css-extract-rspack-plugin) can be modified through `tools.cssExtract`.
34
30
 
35
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
36
-
37
- <RsbuildConfig configName="tools.cssExtract" />
31
+ :::info
32
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - tools.cssExtract](https://v2.rsbuild.dev/config/tools/css-extract).
33
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: cssLoader
3
- ---
4
-
5
1
  # tools.cssLoader
6
2
 
7
3
  - **Type:** `Object | Function`
@@ -16,6 +12,6 @@ const defaultOptions = {
16
12
 
17
13
  The config of [css-loader](https://github.com/webpack-contrib/css-loader) can be modified through `tools.cssLoader`.
18
14
 
19
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
20
-
21
- <RsbuildConfig configName="tools.cssLoader" />
15
+ :::info
16
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - tools.cssLoader](https://v2.rsbuild.dev/config/tools/css-loader).
17
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: devServer
3
- ---
4
-
5
1
  # tools.devServer
6
2
 
7
3
  - **Type:** `Object`
@@ -1,7 +1,3 @@
1
- ---
2
- title: htmlPlugin
3
- ---
4
-
5
1
  # tools.htmlPlugin
6
2
 
7
3
  - **Type:** `boolean | Object | Function`
@@ -40,6 +36,6 @@ SSR Application does not enable the `minify.removeComments` configuration, other
40
36
 
41
37
  The configs of [html-rspack-plugin](https://github.com/rstackjs/html-rspack-plugin) can be modified through `tools.htmlPlugin`.
42
38
 
43
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
44
-
45
- <RsbuildConfig configName="tools.htmlPlugin" />
39
+ :::info
40
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - tools.htmlPlugin](https://v2.rsbuild.dev/config/tools/html-plugin).
41
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: less
3
- ---
4
-
5
1
  # tools.less
6
2
 
7
3
  - **Type:** `Object | Function`
@@ -1,7 +1,3 @@
1
- ---
2
- title: lightningcssLoader
3
- ---
4
-
5
1
  # tools.lightningcssLoader
6
2
 
7
3
  - **Type:** `Rspack.LightningcssLoaderOptions | Function | boolean`
@@ -34,6 +30,6 @@ const defaultOptions = {
34
30
 
35
31
  It should be noted that when `lightningcss-loader` is turned on, `postcss-loader` will be turned off by default.
36
32
 
37
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
38
-
39
- <RsbuildConfig configName="tools.lightningcssLoader" />
33
+ :::info
34
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - tools.lightningcssLoader](https://v2.rsbuild.dev/config/tools/lightningcss-loader).
35
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: minifyCss
3
- ---
4
-
5
1
  # tools.minifyCss
6
2
 
7
3
  - **Type:** `Object | Function | undefined`
@@ -1,7 +1,3 @@
1
- ---
2
- title: postcss
3
- ---
4
-
5
1
  # tools.postcss
6
2
 
7
3
  - **Type:** `Object | Function`
@@ -33,6 +29,6 @@ Modern.js integrates PostCSS by default, you can configure [postcss-loader](http
33
29
 
34
30
  It should be noted that when you enable the `tools.lightningcss` configuration, PostCSS will be disabled by default, including `postcss-loader` and its default plugins.
35
31
 
36
- import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
37
-
38
- <RsbuildConfig configName="tools.postcss" />
32
+ :::info
33
+ The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - tools.postcss](https://v2.rsbuild.dev/config/tools/postcss).
34
+ :::
@@ -0,0 +1,10 @@
1
+ # tools.rspack
2
+
3
+ - **Type:** `Rspack.Configuration | Function | undefined`
4
+ - **Default:** `undefined`
5
+
6
+ `tools.rspack` is used to configure [Rspack](https://rspack.rs/).
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 - tools.rspack](https://v2.rsbuild.dev/config/tools/rspack).
10
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: sass
3
- ---
4
-
5
1
  # tools.sass
6
2
 
7
3
  - **Type:** `Object | Function`
@@ -0,0 +1,10 @@
1
+ # tools.styleLoader
2
+
3
+ - **Type:** `Object | Function`
4
+ - **Default:** `{}`
5
+
6
+ The config of [style-loader](https://github.com/webpack-contrib/style-loader) can be set through `tools.styleLoader`.
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 - tools.styleLoader](https://v2.rsbuild.dev/config/tools/style-loader).
10
+ :::
@@ -1,7 +1,3 @@
1
- ---
2
- title: swc
3
- ---
4
-
5
1
  # tools.swc
6
2
 
7
3
  - **Type:** `Object | Function`
@@ -9,9 +5,9 @@ title: swc
9
5
 
10
6
  ## Introduction
11
7
 
12
- import SWC from '@site-docs-en/components/swc.mdx';
8
+ [SWC](https://SWC.rs/) (Speedy Web Compiler) is a transformer and minimizer for JavaScript and TypeScript based on `Rust`. SWC can provide the same abilities with Babel, and it's more than 10x faster than Babel.
13
9
 
14
- <SWC />
10
+ Modern.js has a out-of-box plugin for SWC, power your Web application with Polyfill and minification, we also port some common used Babel plugins to SWC.
15
11
 
16
12
  :::tip
17
13
  When using Rspack as the bundler, SWC will be used for transpiling and compression by default, so you don't need to install or configure the SWC plugin.
@@ -55,9 +51,9 @@ export default {
55
51
  };
56
52
  ```
57
53
 
58
- Please note that the SWC plugin is still an experimental feature, and the SWC Wasm plugin is currently not backward compatible. The version of the SWC plugin is closely tied to the version of swc_core that Rspack depends on.
54
+ Please note that the SWC plugin is still an experimental feature, and the SWC Wasm plugin is currently not backward compatible. The version of the SWC plugin is closely tied to the version of swc\_core that Rspack depends on.
59
55
 
60
- This means that you must to choose an SWC plugin that matches the current version of swc_core to ensure that it works properly. If the version of the SWC plugin you are using does not match the version of swc_core that Rspack depends on, Rspack will throw the following error during the build process:
56
+ This means that you must to choose an SWC plugin that matches the current version of swc\_core to ensure that it works properly. If the version of the SWC plugin you are using does not match the version of swc\_core that Rspack depends on, Rspack will throw the following error during the build process:
61
57
 
62
58
  ```
63
59
  1: failed to run Wasm plugin transform. Please ensure the version of `swc_core`
@@ -1,9 +1,3 @@
1
- ---
2
- title: tsChecker
3
- ---
4
-
5
- import { PackageManagerTabs } from '@theme';
6
-
7
1
  # tools.tsChecker
8
2
 
9
3
  - **Type:** `Object | Function`
@@ -82,7 +76,26 @@ Type checking runs on [TypeScript Go](https://github.com/microsoft/typescript-go
82
76
 
83
77
  Modern.js prefers the project's stable `typescript` package when it is TypeScript 7 or newer, and falls back to `@typescript/native-preview` for projects still on the preview lane. To pin stable TypeScript 7, install it in your project:
84
78
 
85
- <PackageManagerTabs command="install typescript -D" />
79
+
80
+ ```sh [npm]
81
+ npm install typescript -D
82
+ ```
83
+
84
+ ```sh [yarn]
85
+ yarn add typescript -D
86
+ ```
87
+
88
+ ```sh [pnpm]
89
+ pnpm add typescript -D
90
+ ```
91
+
92
+ ```sh [bun]
93
+ bun add typescript -D
94
+ ```
95
+
96
+ ```sh [deno]
97
+ deno add npm:typescript -D
98
+ ```
86
99
 
87
100
  When `tsgo` is enabled, the default `typescript.typescriptPath` resolves to `typescript/package.json` for TypeScript 7 projects. If you manually set `typescript.typescriptPath`, it must be an absolute path to `typescript/package.json` or `@typescript/native-preview/package.json`.
88
101
 
@@ -255,7 +255,7 @@ const config: AppUserConfig = {
255
255
 
256
256
  ## Runtime Configuration
257
257
 
258
- For detailed information on runtime configuration, please refer to the [Introduction to Runtime Configuration](/configure/app/runtime/0-intro.html).
258
+ For detailed information on runtime configuration, please refer to the [Introduction to Runtime Configuration](/configure/app/runtime/0-intro.md).
259
259
 
260
260
  :::tip
261
261
  If the current Runtime configuration needs to be used both at compile time and runtime, please add the relevant configuration parameters at the plugin registration location.
@@ -1,5 +1,3 @@
1
- import { PackageManagerTabs } from '@theme';
2
-
3
1
  # Cross-Project Invocation
4
2
 
5
3
  Based on the BFF architecture, Modern.js provides cross-project invocation capabilities, allowing BFF functions created in one project to be invoked by other projects through integrated calls, enabling function sharing and feature reuse across projects.
@@ -9,6 +7,7 @@ Cross-project invocation consists of **producer** and **consumer** sides. The pr
9
7
 
10
8
  Enable cross-project invocation via configuration. Projects with BFF capabilities enabled can act as BFF producers, or you can create standalone BFF applications.
11
9
  When executing `dev` or `build`, the following artifacts for consumers will be automatically generated:
10
+
12
11
  - API functions under the `dist/client` directory
13
12
  - Runtime configuration functions under the `dist/runtime` directory
14
13
  - Interface exports defined in `exports` field of `package.json`
@@ -1,7 +1,3 @@
1
- ---
2
- title: Data Platform
3
- ---
4
-
5
1
  # Data Platform
6
2
 
7
3
  Modern.js Effect API runtime now supports a request-envelope based data platform contract for safer and more predictable data orchestration in complex applications such as Module Federation and micro frontends.
@@ -2,7 +2,7 @@
2
2
 
3
3
  In some applications, developers may want to handle all BFF functions uniformly, such as authentication, logging, data processing, etc.
4
4
 
5
- Modern.js allows users to freely extend the BFF Server through [Middleware](/guides/advanced-features/web-server.html#middleware) method.
5
+ Modern.js allows users to freely extend the BFF Server through [Middleware](/guides/advanced-features/web-server.md#middleware) method.
6
6
 
7
7
  ## Using Middleware
8
8