@modern-js/main-doc 2.0.0-beta.2 → 2.0.0-beta.3

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 (276) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/en/docusaurus-plugin-content-docs/current/apis/app/commands/new.md +0 -2
  3. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/bootstrap.md +17 -3
  4. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/create-app.md +1 -1
  5. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-store.md +0 -22
  6. package/en/docusaurus-plugin-content-docs/current/components/reduck-migration.md +1 -0
  7. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/asset-prefix.md +1 -1
  8. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/hmr.md +1 -1
  9. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/https.md +1 -1
  10. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/port.md +1 -1
  11. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/progress-bar.md +1 -1
  12. package/en/docusaurus-plugin-content-docs/current/configure/app/dev/start-url.md +1 -1
  13. package/en/docusaurus-plugin-content-docs/current/configure/app/experiments/lazy-compilation.md +1 -1
  14. package/en/docusaurus-plugin-content-docs/current/configure/app/html/app-icon.md +1 -1
  15. package/en/docusaurus-plugin-content-docs/current/configure/app/html/crossorigin.md +1 -1
  16. package/en/docusaurus-plugin-content-docs/current/configure/app/html/disable-html-folder.md +1 -1
  17. package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon-by-entries.md +1 -1
  18. package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon.md +1 -1
  19. package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject-by-entries.md +1 -1
  20. package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject.md +1 -1
  21. package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta-by-entries.md +1 -1
  22. package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta.md +1 -1
  23. package/en/docusaurus-plugin-content-docs/current/configure/app/html/mount-id.md +1 -1
  24. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-by-entries.md +1 -1
  25. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters-by-entries.md +1 -1
  26. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters.md +1 -1
  27. package/en/docusaurus-plugin-content-docs/current/configure/app/html/template.md +1 -1
  28. package/en/docusaurus-plugin-content-docs/current/configure/app/html/title-by-entries.md +1 -1
  29. package/en/docusaurus-plugin-content-docs/current/configure/app/html/title.md +1 -1
  30. package/en/docusaurus-plugin-content-docs/current/configure/app/output/asset-prefix.md +1 -1
  31. package/en/docusaurus-plugin-content-docs/current/configure/app/output/assets-retry.md +1 -1
  32. package/en/docusaurus-plugin-content-docs/current/configure/app/output/charset.md +1 -1
  33. package/en/docusaurus-plugin-content-docs/current/configure/app/output/clean-dist-path.md +1 -1
  34. package/en/docusaurus-plugin-content-docs/current/configure/app/output/convert-to-rem.md +1 -1
  35. package/en/docusaurus-plugin-content-docs/current/configure/app/output/copy.md +1 -1
  36. package/en/docusaurus-plugin-content-docs/current/configure/app/output/css-module-local-ident-name.md +1 -1
  37. package/en/docusaurus-plugin-content-docs/current/configure/app/output/data-uri-limit.md +1 -1
  38. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-extract.md +1 -1
  39. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-module-extension.md +1 -1
  40. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-filename-hash.md +1 -1
  41. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-inline-runtime-chunk.md +1 -1
  42. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-minimize.md +1 -1
  43. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-source-map.md +1 -1
  44. package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-ts-checker.md +1 -1
  45. package/en/docusaurus-plugin-content-docs/current/configure/app/output/dist-path.md +1 -1
  46. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-fallback.md +1 -1
  47. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-manifest.md +1 -1
  48. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-css-module-tsdeclaration.md +1 -1
  49. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-scripts.md +1 -1
  50. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-styles.md +1 -1
  51. package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-latest-decorators.md +1 -1
  52. package/en/docusaurus-plugin-content-docs/current/configure/app/output/externals.md +1 -1
  53. package/en/docusaurus-plugin-content-docs/current/configure/app/output/filename.md +1 -1
  54. package/en/docusaurus-plugin-content-docs/current/configure/app/output/legal-comments.md +1 -1
  55. package/en/docusaurus-plugin-content-docs/current/configure/app/output/override-browserslist.md +1 -1
  56. package/en/docusaurus-plugin-content-docs/current/configure/app/output/polyfill.md +1 -1
  57. package/en/docusaurus-plugin-content-docs/current/configure/app/output/svg-default-export.md +1 -1
  58. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/build-cache.md +1 -1
  59. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/bundle-analyze.md +1 -1
  60. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/chunk-split.md +1 -1
  61. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/print-file-size.md +1 -1
  62. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/profile.md +1 -1
  63. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-console.md +1 -1
  64. package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-moment-locale.md +1 -1
  65. package/en/docusaurus-plugin-content-docs/current/configure/app/plugins.md +1 -1
  66. package/en/docusaurus-plugin-content-docs/current/configure/app/security/sri.md +1 -1
  67. package/en/docusaurus-plugin-content-docs/current/configure/app/source/alias.md +1 -1
  68. package/en/docusaurus-plugin-content-docs/current/configure/app/source/compile-js-data-uri.md +1 -1
  69. package/en/docusaurus-plugin-content-docs/current/configure/app/source/define.md +1 -1
  70. package/en/docusaurus-plugin-content-docs/current/configure/app/source/exclude.md +1 -1
  71. package/en/docusaurus-plugin-content-docs/current/configure/app/source/global-vars.md +1 -1
  72. package/en/docusaurus-plugin-content-docs/current/configure/app/source/include.md +1 -1
  73. package/en/docusaurus-plugin-content-docs/current/configure/app/source/module-scopes.md +1 -1
  74. package/en/docusaurus-plugin-content-docs/current/configure/app/source/pre-entry.md +1 -1
  75. package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-extension-prefix.md +1 -1
  76. package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-main-fields.md +1 -1
  77. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/autoprefixer.md +1 -1
  78. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/babel.md +1 -1
  79. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-extract.md +1 -1
  80. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-loader.md +1 -1
  81. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/dev-server.md +1 -1
  82. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/html-plugin.md +1 -1
  83. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/inspector.md +1 -1
  84. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/less.md +1 -1
  85. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/minify-css.md +1 -1
  86. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/postcss.md +1 -1
  87. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/pug.md +1 -1
  88. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/sass.md +1 -1
  89. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/style-loader.md +1 -1
  90. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/styled-components.md +1 -1
  91. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/swc.md +42 -0
  92. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/terser.md +1 -1
  93. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-checker.md +1 -1
  94. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-loader.md +1 -1
  95. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack-chain.md +1 -1
  96. package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack.md +1 -1
  97. package/en/docusaurus-plugin-content-docs/current/guides/basic-features/builder.md +46 -0
  98. package/en/docusaurus-plugin-content-docs/current.json +18 -18
  99. package/package.json +3 -3
  100. package/scripts/config.ts +2 -2
  101. package/zh/apis/app/commands/new.md +0 -2
  102. package/zh/apis/app/runtime/app/_category_.json +1 -1
  103. package/zh/apis/app/runtime/bff/_category_.json +1 -1
  104. package/zh/apis/app/runtime/core/_category_.json +1 -1
  105. package/zh/apis/app/runtime/core/bootstrap.md +17 -3
  106. package/zh/apis/app/runtime/model/_category_.json +1 -1
  107. package/zh/apis/app/runtime/model/create-app.md +1 -1
  108. package/zh/apis/app/runtime/model/use-store.md +1 -23
  109. package/zh/apis/app/runtime/router/_category_.json +1 -1
  110. package/zh/apis/app/runtime/ssr/_category_.json +1 -1
  111. package/zh/apis/app/runtime/testing/_category_.json +1 -1
  112. package/zh/apis/app/runtime/utility/_category_.json +1 -1
  113. package/zh/apis/app/runtime/web-server/_category_.json +1 -1
  114. package/zh/components/reduck-migration.md +1 -0
  115. package/zh/configure/app/dev/asset-prefix.md +1 -1
  116. package/zh/configure/app/dev/hmr.md +1 -1
  117. package/zh/configure/app/dev/https.md +1 -1
  118. package/zh/configure/app/dev/port.md +1 -1
  119. package/zh/configure/app/dev/progress-bar.md +1 -1
  120. package/zh/configure/app/dev/start-url.md +1 -1
  121. package/zh/configure/app/experiments/_category_.json +4 -0
  122. package/zh/configure/app/experiments/lazy-compilation.md +1 -1
  123. package/zh/configure/app/html/_category_.json +4 -0
  124. package/zh/configure/app/html/app-icon.md +1 -1
  125. package/zh/configure/app/html/crossorigin.md +1 -1
  126. package/zh/configure/app/html/disable-html-folder.md +1 -1
  127. package/zh/configure/app/html/favicon-by-entries.md +1 -1
  128. package/zh/configure/app/html/favicon.md +1 -1
  129. package/zh/configure/app/html/inject-by-entries.md +1 -1
  130. package/zh/configure/app/html/inject.md +1 -1
  131. package/zh/configure/app/html/meta-by-entries.md +1 -1
  132. package/zh/configure/app/html/meta.md +1 -1
  133. package/zh/configure/app/html/mount-id.md +1 -1
  134. package/zh/configure/app/html/template-by-entries.md +1 -1
  135. package/zh/configure/app/html/template-parameters-by-entries.md +1 -1
  136. package/zh/configure/app/html/template-parameters.md +1 -1
  137. package/zh/configure/app/html/template.md +1 -1
  138. package/zh/configure/app/html/title-by-entries.md +1 -1
  139. package/zh/configure/app/html/title.md +1 -1
  140. package/zh/configure/app/output/asset-prefix.md +1 -1
  141. package/zh/configure/app/output/assets-retry.md +1 -1
  142. package/zh/configure/app/output/charset.md +1 -1
  143. package/zh/configure/app/output/clean-dist-path.md +1 -1
  144. package/zh/configure/app/output/convert-to-rem.md +1 -1
  145. package/zh/configure/app/output/copy.md +1 -1
  146. package/zh/configure/app/output/css-module-local-ident-name.md +1 -1
  147. package/zh/configure/app/output/data-uri-limit.md +1 -1
  148. package/zh/configure/app/output/disable-css-extract.md +1 -1
  149. package/zh/configure/app/output/disable-css-module-extension.md +1 -1
  150. package/zh/configure/app/output/disable-filename-hash.md +1 -1
  151. package/zh/configure/app/output/disable-inline-runtime-chunk.md +1 -1
  152. package/zh/configure/app/output/disable-minimize.md +1 -1
  153. package/zh/configure/app/output/disable-source-map.md +1 -1
  154. package/zh/configure/app/output/disable-ts-checker.md +1 -1
  155. package/zh/configure/app/output/dist-path.md +1 -1
  156. package/zh/configure/app/output/enable-asset-fallback.md +1 -1
  157. package/zh/configure/app/output/enable-asset-manifest.md +1 -1
  158. package/zh/configure/app/output/enable-css-module-tsdeclaration.md +1 -1
  159. package/zh/configure/app/output/enable-inline-scripts.md +1 -1
  160. package/zh/configure/app/output/enable-inline-styles.md +1 -1
  161. package/zh/configure/app/output/enable-latest-decorators.md +1 -1
  162. package/zh/configure/app/output/externals.md +1 -1
  163. package/zh/configure/app/output/filename.md +1 -1
  164. package/zh/configure/app/output/legal-comments.md +1 -1
  165. package/zh/configure/app/output/override-browserslist.md +1 -1
  166. package/zh/configure/app/output/polyfill.md +1 -1
  167. package/zh/configure/app/output/ssg.md +118 -114
  168. package/zh/configure/app/output/svg-default-export.md +1 -1
  169. package/zh/configure/app/performance/_category_.json +4 -0
  170. package/zh/configure/app/performance/build-cache.md +1 -1
  171. package/zh/configure/app/performance/bundle-analyze.md +1 -1
  172. package/zh/configure/app/performance/chunk-split.md +1 -1
  173. package/zh/configure/app/performance/print-file-size.md +1 -1
  174. package/zh/configure/app/performance/profile.md +1 -1
  175. package/zh/configure/app/performance/remove-console.md +1 -1
  176. package/zh/configure/app/performance/remove-moment-locale.md +1 -1
  177. package/zh/configure/app/plugins.md +1 -1
  178. package/zh/configure/app/runtime/state.md +13 -0
  179. package/zh/configure/app/security/_category_.json +4 -0
  180. package/zh/configure/app/security/sri.md +1 -1
  181. package/zh/configure/app/server/ssr.md +0 -2
  182. package/zh/configure/app/source/alias.md +1 -1
  183. package/zh/configure/app/source/compile-js-data-uri.md +1 -1
  184. package/zh/configure/app/source/define.md +1 -1
  185. package/zh/configure/app/source/exclude.md +1 -1
  186. package/zh/configure/app/source/global-vars.md +1 -1
  187. package/zh/configure/app/source/include.md +1 -1
  188. package/zh/configure/app/source/module-scopes.md +1 -1
  189. package/zh/configure/app/source/pre-entry.md +1 -1
  190. package/zh/configure/app/source/resolve-extension-prefix.md +1 -1
  191. package/zh/configure/app/source/resolve-main-fields.md +1 -1
  192. package/zh/configure/app/tools/autoprefixer.md +1 -1
  193. package/zh/configure/app/tools/babel.md +1 -1
  194. package/zh/configure/app/tools/css-extract.md +1 -1
  195. package/zh/configure/app/tools/css-loader.md +1 -1
  196. package/zh/configure/app/tools/dev-server.md +1 -1
  197. package/zh/configure/app/tools/html-plugin.md +1 -1
  198. package/zh/configure/app/tools/inspector.md +1 -1
  199. package/zh/configure/app/tools/less.md +1 -1
  200. package/zh/configure/app/tools/minify-css.md +1 -1
  201. package/zh/configure/app/tools/postcss.md +1 -1
  202. package/zh/configure/app/tools/pug.md +1 -1
  203. package/zh/configure/app/tools/sass.md +1 -1
  204. package/zh/configure/app/tools/style-loader.md +1 -1
  205. package/zh/configure/app/tools/styled-components.md +1 -1
  206. package/zh/configure/app/tools/swc.md +42 -0
  207. package/zh/configure/app/tools/terser.md +1 -1
  208. package/zh/configure/app/tools/ts-checker.md +1 -1
  209. package/zh/configure/app/tools/ts-loader.md +1 -1
  210. package/zh/configure/app/tools/webpack-chain.md +1 -1
  211. package/zh/configure/app/tools/webpack.md +1 -1
  212. package/zh/guides/advanced-features/custom-app.md +8 -2
  213. package/zh/guides/advanced-features/ssg.md +74 -63
  214. package/zh/guides/advanced-features/ssr.md +74 -11
  215. package/zh/guides/basic-features/builder.md +46 -0
  216. package/zh/guides/basic-features/css/_category_.json +1 -1
  217. package/zh/guides/basic-features/css/less-sass.md +1 -14
  218. package/zh/guides/basic-features/data-fetch.md +1 -1
  219. package/zh/guides/basic-features/env-vars.md +34 -0
  220. package/zh/guides/basic-features/routes.md +32 -35
  221. package/zh/guides/concept/entries.md +4 -4
  222. package/zh/guides/topic-detail/framework-plugin/extend.md +3 -4
  223. package/zh/{apis/app/runtime/plugin/hook-api.md → guides/topic-detail/framework-plugin/hook-list.md} +42 -135
  224. package/zh/{apis/app/runtime/plugin → guides/topic-detail/framework-plugin}/hook.md +2 -3
  225. package/zh/guides/topic-detail/framework-plugin/implement.md +21 -10
  226. package/zh/guides/topic-detail/framework-plugin/introduction.md +49 -0
  227. package/{en/docusaurus-plugin-content-docs/current/apis/app/runtime/plugin → zh/guides/topic-detail/framework-plugin}/plugin-api.md +3 -4
  228. package/zh/guides/topic-detail/framework-plugin/relationship.md +2 -3
  229. package/zh/guides/topic-detail/model/quick-start.md +4 -0
  230. package/zh/tutorials/first-app/c01-getting-started/1.2-minimal-mwa.md +2 -2
  231. package/zh/tutorials/first-app/c01-getting-started/1.4-enable-ssr.md +5 -2
  232. package/zh/tutorials/first-app/c02-generator-and-studio/2.2-boilerplates.md +4 -6
  233. package/zh/tutorials/first-app/c02-generator-and-studio/2.3-configuration.md +2 -4
  234. package/zh/tutorials/first-app/c03-ide/3.1-setting-up.md +1 -1
  235. package/zh/tutorials/first-app/c03-ide/3.2-hints-in-ide.md +44 -50
  236. package/zh/tutorials/first-app/c03-ide/3.3-autofix-in-ide.md +1 -1
  237. package/zh/tutorials/first-app/c03-ide/3.4-autofix-in-cli.md +4 -4
  238. package/zh/tutorials/first-app/c04-es6-plus-and-ts/4.1-use-es6-plus.md +8 -21
  239. package/zh/tutorials/first-app/c04-es6-plus-and-ts/4.2-use-typescript.md +37 -13
  240. package/zh/tutorials/first-app/c05-component/5.1-use-ui-library.md +3 -13
  241. package/zh/tutorials/first-app/c05-component/5.2-use-standalone-component.md +1 -21
  242. package/zh/tutorials/first-app/c06-css-and-component/6.1-css-in-js.md +9 -9
  243. package/zh/tutorials/first-app/c06-css-and-component/6.2-utility-class.md +9 -14
  244. package/zh/tutorials/first-app/c06-css-and-component/6.3-postcss.md +7 -7
  245. package/zh/tutorials/first-app/c06-css-and-component/6.4-design-system.md +1 -1
  246. package/zh/tutorials/first-app/c06-css-and-component/6.5-storybook.md +2 -2
  247. package/zh/tutorials/first-app/c06-css-and-component/6.6-testing.md +8 -17
  248. package/zh/tutorials/first-app/c07-app-entry/7.1-intro.md +23 -18
  249. package/zh/tutorials/first-app/c07-app-entry/7.2-add-entry-in-cli.md +30 -30
  250. package/zh/tutorials/first-app/c07-app-entry/7.3-manage-entries-by-hand.md +4 -9
  251. package/zh/tutorials/first-app/c08-client-side-routing/8.1-code-based-routing.md +66 -63
  252. package/zh/tutorials/first-app/c09-bff/9.2-enable-bff.md +35 -33
  253. package/zh/tutorials/first-app/c09-bff/9.3-fetch-bff.md +28 -102
  254. package/zh/tutorials/first-app/c10-model/10.1-application-architecture.md +4 -6
  255. package/zh/tutorials/first-app/c10-model/10.2-add-model.md +3 -3
  256. package/zh/tutorials/first-app/c10-model/10.3-use-model.md +21 -20
  257. package/zh/tutorials/first-app/c10-model/10.4-testing.md +2 -2
  258. package/zh/tutorials/first-app/c11-container/11.1-use-model-with-app-state.md +34 -68
  259. package/zh/tutorials/first-app/c11-container/11.2-add-container.md +40 -37
  260. package/zh/tutorials/first-app/c11-container/11.3-use-loader.md +6 -4
  261. package/zh/tutorials/first-app/c11-container/11.4-testing.md +2 -2
  262. package/zh/tutorials/foundations/introduction.md +1 -1
  263. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/default-alias.md +0 -25
  264. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/plugin/_category_.json +0 -4
  265. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/plugin/abstract.md +0 -26
  266. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/plugin/hook-api.md +0 -896
  267. package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/plugin/hook.md +0 -170
  268. package/zh/apis/app/runtime/default-alias.md +0 -23
  269. package/zh/apis/app/runtime/plugin/_category_.json +0 -4
  270. package/zh/apis/app/runtime/plugin/abstract.md +0 -26
  271. package/zh/apis/app/runtime/plugin/plugin-api.md +0 -117
  272. package/zh/guides/basic-features/image.md +0 -43
  273. package/zh/guides/topic-detail/compile-speed.md +0 -182
  274. package/zh/guides/topic-detail/framework-plugin/abstract.md +0 -27
  275. package/zh/guides/troubleshooting/compile.md +0 -379
  276. package/zh/tutorials/first-app/c08-client-side-routing/8.2-file-based-routing.md +0 -310
package/package.json CHANGED
@@ -11,20 +11,20 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.0.0-beta.2",
14
+ "version": "2.0.0-beta.3",
15
15
  "publishConfig": {
16
16
  "registry": "https://registry.npmjs.org/",
17
17
  "access": "public"
18
18
  },
19
19
  "peerDependencies": {
20
- "@modern-js/builder-doc": "2.0.0-beta.2"
20
+ "@modern-js/builder-doc": "2.0.0-beta.3"
21
21
  },
22
22
  "devDependencies": {
23
23
  "ts-node": "^10",
24
24
  "fs-extra": "^10",
25
25
  "@types/node": "^16",
26
26
  "@types/fs-extra": "^9",
27
- "@modern-js/builder-doc": "2.0.0-beta.2"
27
+ "@modern-js/builder-doc": "2.0.0-beta.3"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "npx ts-node ./scripts/sync.ts"
package/scripts/config.ts CHANGED
@@ -2,8 +2,8 @@ import path from 'path';
2
2
  import fs from 'fs-extra';
3
3
 
4
4
  const tip: Record<string, string> = {
5
- zh: '该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考',
6
- en: 'This configuration is Modern.js Builder configuration, there may be links that cannot be redirected. for details, please refer to',
5
+ zh: '该配置为 Modern.js Builder 配置,详细信息可参考',
6
+ en: 'This configuration is Modern.js Builder configuration, more detail can see',
7
7
  };
8
8
 
9
9
  export type Summary = {
@@ -43,8 +43,6 @@ $ npx modern new
43
43
  ? 请选择你想要的操作 启用可选功能
44
44
  ? 启用可选功能 (Use arrow keys)
45
45
  ❯ 启用 Tailwind CSS 支持
46
- 启用 Less 支持
47
- 启用 Sass 支持
48
46
  启用「BFF」功能
49
47
  启用「微前端」模式
50
48
  启用「单元测试 / 集成测试」功能
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "APP API",
2
+ "label": "APP",
3
3
  "position": 4
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "BFF API",
2
+ "label": "BFF",
3
3
  "position": 8
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "核心 API",
2
+ "label": "核心",
3
3
  "position": 3
4
4
  }
@@ -7,25 +7,39 @@ title: bootstrap
7
7
  ## 使用姿势
8
8
 
9
9
  ```ts
10
+ import ReactDOM from 'react-dom/client'
10
11
  import { bootstrap } from '@modern-js/runtime';
11
12
 
12
- bootstrap(App, 'root');
13
+ bootstrap(App, 'root', undefined, ReactDOM);
13
14
  ```
14
15
 
15
16
  ## 函数签名
16
17
 
17
18
  ```ts
18
- function bootstrap(AppComponent: React.ComponentType<any>, rootId: string): React.ComponentType<any> | void
19
+ type BootStrap<T = unknown> = (
20
+ App: React.ComponentType,
21
+ id: string | HTMLElement | RuntimeContext,
22
+ root?: any,
23
+ ReactDOM?: {
24
+ render?: Renderer;
25
+ hydrate?: Renderer;
26
+ createRoot?: typeof createRoot;
27
+ hydrateRoot?: typeof hydrateRoot;
28
+ },
29
+ ) => Promise<T>;
19
30
  ```
20
31
 
21
32
  ### 参数
22
33
 
23
34
  - `AppComponent`:通过 [`createApp`](./create-app) 创建的 ReactElement 实例。
24
35
  - `rootId`:要挂载的 DOM 根元素 id,如 `"root"`。
36
+ - `root`: ReactDOM.createRoot 的返回值,用于 bootstrap 函数外需要 root 销毁组件的场景。
37
+ - `ReactDOM`: ReactDOM 对象,用于区分 React 18 和 React 17 API。
25
38
 
26
39
  ## 示例
27
40
 
28
41
  ```tsx
42
+ import ReactDOM from 'react-dom/client'
29
43
  import { createApp, bootstrap } from '@modern-js/runtime';
30
44
  import { router, state } from '@modern-js/runtime/plugins';
31
45
 
@@ -38,7 +52,7 @@ const WrappedApp = createApp({
38
52
  plugins: [router({}), state({})],
39
53
  })(App);
40
54
 
41
- bootstrap(WrappedApp, 'root');
55
+ bootstrap(WrappedApp, 'root', undefined, ReactDOM);
42
56
 
43
57
  ```
44
58
 
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "Model API",
2
+ "label": "Model",
3
3
  "position": 6
4
4
  }
@@ -29,7 +29,7 @@ function createApp(config: AppConfig): object;
29
29
  - config:`Record<string, any>`
30
30
  - StoreConfig:同 [`createStore`](./create-store.md) 的参数。
31
31
  - devTools:默认值为true。是否开启 Redux DevTools,当为对象类型时,支持配置 Redux DevTools 的 [Options](https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md)。
32
- - autoActins:默认值为true。是否[自动生成 Actions](./auto-actions.md)。
32
+ - autoActions:默认值为true。是否[自动生成 Actions](./auto-actions.md)。
33
33
 
34
34
  ### 返回值
35
35
 
@@ -20,29 +20,7 @@ function useStore(): ReduckStore;
20
20
 
21
21
  - ReduckStore:Reduck Store,类型参考 [createStore](./create-store.md) 返回值。
22
22
 
23
- ## 示例
24
-
25
- ```ts
26
- // 保证 getStore 在组件树挂载完成后执行
27
- setTimeout(() => {
28
- const store = getStore();
29
- const [, actions] = store.use(countModel);
30
- setInterval(() => {
31
- actions.add();
32
- }, 1000);
33
- }, 1000);
34
-
35
- function Counter() {
36
- const [state] = useModel(countModel);
37
-
38
- return (
39
- <div>
40
- <div>counter: {state.value}</div>
41
- </div>
42
- );
43
- }
44
- ```
45
23
 
46
24
  :::info 更多参考
47
- [使用 Model](/docs/guides/topic-detail/model/use-model)
25
+ [使用 Model](/docs/guides/topic-detail/model/use-model#在组件外使用)
48
26
  :::
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "Router API",
2
+ "label": "Router",
3
3
  "position": 5
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "SSR API",
2
+ "label": "SSR",
3
3
  "position": 7
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "Testing API",
2
+ "label": "Testing",
3
3
  "position": 11
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "Utility API",
2
+ "label": "Utility",
3
3
  "position": 10
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "label": "Web Server API",
2
+ "label": "Web Server",
3
3
  "position": 9
4
4
  }
@@ -0,0 +1 @@
1
+
@@ -4,7 +4,7 @@ sidebar_label: assetPrefix
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [dev.assetPrefix](https://modernjs.dev/builder/zh/api/config-dev.html#dev-assetprefix)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [dev.assetPrefix](https://modernjs.dev/builder/zh/api/config-dev.html#dev-assetprefix)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/dev/assetPrefix.md'
@@ -4,7 +4,7 @@ sidebar_label: hmr
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [dev.hmr](https://modernjs.dev/builder/zh/api/config-dev.html#dev-hmr)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [dev.hmr](https://modernjs.dev/builder/zh/api/config-dev.html#dev-hmr)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/dev/hmr.md'
@@ -4,7 +4,7 @@ sidebar_label: https
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [dev.https](https://modernjs.dev/builder/zh/api/config-dev.html#dev-https)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [dev.https](https://modernjs.dev/builder/zh/api/config-dev.html#dev-https)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/dev/https.md'
@@ -4,7 +4,7 @@ sidebar_label: port
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [dev.port](https://modernjs.dev/builder/zh/api/config-dev.html#dev-port)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [dev.port](https://modernjs.dev/builder/zh/api/config-dev.html#dev-port)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/dev/port.md'
@@ -4,7 +4,7 @@ sidebar_label: progressBar
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [dev.progressBar](https://modernjs.dev/builder/zh/api/config-dev.html#dev-progressbar)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [dev.progressBar](https://modernjs.dev/builder/zh/api/config-dev.html#dev-progressbar)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/dev/progressBar.md'
@@ -4,7 +4,7 @@ sidebar_label: startUrl
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [dev.startUrl](https://modernjs.dev/builder/zh/api/config-dev.html#dev-starturl)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [dev.startUrl](https://modernjs.dev/builder/zh/api/config-dev.html#dev-starturl)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/dev/startUrl.md'
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "experiments (实验性)",
3
+ "position": 15
4
+ }
@@ -4,7 +4,7 @@ sidebar_label: lazyCompilation
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [experiments.lazyCompilation](https://modernjs.dev/builder/zh/api/config-experiments.html#experiments-lazycompilation)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [experiments.lazyCompilation](https://modernjs.dev/builder/zh/api/config-experiments.html#experiments-lazycompilation)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/experiments/lazyCompilation.md'
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "html (模板)",
3
+ "position": 2
4
+ }
@@ -4,7 +4,7 @@ sidebar_label: appIcon
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.appIcon](https://modernjs.dev/builder/zh/api/config-html.html#html-appicon)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.appIcon](https://modernjs.dev/builder/zh/api/config-html.html#html-appicon)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/appIcon.md'
@@ -4,7 +4,7 @@ sidebar_label: crossorigin
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.crossorigin](https://modernjs.dev/builder/zh/api/config-html.html#html-crossorigin)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.crossorigin](https://modernjs.dev/builder/zh/api/config-html.html#html-crossorigin)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/crossorigin.md'
@@ -4,7 +4,7 @@ sidebar_label: disableHtmlFolder
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.disableHtmlFolder](https://modernjs.dev/builder/zh/api/config-html.html#html-disablehtmlfolder)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.disableHtmlFolder](https://modernjs.dev/builder/zh/api/config-html.html#html-disablehtmlfolder)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/disableHtmlFolder.md'
@@ -4,7 +4,7 @@ sidebar_label: faviconByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.faviconByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-faviconbyentries)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.faviconByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-faviconbyentries)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/faviconByEntries.md'
@@ -4,7 +4,7 @@ sidebar_label: favicon
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.favicon](https://modernjs.dev/builder/zh/api/config-html.html#html-favicon)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.favicon](https://modernjs.dev/builder/zh/api/config-html.html#html-favicon)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/favicon.md'
@@ -4,7 +4,7 @@ sidebar_label: injectByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.injectByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-injectbyentries)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.injectByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-injectbyentries)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/injectByEntries.md'
@@ -4,7 +4,7 @@ sidebar_label: inject
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.inject](https://modernjs.dev/builder/zh/api/config-html.html#html-inject)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.inject](https://modernjs.dev/builder/zh/api/config-html.html#html-inject)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/inject.md'
@@ -4,7 +4,7 @@ sidebar_label: metaByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.metaByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-metabyentries)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.metaByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-metabyentries)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/metaByEntries.md'
@@ -4,7 +4,7 @@ sidebar_label: meta
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.meta](https://modernjs.dev/builder/zh/api/config-html.html#html-meta)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.meta](https://modernjs.dev/builder/zh/api/config-html.html#html-meta)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/meta.md'
@@ -4,7 +4,7 @@ sidebar_label: mountId
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.mountId](https://modernjs.dev/builder/zh/api/config-html.html#html-mountid)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.mountId](https://modernjs.dev/builder/zh/api/config-html.html#html-mountid)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/mountId.md'
@@ -4,7 +4,7 @@ sidebar_label: templateByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.templateByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-templatebyentries)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.templateByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-templatebyentries)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/templateByEntries.md'
@@ -4,7 +4,7 @@ sidebar_label: templateParametersByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.templateParametersByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-templateparametersbyentries)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.templateParametersByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-templateparametersbyentries)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/templateParametersByEntries.md'
@@ -4,7 +4,7 @@ sidebar_label: templateParameters
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.templateParameters](https://modernjs.dev/builder/zh/api/config-html.html#html-templateparameters)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.templateParameters](https://modernjs.dev/builder/zh/api/config-html.html#html-templateparameters)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/templateParameters.md'
@@ -4,7 +4,7 @@ sidebar_label: template
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.template](https://modernjs.dev/builder/zh/api/config-html.html#html-template)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.template](https://modernjs.dev/builder/zh/api/config-html.html#html-template)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/template.md'
@@ -4,7 +4,7 @@ sidebar_label: titleByEntries
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.titleByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-titlebyentries)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.titleByEntries](https://modernjs.dev/builder/zh/api/config-html.html#html-titlebyentries)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/titleByEntries.md'
@@ -4,7 +4,7 @@ sidebar_label: title
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [html.title](https://modernjs.dev/builder/zh/api/config-html.html#html-title)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [html.title](https://modernjs.dev/builder/zh/api/config-html.html#html-title)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/html/title.md'
@@ -4,7 +4,7 @@ sidebar_label: assetPrefix
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.assetPrefix](https://modernjs.dev/builder/zh/api/config-output.html#output-assetprefix)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.assetPrefix](https://modernjs.dev/builder/zh/api/config-output.html#output-assetprefix)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/assetPrefix.md'
@@ -4,7 +4,7 @@ sidebar_label: assetsRetry
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.assetsRetry](https://modernjs.dev/builder/zh/api/config-output.html#output-assetsretry)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.assetsRetry](https://modernjs.dev/builder/zh/api/config-output.html#output-assetsretry)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/assetsRetry.md'
@@ -4,7 +4,7 @@ sidebar_label: charset
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.charset](https://modernjs.dev/builder/zh/api/config-output.html#output-charset)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.charset](https://modernjs.dev/builder/zh/api/config-output.html#output-charset)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/charset.md'
@@ -4,7 +4,7 @@ sidebar_label: cleanDistPath
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.cleanDistPath](https://modernjs.dev/builder/zh/api/config-output.html#output-cleandistpath)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.cleanDistPath](https://modernjs.dev/builder/zh/api/config-output.html#output-cleandistpath)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/cleanDistPath.md'
@@ -4,7 +4,7 @@ sidebar_label: convertToRem
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.convertToRem](https://modernjs.dev/builder/zh/api/config-output.html#output-converttorem)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.convertToRem](https://modernjs.dev/builder/zh/api/config-output.html#output-converttorem)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/convertToRem.md'
@@ -4,7 +4,7 @@ sidebar_label: copy
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.copy](https://modernjs.dev/builder/zh/api/config-output.html#output-copy)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.copy](https://modernjs.dev/builder/zh/api/config-output.html#output-copy)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/copy.md'
@@ -4,7 +4,7 @@ sidebar_label: cssModuleLocalIdentName
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.cssModuleLocalIdentName](https://modernjs.dev/builder/zh/api/config-output.html#output-cssmodulelocalidentname)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.cssModuleLocalIdentName](https://modernjs.dev/builder/zh/api/config-output.html#output-cssmodulelocalidentname)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/cssModuleLocalIdentName.md'
@@ -4,7 +4,7 @@ sidebar_label: dataUriLimit
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.dataUriLimit](https://modernjs.dev/builder/zh/api/config-output.html#output-dataurilimit)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.dataUriLimit](https://modernjs.dev/builder/zh/api/config-output.html#output-dataurilimit)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/dataUriLimit.md'
@@ -4,7 +4,7 @@ sidebar_label: disableCssExtract
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.disableCssExtract](https://modernjs.dev/builder/zh/api/config-output.html#output-disablecssextract)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.disableCssExtract](https://modernjs.dev/builder/zh/api/config-output.html#output-disablecssextract)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/disableCssExtract.md'
@@ -4,7 +4,7 @@ sidebar_label: disableCssModuleExtension
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.disableCssModuleExtension](https://modernjs.dev/builder/zh/api/config-output.html#output-disablecssmoduleextension)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.disableCssModuleExtension](https://modernjs.dev/builder/zh/api/config-output.html#output-disablecssmoduleextension)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/disableCssModuleExtension.md'
@@ -4,7 +4,7 @@ sidebar_label: disableFilenameHash
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.disableFilenameHash](https://modernjs.dev/builder/zh/api/config-output.html#output-disablefilenamehash)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.disableFilenameHash](https://modernjs.dev/builder/zh/api/config-output.html#output-disablefilenamehash)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/disableFilenameHash.md'
@@ -4,7 +4,7 @@ sidebar_label: disableInlineRuntimeChunk
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.disableInlineRuntimeChunk](https://modernjs.dev/builder/zh/api/config-output.html#output-disableinlineruntimechunk)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.disableInlineRuntimeChunk](https://modernjs.dev/builder/zh/api/config-output.html#output-disableinlineruntimechunk)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/disableInlineRuntimeChunk.md'
@@ -4,7 +4,7 @@ sidebar_label: disableMinimize
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.disableMinimize](https://modernjs.dev/builder/zh/api/config-output.html#output-disableminimize)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.disableMinimize](https://modernjs.dev/builder/zh/api/config-output.html#output-disableminimize)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/disableMinimize.md'
@@ -4,7 +4,7 @@ sidebar_label: disableSourceMap
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.disableSourceMap](https://modernjs.dev/builder/zh/api/config-output.html#output-disablesourcemap)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.disableSourceMap](https://modernjs.dev/builder/zh/api/config-output.html#output-disablesourcemap)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/disableSourceMap.md'
@@ -4,7 +4,7 @@ sidebar_label: disableTsChecker
4
4
  ---
5
5
 
6
6
  :::info BUILDER
7
- 该配置为 Modern.js Builder 配置,可能存在无法跳转的链接。详细信息可参考 [output.disableTsChecker](https://modernjs.dev/builder/zh/api/config-output.html#output-disabletschecker)。
7
+ 该配置为 Modern.js Builder 配置,详细信息可参考 [output.disableTsChecker](https://modernjs.dev/builder/zh/api/config-output.html#output-disabletschecker)。
8
8
  :::
9
9
 
10
10
  import Main from '@modern-js/builder-doc/zh/config/output/disableTsChecker.md'