@modern-js/module-tools-docs 2.0.2 → 2.2.0-beta.0

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 (308) hide show
  1. package/doc_build/html/main/index.html +1 -1
  2. package/doc_build/static/css/main.css +267 -660
  3. package/doc_build/static/css/main.css.map +1 -1
  4. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +6 -23
  5. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +1 -1
  6. package/doc_build/static/js/async/en_api_config_build-config.js +79 -36
  7. package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -1
  8. package/doc_build/static/js/async/en_api_config_build-preset.js +40 -20
  9. package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -1
  10. package/doc_build/static/js/async/en_api_config_design-system.js +33800 -2340
  11. package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -1
  12. package/doc_build/static/js/async/en_api_config_plugins.js +15 -19
  13. package/doc_build/static/js/async/en_api_config_testing.js +26 -24
  14. package/doc_build/static/js/async/en_api_config_testing.js.map +1 -1
  15. package/doc_build/static/js/async/{en_api_.js → en_api_index.js} +10 -14
  16. package/doc_build/static/js/async/en_api_index.js.map +1 -0
  17. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +24 -26
  18. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -1
  19. package/doc_build/static/js/async/en_guide_advance_asset.js +16 -41
  20. package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -1
  21. package/doc_build/static/js/async/en_guide_advance_build-umd.js +20 -24
  22. package/doc_build/static/js/async/en_guide_advance_copy.js +25 -23
  23. package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -1
  24. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +15 -19
  25. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +352 -94
  26. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -1
  27. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +11 -15
  28. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -1
  29. package/doc_build/static/js/async/en_guide_advance_theme-config.js +26 -24
  30. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -1
  31. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +275 -88
  32. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -1
  33. package/doc_build/static/js/async/en_guide_basic_command-preview.js +45 -33
  34. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -1
  35. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +274 -196
  36. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -1
  37. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +18 -20
  38. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -1
  39. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +27 -32
  40. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -1
  41. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +33 -15
  42. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -1
  43. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +24 -63
  44. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -1
  45. package/doc_build/static/js/async/en_guide_best-practices_components.js +39 -27
  46. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -1
  47. package/doc_build/static/js/async/en_guide_intro_getting-started.js +288 -45
  48. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -1
  49. package/doc_build/static/js/async/en_guide_intro_welcome.js +27 -13
  50. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -1
  51. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +16 -12
  52. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -1
  53. package/doc_build/static/js/async/{en_.js → en_index.js} +12 -16
  54. package/doc_build/static/js/async/en_index.js.map +1 -0
  55. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +17 -21
  56. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +20 -24
  57. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +19 -23
  58. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -1
  59. package/doc_build/static/js/async/en_plugins_official-list_overview.js +8 -12
  60. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +166 -367
  61. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -1
  62. package/doc_build/static/js/async/{api_config_build-config.js → zh_api_config_build-config.js} +80 -35
  63. package/doc_build/static/js/async/{api_config_build-config.js.map → zh_api_config_build-config.js.map} +1 -1
  64. package/doc_build/static/js/async/{api_config_build-preset.js → zh_api_config_build-preset.js} +39 -21
  65. package/doc_build/static/js/async/{api_config_build-preset.js.map → zh_api_config_build-preset.js.map} +1 -1
  66. package/doc_build/static/js/async/{api_config_design-system.js → zh_api_config_design-system.js} +27 -23
  67. package/doc_build/static/js/async/{api_config_design-system.js.map → zh_api_config_design-system.js.map} +1 -1
  68. package/doc_build/static/js/async/{api_config_plugins.js → zh_api_config_plugins.js} +17 -21
  69. package/doc_build/static/js/async/{api_config_plugins.js.map → zh_api_config_plugins.js.map} +1 -1
  70. package/doc_build/static/js/async/{api_config_testing.js → zh_api_config_testing.js} +28 -26
  71. package/doc_build/static/js/async/{api_config_testing.js.map → zh_api_config_testing.js.map} +1 -1
  72. package/doc_build/static/js/async/{api_.js → zh_api_index.js} +10 -14
  73. package/doc_build/static/js/async/zh_api_index.js.map +1 -0
  74. package/doc_build/static/js/async/{api_plugin-api_plugin-hooks.js → zh_api_plugin-api_plugin-hooks.js} +25 -27
  75. package/doc_build/static/js/async/{api_plugin-api_plugin-hooks.js.map → zh_api_plugin-api_plugin-hooks.js.map} +1 -1
  76. package/doc_build/static/js/async/{guide_advance_asset.js → zh_guide_advance_asset.js} +18 -43
  77. package/doc_build/static/js/async/{guide_advance_asset.js.map → zh_guide_advance_asset.js.map} +1 -1
  78. package/doc_build/static/js/async/{guide_advance_build-umd.js → zh_guide_advance_build-umd.js} +22 -26
  79. package/doc_build/static/js/async/{guide_advance_build-umd.js.map → zh_guide_advance_build-umd.js.map} +1 -1
  80. package/doc_build/static/js/async/{guide_advance_copy.js → zh_guide_advance_copy.js} +26 -24
  81. package/doc_build/static/js/async/{guide_advance_copy.js.map → zh_guide_advance_copy.js.map} +1 -1
  82. package/doc_build/static/js/async/{guide_advance_external-dependency.js → zh_guide_advance_external-dependency.js} +17 -21
  83. package/doc_build/static/js/async/{guide_advance_external-dependency.js.map → zh_guide_advance_external-dependency.js.map} +1 -1
  84. package/doc_build/static/js/async/{guide_advance_in-depth-about-build.js → zh_guide_advance_in-depth-about-build.js} +353 -95
  85. package/doc_build/static/js/async/{guide_advance_in-depth-about-build.js.map → zh_guide_advance_in-depth-about-build.js.map} +1 -1
  86. package/doc_build/static/js/async/{guide_advance_in-depth-about-dev-command.js → zh_guide_advance_in-depth-about-dev-command.js} +16 -18
  87. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +1 -0
  88. package/doc_build/static/js/async/{guide_advance_theme-config.js → zh_guide_advance_theme-config.js} +24 -22
  89. package/doc_build/static/js/async/{guide_advance_theme-config.js.map → zh_guide_advance_theme-config.js.map} +1 -1
  90. package/doc_build/static/js/async/{guide_basic_before-getting-started.js → zh_guide_basic_before-getting-started.js} +272 -85
  91. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +1 -0
  92. package/doc_build/static/js/async/{guide_basic_command-preview.js → zh_guide_basic_command-preview.js} +47 -35
  93. package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +1 -0
  94. package/doc_build/static/js/async/{guide_basic_modify-output-product.js → zh_guide_basic_modify-output-product.js} +203 -88
  95. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +1 -0
  96. package/doc_build/static/js/async/{guide_basic_publish-your-project.js → zh_guide_basic_publish-your-project.js} +20 -22
  97. package/doc_build/static/js/async/{guide_basic_publish-your-project.js.map → zh_guide_basic_publish-your-project.js.map} +1 -1
  98. package/doc_build/static/js/async/{guide_basic_test-your-project.js → zh_guide_basic_test-your-project.js} +30 -35
  99. package/doc_build/static/js/async/{guide_basic_test-your-project.js.map → zh_guide_basic_test-your-project.js.map} +1 -1
  100. package/doc_build/static/js/async/{guide_basic_use-micro-generator.js → zh_guide_basic_use-micro-generator.js} +40 -20
  101. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +1 -0
  102. package/doc_build/static/js/async/{guide_basic_using-storybook.js → zh_guide_basic_using-storybook.js} +78 -171
  103. package/doc_build/static/js/async/{guide_basic_using-storybook.js.map → zh_guide_basic_using-storybook.js.map} +1 -1
  104. package/doc_build/static/js/async/{guide_best-practices_components.js → zh_guide_best-practices_components.js} +41 -29
  105. package/doc_build/static/js/async/{guide_best-practices_components.js.map → zh_guide_best-practices_components.js.map} +1 -1
  106. package/doc_build/static/js/async/{guide_intro_getting-started.js → zh_guide_intro_getting-started.js} +291 -42
  107. package/doc_build/static/js/async/{guide_intro_getting-started.js.map → zh_guide_intro_getting-started.js.map} +1 -1
  108. package/doc_build/static/js/async/{guide_intro_welcome.js → zh_guide_intro_welcome.js} +28 -14
  109. package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +1 -0
  110. package/doc_build/static/js/async/{guide_intro_why-module-engineering-solution.js → zh_guide_intro_why-module-engineering-solution.js} +18 -14
  111. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +1 -0
  112. package/doc_build/static/js/async/{index.js → zh_index.js} +11 -15
  113. package/doc_build/static/js/async/zh_index.js.map +1 -0
  114. package/doc_build/static/js/async/{plugins_guide_getting-started.js → zh_plugins_guide_getting-started.js} +19 -23
  115. package/doc_build/static/js/async/{plugins_guide_getting-started.js.map → zh_plugins_guide_getting-started.js.map} +1 -1
  116. package/doc_build/static/js/async/{plugins_guide_plugin-object.js → zh_plugins_guide_plugin-object.js} +22 -26
  117. package/doc_build/static/js/async/{plugins_guide_plugin-object.js.map → zh_plugins_guide_plugin-object.js.map} +1 -1
  118. package/doc_build/static/js/async/{plugins_guide_setup-function.js → zh_plugins_guide_setup-function.js} +21 -25
  119. package/doc_build/static/js/async/{plugins_guide_setup-function.js.map → zh_plugins_guide_setup-function.js.map} +1 -1
  120. package/doc_build/static/js/async/{plugins_official-list_overview.js → zh_plugins_official-list_overview.js} +10 -14
  121. package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +1 -0
  122. package/doc_build/static/js/builder-runtime.js +1 -1
  123. package/doc_build/static/js/builder-runtime.js.map +1 -1
  124. package/doc_build/static/js/lib-polyfill.js +3433 -16355
  125. package/doc_build/static/js/lib-polyfill.js.map +1 -1
  126. package/doc_build/static/js/main.js +2073 -2700
  127. package/doc_build/static/js/main.js.map +1 -1
  128. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +485 -1689
  129. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +1 -1
  130. package/doc_build/static/search_index.json +1 -0
  131. package/docs/.island/dist/404.html +41 -0
  132. package/docs/.island/dist/assets/asset.26aea654.js +160 -0
  133. package/docs/.island/dist/assets/asset.36e3d3c9.js +160 -0
  134. package/docs/.island/dist/assets/before-getting-started.0e863740.js +87 -0
  135. package/docs/.island/dist/assets/before-getting-started.2c6e6b8a.js +87 -0
  136. package/docs/.island/dist/assets/build-config.460d11d9.js +804 -0
  137. package/docs/.island/dist/assets/build-config.e155e534.js +854 -0
  138. package/docs/.island/dist/assets/build-preset.6c2c6c62.js +256 -0
  139. package/docs/.island/dist/assets/build-preset.d3da921d.js +256 -0
  140. package/docs/.island/dist/assets/build-umd.ba00f028.js +264 -0
  141. package/docs/.island/dist/assets/build-umd.edb9d163.js +273 -0
  142. package/docs/.island/dist/assets/command-preview.1dc93921.js +264 -0
  143. package/docs/.island/dist/assets/command-preview.ef7a9d01.js +264 -0
  144. package/docs/.island/dist/assets/components.esm.03560353.js +9 -0
  145. package/docs/.island/dist/assets/copy.28dc4d5f.js +277 -0
  146. package/docs/.island/dist/assets/copy.f4625565.js +277 -0
  147. package/docs/.island/dist/assets/design-system.8993234c.js +1254 -0
  148. package/docs/.island/dist/assets/design-system.b0ba163f.js +639 -0
  149. package/docs/.island/dist/assets/dev.b373b152.js +37 -0
  150. package/docs/.island/dist/assets/dev.b39fd42a.js +37 -0
  151. package/docs/.island/dist/assets/down.f35427d3.svg +1 -0
  152. package/docs/.island/dist/assets/extension.4bf3526b.js +1 -0
  153. package/docs/.island/dist/assets/extension.d64ed0b8.js +469 -0
  154. package/docs/.island/dist/assets/external-dependency.2ede7532.js +156 -0
  155. package/docs/.island/dist/assets/external-dependency.92ca89e0.js +156 -0
  156. package/docs/.island/dist/assets/getting-started.822cf0b2.js +117 -0
  157. package/docs/.island/dist/assets/getting-started.e2764829.js +114 -0
  158. package/docs/.island/dist/assets/github.3bf8ccee.svg +1 -0
  159. package/docs/.island/dist/assets/in-depth-about-build.94cc902d.js +375 -0
  160. package/docs/.island/dist/assets/in-depth-about-build.aa74de10.js +374 -0
  161. package/docs/.island/dist/assets/in-depth-about-dev-command.877bdb83.js +33 -0
  162. package/docs/.island/dist/assets/in-depth-about-dev-command.9736befd.js +39 -0
  163. package/docs/.island/dist/assets/index.01786ba7.js +30 -0
  164. package/docs/.island/dist/assets/index.6cef6f5f.js +4 -0
  165. package/docs/.island/dist/assets/index.cb118238.js +36 -0
  166. package/docs/.island/dist/assets/index.ccb6ce27.js +4 -0
  167. package/docs/.island/dist/assets/island_inject.69495876.js +1 -0
  168. package/docs/.island/dist/assets/island_inject.cdfb22d9.js +1 -0
  169. package/docs/.island/dist/assets/loading.8c9bb911.svg +1 -0
  170. package/docs/.island/dist/assets/modify-output-product.9e2394d7.js +100 -0
  171. package/docs/.island/dist/assets/modify-output-product.f363845a.js +100 -0
  172. package/docs/.island/dist/assets/moon.6b705924.svg +3 -0
  173. package/docs/.island/dist/assets/plugin.70a61997.js +42 -0
  174. package/docs/.island/dist/assets/plugin.80b12ee2.js +42 -0
  175. package/docs/.island/dist/assets/publish-your-project.7321c10e.js +164 -0
  176. package/docs/.island/dist/assets/publish-your-project.7326359f.js +166 -0
  177. package/docs/.island/dist/assets/right.89674cd7.svg +1 -0
  178. package/docs/.island/dist/assets/search.0aea6901.svg +1 -0
  179. package/docs/.island/dist/assets/search.11353245.js +222 -0
  180. package/docs/.island/dist/assets/search.a1b1cff3.js +3 -0
  181. package/docs/.island/dist/assets/search.f9025ced.js +3 -0
  182. package/docs/.island/dist/assets/style.09015a4b.css +1 -0
  183. package/docs/.island/dist/assets/style.2e5f7bc2.css +1970 -0
  184. package/docs/.island/dist/assets/sun.841dac10.svg +11 -0
  185. package/docs/.island/dist/assets/test-your-project.8ab2809e.js +190 -0
  186. package/docs/.island/dist/assets/test-your-project.9ae2a49e.js +190 -0
  187. package/docs/.island/dist/assets/test.2bfe276b.js +66 -0
  188. package/docs/.island/dist/assets/test.a2c00a3f.js +67 -0
  189. package/docs/.island/dist/assets/translator.b1077c44.svg +1 -0
  190. package/docs/.island/dist/assets/use-micro-generator.13c1a09f.js +60 -0
  191. package/docs/.island/dist/assets/use-micro-generator.dfe877f6.js +60 -0
  192. package/docs/.island/dist/assets/using-storybook.adb88cb8.js +260 -0
  193. package/docs/.island/dist/assets/using-storybook.b8e7dd04.js +260 -0
  194. package/docs/.island/dist/assets/welcome.94880043.js +13 -0
  195. package/docs/.island/dist/assets/welcome.b2140e7e.js +13 -0
  196. package/docs/.island/dist/assets/why-module-engineering-solution.bfe7981a.js +26 -0
  197. package/docs/.island/dist/assets/why-module-engineering-solution.e31cd19f.js +26 -0
  198. package/docs/.island/dist/chunk-COLCRJ2V.js +1 -0
  199. package/docs/.island/dist/chunk-K5FMOYDC.js +10 -0
  200. package/docs/.island/dist/chunk-WE42KMYS.js +26 -0
  201. package/docs/.island/dist/client-entry.js +3 -0
  202. package/docs/.island/dist/en/api/build-config.html +344 -0
  203. package/docs/.island/dist/en/api/build-preset.html +82 -0
  204. package/docs/.island/dist/en/api/design-system.html +155 -0
  205. package/docs/.island/dist/en/api/dev.html +45 -0
  206. package/docs/.island/dist/en/api/index.html +41 -0
  207. package/docs/.island/dist/en/api/plugin.html +48 -0
  208. package/docs/.island/dist/en/api/test.html +58 -0
  209. package/docs/.island/dist/en/guide/advance/asset.html +68 -0
  210. package/docs/.island/dist/en/guide/advance/build-umd.html +72 -0
  211. package/docs/.island/dist/en/guide/advance/copy.html +82 -0
  212. package/docs/.island/dist/en/guide/advance/extension.html +41 -0
  213. package/docs/.island/dist/en/guide/advance/external-dependency.html +71 -0
  214. package/docs/.island/dist/en/guide/advance/in-depth-about-build.html +148 -0
  215. package/docs/.island/dist/en/guide/advance/in-depth-about-dev-command.html +51 -0
  216. package/docs/.island/dist/en/guide/basic/before-getting-started.html +127 -0
  217. package/docs/.island/dist/en/guide/basic/command-preview.html +100 -0
  218. package/docs/.island/dist/en/guide/basic/modify-output-product.html +140 -0
  219. package/docs/.island/dist/en/guide/basic/publish-your-project.html +91 -0
  220. package/docs/.island/dist/en/guide/basic/test-your-project.html +72 -0
  221. package/docs/.island/dist/en/guide/basic/use-micro-generator.html +65 -0
  222. package/docs/.island/dist/en/guide/basic/using-storybook.html +113 -0
  223. package/docs/.island/dist/en/guide/intro/getting-started.html +76 -0
  224. package/docs/.island/dist/en/guide/intro/welcome.html +53 -0
  225. package/docs/.island/dist/en/guide/intro/why-module-engineering-solution.html +49 -0
  226. package/docs/.island/dist/en/index.html +42 -0
  227. package/docs/.island/dist/react-dom.js +1 -0
  228. package/docs/.island/dist/react-dom_client.js +1 -0
  229. package/docs/.island/dist/react.js +1 -0
  230. package/docs/.island/dist/react_jsx-runtime.js +10 -0
  231. package/docs/.island/dist/ssr-manifest.json +57 -0
  232. package/docs/.island/dist/test-result.png +0 -0
  233. package/docs/.island/dist/why-module-solution.png +0 -0
  234. package/docs/.island/dist/zh/api/build-config.html +361 -0
  235. package/docs/.island/dist/zh/api/build-preset.html +82 -0
  236. package/docs/.island/dist/zh/api/design-system.html +149 -0
  237. package/docs/.island/dist/zh/api/dev.html +46 -0
  238. package/docs/.island/dist/zh/api/index.html +41 -0
  239. package/docs/.island/dist/zh/api/plugin.html +48 -0
  240. package/docs/.island/dist/zh/api/test.html +59 -0
  241. package/docs/.island/dist/zh/guide/advance/asset.html +68 -0
  242. package/docs/.island/dist/zh/guide/advance/build-umd.html +72 -0
  243. package/docs/.island/dist/zh/guide/advance/copy.html +82 -0
  244. package/docs/.island/dist/zh/guide/advance/extension.html +127 -0
  245. package/docs/.island/dist/zh/guide/advance/external-dependency.html +71 -0
  246. package/docs/.island/dist/zh/guide/advance/in-depth-about-build.html +148 -0
  247. package/docs/.island/dist/zh/guide/advance/in-depth-about-dev-command.html +53 -0
  248. package/docs/.island/dist/zh/guide/basic/before-getting-started.html +127 -0
  249. package/docs/.island/dist/zh/guide/basic/command-preview.html +100 -0
  250. package/docs/.island/dist/zh/guide/basic/modify-output-product.html +140 -0
  251. package/docs/.island/dist/zh/guide/basic/publish-your-project.html +92 -0
  252. package/docs/.island/dist/zh/guide/basic/test-your-project.html +72 -0
  253. package/docs/.island/dist/zh/guide/basic/use-micro-generator.html +65 -0
  254. package/docs/.island/dist/zh/guide/basic/using-storybook.html +114 -0
  255. package/docs/.island/dist/zh/guide/intro/getting-started.html +79 -0
  256. package/docs/.island/dist/zh/guide/intro/welcome.html +53 -0
  257. package/docs/.island/dist/zh/guide/intro/why-module-engineering-solution.html +49 -0
  258. package/docs/.island/dist/zh/index.html +42 -0
  259. package/docs/en/api/config/build-config.md +15 -5
  260. package/docs/en/api/config/build-preset.md +3 -2
  261. package/docs/en/api/config/design-system.md +623 -615
  262. package/docs/en/api/config/plugins.md +2 -2
  263. package/docs/en/api/config/testing.md +2 -1
  264. package/docs/en/guide/advance/asset.mdx +0 -4
  265. package/docs/en/guide/advance/build-umd.mdx +3 -3
  266. package/docs/en/guide/advance/in-depth-about-build.md +14 -13
  267. package/docs/en/guide/advance/in-depth-about-dev-command.md +2 -1
  268. package/docs/en/guide/basic/before-getting-started.md +16 -9
  269. package/docs/en/guide/basic/command-preview.md +2 -2
  270. package/docs/en/guide/basic/modify-output-product.md +65 -69
  271. package/docs/en/guide/basic/test-your-project.mdx +1 -3
  272. package/docs/en/guide/basic/use-micro-generator.md +4 -0
  273. package/docs/en/guide/basic/using-storybook.mdx +1 -13
  274. package/docs/en/guide/intro/getting-started.md +16 -7
  275. package/docs/en/plugins/guide/getting-started.mdx +2 -2
  276. package/docs/en/plugins/guide/plugin-object.mdx +5 -5
  277. package/docs/zh/api/config/build-config.md +18 -6
  278. package/docs/zh/api/config/build-preset.md +3 -2
  279. package/docs/zh/api/config/design-system.md +2 -2
  280. package/docs/zh/api/config/plugins.md +2 -2
  281. package/docs/zh/api/config/testing.md +3 -2
  282. package/docs/zh/guide/advance/asset.mdx +0 -5
  283. package/docs/zh/guide/advance/build-umd.mdx +3 -3
  284. package/docs/zh/guide/advance/in-depth-about-build.md +14 -13
  285. package/docs/zh/guide/advance/in-depth-about-dev-command.md +2 -1
  286. package/docs/zh/guide/basic/before-getting-started.md +15 -8
  287. package/docs/zh/guide/basic/command-preview.md +2 -2
  288. package/docs/zh/guide/basic/modify-output-product.md +17 -19
  289. package/docs/zh/guide/basic/test-your-project.mdx +1 -3
  290. package/docs/zh/guide/basic/use-micro-generator.md +5 -1
  291. package/docs/zh/guide/basic/using-storybook.mdx +9 -19
  292. package/docs/zh/guide/intro/getting-started.md +17 -11
  293. package/docs/zh/plugins/guide/getting-started.mdx +2 -2
  294. package/docs/zh/plugins/guide/plugin-object.mdx +5 -5
  295. package/modern.config.ts +11 -5
  296. package/package.json +4 -4
  297. package/doc_build/static/js/async/api_.js.map +0 -1
  298. package/doc_build/static/js/async/en_.js.map +0 -1
  299. package/doc_build/static/js/async/en_api_.js.map +0 -1
  300. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js.map +0 -1
  301. package/doc_build/static/js/async/guide_basic_before-getting-started.js.map +0 -1
  302. package/doc_build/static/js/async/guide_basic_command-preview.js.map +0 -1
  303. package/doc_build/static/js/async/guide_basic_modify-output-product.js.map +0 -1
  304. package/doc_build/static/js/async/guide_basic_use-micro-generator.js.map +0 -1
  305. package/doc_build/static/js/async/guide_intro_welcome.js.map +0 -1
  306. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js.map +0 -1
  307. package/doc_build/static/js/async/index.js.map +0 -1
  308. package/doc_build/static/js/async/plugins_official-list_overview.js.map +0 -1
@@ -10,7 +10,6 @@ __webpack_require__.r(__webpack_exports__);
10
10
  /* harmony export */ "chCodeConfig": function() { return /* binding */ chCodeConfig; },
11
11
  /* harmony export */ "content": function() { return /* binding */ content; },
12
12
  /* harmony export */ "frontmatter": function() { return /* binding */ frontmatter; },
13
- /* harmony export */ "title": function() { return /* binding */ title; },
14
13
  /* harmony export */ "toc": function() { return /* binding */ toc; }
15
14
  /* harmony export */ });
16
15
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
@@ -18,11 +17,11 @@ __webpack_require__.r(__webpack_exports__);
18
17
  /*@jsxRuntime automatic @jsxImportSource react*/
19
18
 
20
19
 
21
- var CH = {
20
+ const CH = {
22
21
  annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
23
22
  Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code
24
23
  };
25
- var chCodeConfig = {
24
+ const chCodeConfig = {
26
25
  "staticMediaQuery": "not screen, (max-width: 768px)",
27
26
  "theme": {
28
27
  "name": "nord",
@@ -1185,14 +1184,14 @@ var chCodeConfig = {
1185
1184
  "autoImport": true,
1186
1185
  "showCopyButton": true,
1187
1186
  "skipLanguages": [],
1188
- "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/en/guide/basic/modify-output-product.md"
1187
+ "filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/basic/modify-output-product.md"
1189
1188
  };
1190
- var frontmatter = {
1189
+ const frontmatter = {
1191
1190
  "sidebar_position": 3
1192
1191
  };
1193
- var toc = [{
1194
- "id": "modify-output-product",
1195
- "text": "Modify output product",
1192
+ const toc = [{
1193
+ "id": "modify-the-output-product",
1194
+ "text": "Modify the output product",
1196
1195
  "depth": 2
1197
1196
  }, {
1198
1197
  "id": "default-output-products",
@@ -1203,12 +1202,12 @@ var toc = [{
1203
1202
  "text": "buildPreset",
1204
1203
  "depth": 2
1205
1204
  }, {
1206
- "id": "string-form-of-buildpreset",
1207
- "text": "String form of buildPreset",
1205
+ "id": "string-form-of-build-preset",
1206
+ "text": "String form of build preset",
1208
1207
  "depth": 3
1209
1208
  }, {
1210
- "id": "function-form-of-buildpreset",
1211
- "text": "Function form of buildPreset",
1209
+ "id": "build-pre-defined-function-forms",
1210
+ "text": "Build pre-defined function forms",
1212
1211
  "depth": 3
1213
1212
  }, {
1214
1213
  "id": "build-configuration-object",
@@ -1219,43 +1218,32 @@ var toc = [{
1219
1218
  "text": "When to use buildConfig",
1220
1219
  "depth": 2
1221
1220
  }];
1222
- var title = "modify-output-product";
1223
- var content = "\"---\\nsidebar_position: 3\\n---\\n\\n# modify-output-product\\n\\n## Modify output product\\n\\n## Default output products\\n\\nWhen the `modern build` command is used in an initialized project, the products are generated according to the default configuration supported by Module Tools. The default supported configurations are as follows.\\n\\n```typescript\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset: 'base-config',\\n});\\n```\\n\\n**The default generated product has the following characteristics**:\\n\\n- The code format is [CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-modules), or simply `cjs`.\\n- Code syntax is supported up to `ES6`.\\n- All code is packaged into a single file, i.e. **bundle** processing is performed.\\n- The output root directory is the `dist` directory under the project, and the output directory for type files is `dist/types`.\\n\\n:::tip\\n\\n1. By \\\"code syntax support up to ES6\\\", we mean that the syntax supported by the product code will not exceed `ES6`. If the source code uses syntax above `ES6` (e.g. `ES2017`), it will be converted.\\n :::\\n\\nYou may have the following questions when you see this:\\n\\n1. what is `buildPreset`?\\n2. what determines these characteristics of the output?\\n\\nThen the next step is to first explain `buildPreset`.\\n\\n## buildPreset\\n\\n`buildPreset` represents one or more sets of build-related configurations prepared in advance. By using the corresponding preset values of `buildPreset`, you can eliminate the troublesome and complicated configuration work and get the expected product.\\n\\n### String form of `buildPreset`\\n\\nThe value of a **build preset can be in the form of a string**, so a build preset of this form is called a preset string.\\n\\nThe module engineering solution provides generic build preset strings and corresponding variants, depending on the generic scenario in which the npm package is used. All currently supported preset strings can be viewed via the [BuildPreset API](/en/api/config/build-config). The relationship between **generic preset strings and variants** is explained here.\\n\\nAmong the generic preset strings, `\\\"npm-library\\\"` can be used in the scenario of developing npm packages of the library type, which is suitable for most common module type projects. When `\\\"npm-library\\\"` is set, the output product of the project will have the following characteristics:\\n\\n- In the `dist/lib` directory you will get the product in the code format `cjs`, with syntax support up to `es6` and after packaging.\\n- In the `dist/es` directory, you get code in the format `esm`, with syntax support up to `es6` and packaged.\\n- In the `dist/types` directory, you get the type files. If it is not a TypeScript project, there is no such directory.\\n\\nThe default string `\\\"npm-library\\\"` is a variant of the original product with modified **code-syntax support** and a string naming change to `\\\"npm-library-[es5 | es2016.... . es2020 | esnext]\\\"`.\\n\\nFor example, if the output product is based on the preset string `\\\"npm-library\\\"` and the syntax supported by the product code is changed to `es2017`, then simply changing `\\\"npm-library\\\"` to `\\\"npm-library-es2017\\\"` would be sufficient.\\n\\n### Function form of `buildPreset`\\n\\n**In addition to the string form, the value of a build preset can also be in the form of a function, where the specific configuration corresponding to a preset value can be printed or modified**.\\n\\nFor example, if the same effect as the preset string `\\\"npm-library-es2017\\\"` is achieved using the preset function form, it can be done as follows:\\n\\n```typescript\\nimport { defineConfig } from \\\"@modern-js/module-tools\\\";\\n\\nexport default defineConfig({\\n buildPreset({ preset }) {\\n return preset.NPM_LIBRARY.map(config => {\\n return { ... .config, target: 'es2017' }\\n });\\n },\\n});\\n```\\n\\nIn the above code implementation, `preset.NPM_LIBRARY` corresponds to the preset string `\\\"npm-library\\\"`, which represents the `\\\"npm-library\\\"` equivalent of a multi-group build-related configuration. We traverse the `NPM_LIBRARY` array, which contains multiple `buildConfig` objects, with the `map` method. We make a shallow copy of the original `buildConfig` object and modify the shallow copy to get `buildConfig.target`, specifying it as `es2017`.\\n\\n> The specific value of `preset.NPM_LIBRARY` can be viewed via the [BuildPreset API](/en/api/config/build-config). The `preset` object contains not only `NPM_LIBRARY`, but also other similar constants.\\n\\nSo what is the `buildConfig` object here? And what are the previously mentioned build product features based on?\\n\\nWe explain it next.\\n\\n## Build configuration (object)\\n\\n**`buildConfig` is a configuration object that describes how to compile and generate build products**. What was mentioned at the beginning about \\\"_features of build products_\\\" are actually properties supported by `buildConfig`. The currently supported properties cover the needs of most module type projects when building products. `buildConfig` not only contains some of the properties that products have, but also some of the features needed to build products. The following is a brief list from a classification point of view:\\n\\n**The basic attributes of a build product include:**\\n\\n- Whether the product is packaged or not: the corresponding API is [`buildConfig.buildType`](/en/api/config/build-config#buildtype).\\n- Product support for syntax: the corresponding API is [`buildConfig.target`](/en/api/config/build-config#target).\\n- Output format: The corresponding API is [`buildConfig.format`](/en/api/config/build-config#format).\\n- How to handle the output type file: the corresponding API is [`buildConfig.dts`](/en/api/config/build-config#dts).\\n- How the sourceMap of the product is handled: the corresponding API is [`buildConfig.sourceMap`](/en/api/config/build-config#sourcemap).\\n- The input (or source file) corresponding to the output: the corresponding API is [`buildConfig.input`](/en/api/config/build-config#input).\\n- The directory of the output of the product: the corresponding API is [`buildConfig.outDir`](/en/api/config/build-config#outDir).\\n- The source directory of the build: the corresponding API is [`buildConfig.sourceDir`](/en/api/config/build-config#sourcedir).\\n\\n**Common functions needed to build products include:**\\n\\n- Alias: The corresponding API is [`buildConfig.alias`](/en/api/config/build-config#alias).\\n- Static resource handling: The corresponding API is [`buildConfig.asset`](/en/api/config/build-config#asset).\\n- Third-party dependency handling: The corresponding APIs are\\n - [`buildConfig.autoExternal`](/en/api/config/build-config#autoexternal).\\n - [`buildConfig.externals`](/en/api/config/build-config#externals).\\n- Copy: The corresponding API is [`buildConfig.copy`](/en/api/config/build-config#copy).\\n- Global variable substitution: the corresponding API is [`buildConfig.define`](/en/api/config/build-config#define).\\n- Specify [JSX](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) compilation method, the corresponding API is [`buildConfig.jsx`](/en/api/config/build-config#jsx).\\n\\n**Some advanced properties or less frequently used functions:**\\n\\n- Product code compression: The corresponding API is [`buildConfig.minify`](/en/api/config/build-config#minify).\\n- Code splitting: [`buildConfig.splitting`](/en/api/config/build-config#splitting)\\n- Specify whether the build product is for the NodeJS environment or the browser environment: the corresponding API is [`buildConfig.platform`](/en/api/config/build-config#platform).\\n- umd product-related.\\n - Specifies the global variables imported externally to the umd product: the corresponding API is [`buildConfig.umdGlobals`](/en/api/config/build-config#umdglobals).\\n - Specify the module name of the umd product: the corresponding API is [`buildConfig.umdModuleName`](/en/api/config/build-config#umdmodulename).\\n\\nIn addition to the above categories, frequently asked questions and best practices about these APIs can be found at the following links.\\n\\n- [What are `bundle` and `bundleless`?](/en/guide/advance/in-depth-about-build#bundle-and-bundleless)\\n- [The relationship between `input` and `sourceDir`](/en/guide/advance/in-depth-about-build#relationship-between-input-and-sourcedir)\\n- [The multiple ways of generating type files in products](/en/guide/advance/in-depth-about-build#declaration-type-files)\\n- [The use of `buildConfig.define` for different scenarios.](/en/guide/advance/in-depth-about-build#buildconfigdefine-usage-for-different-scenarios)\\n- [How to handle third-party dependencies?](/en/guide/advance/external-dependency)\\n- [How to use copy?](/en/guide/advance/copy)\\n- [How to build umd products?](/en/guide/advance/build-umd)\\n- [The capabilities currently supported by static resources.](/en/guide/advance/asset)\\n\\n## When to use `buildConfig`\\n\\n`buildConfig` is one of the ways used to modify the product, **and only `buildConfig` will take effect when configured in conjunction with `buildPreset`**. So if configured as follows.\\n\\n```typescript\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildConfig: [{}],\\n buildPreset: 'base-config',\\n});\\n```\\n\\nThen at this point you will see the following prompt.\\n\\n```bash\\nSince both 'buildConfig' and 'buildPreset' are present, only the 'buildConfig' configuration will take effect\\n```\\n\\nThe set or sets of build-related configurations represented by `buildPreset` are composed of `buildConfig`, **which can be used to customize output products** when the current project needs cannot be met using `buildPreset`.\\n\\nThe process of using `buildConfig` is the process of thinking about \\\"_what kind of build product to get_\\\".\\n\"";
1221
+ const content = "\"---\\nsidebar_position: 3\\n---\\n\\n## Modify the output product\\n\\n## Default output products\\n\\nWhen the `modern build` command is used in an initialized project, the products are generated according to the default configuration supported by Module Tools. The default supported configurations are specified as follows.\\n\\n```typescript\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n plugins: [moduleTools()],\\n buildPreset: 'npm-library',\\n});\\n```\\n\\n**The default generation product has the following characteristics**.\\n\\n- will generate [CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-modules) and [ESM](https://nodejs.org/api/esm.html#modules- ecmascript-modules).\\n- The code syntax is supported up to `ES6` , and more advanced syntax will be converted.\\n- All code is packaged into one file, i.e. **bundle** processing is performed.\\n- The output root directory is the `dist` directory under the project, and the type file output directory is `dist/types`.\\n\\nYou may have the following questions when you see this.\\n\\n1. what is `buildPreset`?\\n2. what determines these characteristics of the product?\\n\\nThen the next step is to first explain `buildPreset`.\\n\\n## buildPreset\\n\\nThe `buildPreset` represents one or more sets of build-related configurations prepared in advance. By using the corresponding preset values of the `buildPreset`, you can eliminate the troublesome and complicated configuration work and get the expected product.\\n\\n### String form of build preset\\n\\nThe value of a **build preset can be in the form of a string**, so a build preset of this form is called a preset string.\\n\\nThe module engineering solution provides generic build preset strings and corresponding variants, depending on the generic scenario in which the npm package is used. All currently supported preset strings can be viewed via the [BuildPreset API](/api/config/build-preset). Here is an explanation about the relationship between **generic preset strings and variants**.\\n\\nAmong the generic preset strings, `\\\"npm-library\\\"` can be used in the scenario of developing npm packages of the library type, which is suitable for most common module type projects. When `\\\"npm-library\\\"` is set, the output product of the project will have the following characteristics.\\n\\n- In the `dist/lib` directory you will get code formatted as `cjs`, syntax supported up to `es6` and packaged.\\n- In the `dist/es` directory, you get code in the format `esm`, with syntax support up to `es6` and after packaging.\\n- In the `dist/types` directory, you get the type files. If it is not a TypeScript project, there is no such directory.\\n\\nThe default string `\\\"npm-library\\\"` is a variant of the original product with a modified **code syntax support** feature and a string naming change to `\\\"npm-library-[es5 | es2016.... . es2020 | esnext]\\\"`.\\n\\nFor example, if the output product is based on the preset string `\\\"npm-library\\\"` and the syntax supported by the product code is changed to `es5`, then simply changing `\\\"npm-library\\\"` to `\\\"npm-library-es5\\\"` would be sufficient.\\n\\n### Build pre-defined function forms\\n\\n**In addition to the string form, the value of a build preset can also be in the form of a function, where the specific configuration corresponding to a preset value can be printed or modified**.\\n\\nFor example, to achieve the same effect as the preset string ``npm-library-es5\\\"` using the form of a preset function, you can do the following.\\n\\n```typescript\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset({ preset }) {\\n return preset.NPM_LIBRARY.map(config => {\\n return { ... .config, target: 'es5' }\\n });\\n },\\n});\\n```\\n\\nIn the above code implementation, `preset.NPM_LIBRARY` corresponds to the preset string `\\\"npm-library\\\"`, which represents the `\\\"npm-library\\\"` equivalent of a multi-group build-related configuration. We traverse the `NPM_LIBRARY` array, which contains multiple `buildConfig` objects, with the `map` method. We make a shallow copy of the original `buildConfig` object and modify the shallow copy to get `buildConfig.target`, specifying it as `es5`.\\n\\n> NPM_LIBRARY`, you can check it with [BuildPreset API](/api/config/build-preset). The`preset`object contains not only`NPM_LIBRARY`, but also other similar constants.\\n\\nSo what is the `buildConfig` object here? What is the basis for the build product feature mentioned before?\\n\\nLet's explain next.\\n\\n## Build configuration (object)\\n\\n**`buildConfig` is a configuration object that describes how to compile and generate build products**. What was mentioned at the beginning about \\\"_features of build products_\\\" are actually properties supported by `buildConfig`. The currently supported properties cover the needs of most module type projects when building products. `buildConfig` not only contains some properties that products have, but also contains some features needed to build products. The following is a brief list from a classification point of view.\\n\\n**The basic attributes of a build product include:**\\n\\n- Whether the product is packaged or not: the corresponding API is [`buildConfig.buildType`](/api/config/build-config#buildtype).\\n- Product support for syntax: the corresponding API is [`buildConfig.target`](/api/config/build-config#target).\\n- Output format: the corresponding API is [`buildConfig.format`](/api/config/build-config#format).\\n- How the output type file is handled: the corresponding API is [`buildConfig.dts`](/api/config/build-config#dts).\\n- How the sourceMap of the product is handled: the corresponding API is [`buildConfig.sourceMap`](/api/config/build-config#sourcemap).\\n- The input (or source file) corresponding to the output: the corresponding API is [`buildConfig.input`](/api/config/build-config#input).\\n- The directory of the output of the product: the corresponding API is [`buildConfig.outDir`](/api/config/build-config#outDir).\\n- Build source directory: the corresponding API is [`buildConfig.sourceDir`](/api/config/build-config#sourcedir).\\n\\n**Common functions required for build products include:**\\n\\n- Alias: The corresponding API is [`buildConfig.alias`](/api/config/build-config#alias).\\n- Static resource handling: the corresponding API is [`buildConfig.asset`](/api/config/build-config#asset).\\n- Third-party dependency handling: The corresponding APIs are\\n - [`buildConfig.autoExternal`](/api/config/build-config#autoexternal).\\n - [`buildConfig.externals`](/api/config/build-config#externals).\\n- Copy: The corresponding API is [`buildConfig.copy`](/api/config/build-config#copy).\\n- Global variable substitution: the corresponding API is [`buildConfig.define`](/api/config/build-config#define).\\n- Specify [JSX](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) compilation method, the corresponding API is [`buildConfig.jsx`](/api/config/ build-config#jsx).\\n\\n**Some advanced properties or less frequently used functions:**\\n\\n- Product code compression: The corresponding API is [`buildConfig.minify`](/api/config/build-config#minify).\\n- Code splitting: [`buildConfig.splitting`](/api/config/build-config#splitting)\\n- Specify whether the build product is for the NodeJS environment or the browser environment: the corresponding API is [`buildConfig.platform`](/api/config/build-config#platform).\\n- umd product-related.\\n - Specifies the global variables imported externally to the umd product: the corresponding API is [`buildConfig.umdGlobals`](/api/config/build-config#umdglobals).\\n - Specify the module name of the umd product: the corresponding API is [`buildConfig.umdModuleName`](/api/config/build-config#umdmodulename).\\n\\nIn addition to the above categories, frequently asked questions and best practices about these APIs can be found at the following links\\n\\n- [What are `bundle` and `bundleless`?](/guide/advance/in-depth-about-build#bundle- and-bundleless)\\n- [Relationship of `input` to `sourceDir`](/guide/advance/in-depth-about-build#input- to -sourcedir-)\\n- [Multiple ways to generate type files in product](/guide/advance/in-depth-about-build#type-files).\\n- [`buildConfig.define` Different ways to use it for different scenarios.](/guide/advance/in-depth-about-build#buildconfigdefine - How to use it for different scenarios)\\n- [How to handle third-party dependencies?](/guide/advance/external-dependency)\\n- [How to use copy?](/guide/advance/copy)\\n- How do I build umd products? (/guide/advance/build-umd# sets the global variable name of the project)\\n- [The capabilities currently supported by static resources.](/guide/advance/asset)\\n\\n## When to use `buildConfig`\\n\\n`buildConfig` is one of the methods used to modify the product, **only `buildConfig` will take effect when configured in conjunction with `buildPreset`**. So if configured as follows.\\n\\n```typescript\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n },\\n buildPreset: 'npm-library',\\n});\\n```\\n\\nThen at this point you will see the following prompt.\\n\\n```bash\\nSince both 'buildConfig' and 'buildPreset' are present, only the 'buildConfig' configuration will take effect\\n```\\n\\nThe set or sets of build-related configurations represented by `buildPreset` are composed of `buildConfig`, **which can be used to customize output products** when the current project needs cannot be met using `buildPreset`.\\n\\nThe process of using `buildConfig` is the process of thinking about **what kind of build product to get**.\\n\"";
1224
1222
  function _createMdxContent(props) {
1225
- var _components = Object.assign({
1226
- h1: "h1",
1227
- a: "a",
1223
+ const _components = Object.assign({
1228
1224
  h2: "h2",
1225
+ a: "a",
1229
1226
  p: "p",
1230
1227
  code: "code",
1231
1228
  strong: "strong",
1232
1229
  ul: "ul",
1233
1230
  li: "li",
1234
- div: "div",
1235
1231
  ol: "ol",
1236
1232
  h3: "h3",
1237
1233
  blockquote: "blockquote",
1238
1234
  em: "em"
1239
1235
  }, props.components);
1240
- if (!CH) _missingMdxReference("CH", false, "13:1-19:4");
1241
- if (!CH.Code) _missingMdxReference("CH.Code", true, "13:1-19:4");
1236
+ if (!CH) _missingMdxReference("CH", false, "11:1-18:4");
1237
+ if (!CH.Code) _missingMdxReference("CH.Code", true, "11:1-18:4");
1242
1238
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1243
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1244
- id: "modify-output-product",
1245
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1246
- className: "header-anchor",
1247
- "aria-hidden": "true",
1248
- href: "#modify-output-product",
1249
- children: "#"
1250
- }), "modify-output-product"]
1251
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1252
- id: "modify-output-product-1",
1239
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1240
+ id: "modify-the-output-product",
1253
1241
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1254
1242
  className: "header-anchor",
1255
1243
  "aria-hidden": "true",
1256
- href: "#modify-output-product-1",
1244
+ href: "#modify-the-output-product",
1257
1245
  children: "#"
1258
- }), "Modify output product"]
1246
+ }), "Modify the output product"]
1259
1247
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1260
1248
  id: "default-output-products",
1261
1249
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
@@ -1267,7 +1255,7 @@ function _createMdxContent(props) {
1267
1255
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1268
1256
  children: ["When the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1269
1257
  children: "modern build"
1270
- }), " command is used in an initialized project, the products are generated according to the default configuration supported by Module Tools. The default supported configurations are as follows."]
1258
+ }), " command is used in an initialized project, the products are generated according to the default configuration supported by Module Tools. The default supported configurations are specified as follows."]
1271
1259
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1272
1260
  codeConfig: chCodeConfig,
1273
1261
  northPanel: {
@@ -1294,6 +1282,27 @@ function _createMdxContent(props) {
1294
1282
  "color": "#D8DEE9FF"
1295
1283
  }
1296
1284
  }
1285
+ }, {
1286
+ "content": "moduleTools",
1287
+ "props": {
1288
+ "style": {
1289
+ "color": "#D8DEE9"
1290
+ }
1291
+ }
1292
+ }, {
1293
+ "content": ",",
1294
+ "props": {
1295
+ "style": {
1296
+ "color": "#ECEFF4"
1297
+ }
1298
+ }
1299
+ }, {
1300
+ "content": " ",
1301
+ "props": {
1302
+ "style": {
1303
+ "color": "#D8DEE9FF"
1304
+ }
1305
+ }
1297
1306
  }, {
1298
1307
  "content": "{",
1299
1308
  "props": {
@@ -1432,6 +1441,57 @@ function _createMdxContent(props) {
1432
1441
  }
1433
1442
  }
1434
1443
  }]
1444
+ }, {
1445
+ "tokens": [{
1446
+ "content": " ",
1447
+ "props": {
1448
+ "style": {
1449
+ "color": "#D8DEE9FF"
1450
+ }
1451
+ }
1452
+ }, {
1453
+ "content": "plugins",
1454
+ "props": {
1455
+ "style": {
1456
+ "color": "#D8DEE9"
1457
+ }
1458
+ }
1459
+ }, {
1460
+ "content": ":",
1461
+ "props": {
1462
+ "style": {
1463
+ "color": "#ECEFF4"
1464
+ }
1465
+ }
1466
+ }, {
1467
+ "content": " [",
1468
+ "props": {
1469
+ "style": {
1470
+ "color": "#D8DEE9FF"
1471
+ }
1472
+ }
1473
+ }, {
1474
+ "content": "moduleTools",
1475
+ "props": {
1476
+ "style": {
1477
+ "color": "#88C0D0"
1478
+ }
1479
+ }
1480
+ }, {
1481
+ "content": "()]",
1482
+ "props": {
1483
+ "style": {
1484
+ "color": "#D8DEE9FF"
1485
+ }
1486
+ }
1487
+ }, {
1488
+ "content": ",",
1489
+ "props": {
1490
+ "style": {
1491
+ "color": "#ECEFF4"
1492
+ }
1493
+ }
1494
+ }]
1435
1495
  }, {
1436
1496
  "tokens": [{
1437
1497
  "content": " ",
@@ -1469,7 +1529,7 @@ function _createMdxContent(props) {
1469
1529
  }
1470
1530
  }
1471
1531
  }, {
1472
- "content": "base-config",
1532
+ "content": "npm-library",
1473
1533
  "props": {
1474
1534
  "style": {
1475
1535
  "color": "#A3BE8C"
@@ -1520,59 +1580,45 @@ function _createMdxContent(props) {
1520
1580
  }]
1521
1581
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1522
1582
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1523
- children: "The default generated product has the following characteristics"
1524
- }), ":"]
1583
+ children: "The default generation product has the following characteristics"
1584
+ }), "."]
1525
1585
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1526
1586
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1527
- children: ["The code format is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1528
- href: "https://nodejs.org/api/modules.html#modules-commonjs-modules",
1587
+ children: ["will generate ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1588
+ href: "https://nodejs.org/api/modules.html#modules-commonjs-modules-2",
1589
+ target: "_blank",
1590
+ rel: "nofollow",
1529
1591
  children: "CommonJS"
1530
- }), ", or simply ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1531
- children: "cjs"
1532
- }), "."]
1592
+ }), " and [ESM](", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1593
+ href: "https://nodejs.org/api/esm.html#modules--1",
1594
+ target: "_blank",
1595
+ rel: "nofollow",
1596
+ children: "https://nodejs.org/api/esm.html#modules-"
1597
+ }), " ecmascript-modules)."]
1533
1598
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1534
- children: ["Code syntax is supported up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1599
+ children: ["The code syntax is supported up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1535
1600
  children: "ES6"
1536
- }), "."]
1601
+ }), " , and more advanced syntax will be converted."]
1537
1602
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1538
- children: ["All code is packaged into a single file, i.e. ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1603
+ children: ["All code is packaged into one file, i.e. ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1539
1604
  children: "bundle"
1540
1605
  }), " processing is performed."]
1541
1606
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1542
1607
  children: ["The output root directory is the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1543
1608
  children: "dist"
1544
- }), " directory under the project, and the output directory for type files is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1609
+ }), " directory under the project, and the type file output directory is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1545
1610
  children: "dist/types"
1546
1611
  }), "."]
1547
1612
  }), "\n"]
1548
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
1549
- className: "modern-directive tip",
1550
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1551
- className: "modern-directive-title",
1552
- children: "TIP"
1553
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
1554
- className: "island-directive-content",
1555
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ol, {
1556
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1557
- children: ["By \"code syntax support up to ES6\", we mean that the syntax supported by the product code will not exceed ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1558
- children: "ES6"
1559
- }), ". If the source code uses syntax above ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1560
- children: "ES6"
1561
- }), " (e.g. ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1562
- children: "ES2017"
1563
- }), "), it will be converted."]
1564
- }), "\n"]
1565
- })
1566
- })]
1567
1613
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1568
- children: "You may have the following questions when you see this:"
1614
+ children: "You may have the following questions when you see this."
1569
1615
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ol, {
1570
1616
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1571
1617
  children: ["what is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1572
1618
  children: "buildPreset"
1573
1619
  }), "?"]
1574
1620
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1575
- children: "what determines these characteristics of the output?"
1621
+ children: "what determines these characteristics of the product?"
1576
1622
  }), "\n"]
1577
1623
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1578
1624
  children: ["Then the next step is to first explain ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
@@ -1587,47 +1633,45 @@ function _createMdxContent(props) {
1587
1633
  children: "#"
1588
1634
  }), "buildPreset"]
1589
1635
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1590
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1636
+ children: ["The ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1591
1637
  children: "buildPreset"
1592
- }), " represents one or more sets of build-related configurations prepared in advance. By using the corresponding preset values of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1638
+ }), " represents one or more sets of build-related configurations prepared in advance. By using the corresponding preset values of the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1593
1639
  children: "buildPreset"
1594
1640
  }), ", you can eliminate the troublesome and complicated configuration work and get the expected product."]
1595
1641
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
1596
- id: "string-form-of-buildpreset",
1642
+ id: "string-form-of-build-preset",
1597
1643
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1598
1644
  className: "header-anchor",
1599
1645
  "aria-hidden": "true",
1600
- href: "#string-form-of-buildpreset",
1646
+ href: "#string-form-of-build-preset",
1601
1647
  children: "#"
1602
- }), "String form of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1603
- children: "buildPreset"
1604
- })]
1648
+ }), "String form of build preset"]
1605
1649
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1606
1650
  children: ["The value of a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1607
1651
  children: "build preset can be in the form of a string"
1608
1652
  }), ", so a build preset of this form is called a preset string."]
1609
1653
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1610
1654
  children: ["The module engineering solution provides generic build preset strings and corresponding variants, depending on the generic scenario in which the npm package is used. All currently supported preset strings can be viewed via the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1611
- href: "/en/api/config/build-config.html",
1655
+ href: "/module-tools/en/api/config/build-preset.html",
1612
1656
  children: "BuildPreset API"
1613
- }), ". The relationship between ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1657
+ }), ". Here is an explanation about the relationship between ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1614
1658
  children: "generic preset strings and variants"
1615
- }), " is explained here."]
1659
+ }), "."]
1616
1660
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1617
1661
  children: ["Among the generic preset strings, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1618
1662
  children: "\"npm-library\""
1619
1663
  }), " can be used in the scenario of developing npm packages of the library type, which is suitable for most common module type projects. When ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1620
1664
  children: "\"npm-library\""
1621
- }), " is set, the output product of the project will have the following characteristics:"]
1665
+ }), " is set, the output product of the project will have the following characteristics."]
1622
1666
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1623
1667
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1624
1668
  children: ["In the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1625
1669
  children: "dist/lib"
1626
- }), " directory you will get the product in the code format ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1670
+ }), " directory you will get code formatted as ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1627
1671
  children: "cjs"
1628
- }), ", with syntax support up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1672
+ }), ", syntax supported up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1629
1673
  children: "es6"
1630
- }), " and after packaging."]
1674
+ }), " and packaged."]
1631
1675
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1632
1676
  children: ["In the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1633
1677
  children: "dist/es"
@@ -1635,7 +1679,7 @@ function _createMdxContent(props) {
1635
1679
  children: "esm"
1636
1680
  }), ", with syntax support up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1637
1681
  children: "es6"
1638
- }), " and packaged."]
1682
+ }), " and after packaging."]
1639
1683
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1640
1684
  children: ["In the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1641
1685
  children: "dist/types"
@@ -1644,39 +1688,35 @@ function _createMdxContent(props) {
1644
1688
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1645
1689
  children: ["The default string ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1646
1690
  children: "\"npm-library\""
1647
- }), " is a variant of the original product with modified ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1648
- children: "code-syntax support"
1649
- }), " and a string naming change to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1691
+ }), " is a variant of the original product with a modified ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1692
+ children: "code syntax support"
1693
+ }), " feature and a string naming change to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1650
1694
  children: "\"npm-library-[es5 | es2016.... . es2020 | esnext]\""
1651
1695
  }), "."]
1652
1696
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1653
1697
  children: ["For example, if the output product is based on the preset string ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1654
1698
  children: "\"npm-library\""
1655
1699
  }), " and the syntax supported by the product code is changed to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1656
- children: "es2017"
1700
+ children: "es5"
1657
1701
  }), ", then simply changing ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1658
1702
  children: "\"npm-library\""
1659
1703
  }), " to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1660
- children: "\"npm-library-es2017\""
1704
+ children: "\"npm-library-es5\""
1661
1705
  }), " would be sufficient."]
1662
1706
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
1663
- id: "function-form-of-buildpreset",
1707
+ id: "build-pre-defined-function-forms",
1664
1708
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1665
1709
  className: "header-anchor",
1666
1710
  "aria-hidden": "true",
1667
- href: "#function-form-of-buildpreset",
1711
+ href: "#build-pre-defined-function-forms",
1668
1712
  children: "#"
1669
- }), "Function form of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1670
- children: "buildPreset"
1671
- })]
1713
+ }), "Build pre-defined function forms"]
1672
1714
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1673
1715
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1674
1716
  children: "In addition to the string form, the value of a build preset can also be in the form of a function, where the specific configuration corresponding to a preset value can be printed or modified"
1675
1717
  }), "."]
1676
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1677
- children: ["For example, if the same effect as the preset string ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1678
- children: "\"npm-library-es2017\""
1679
- }), " is achieved using the preset function form, it can be done as follows:"]
1718
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1719
+ children: "For example, to achieve the same effect as the preset string ``npm-library-es5\"` using the form of a preset function, you can do the following."
1680
1720
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1681
1721
  codeConfig: chCodeConfig,
1682
1722
  northPanel: {
@@ -1760,7 +1800,7 @@ function _createMdxContent(props) {
1760
1800
  }
1761
1801
  }
1762
1802
  }, {
1763
- "content": "\"",
1803
+ "content": "'",
1764
1804
  "props": {
1765
1805
  "style": {
1766
1806
  "color": "#ECEFF4"
@@ -1774,7 +1814,7 @@ function _createMdxContent(props) {
1774
1814
  }
1775
1815
  }
1776
1816
  }, {
1777
- "content": "\"",
1817
+ "content": "'",
1778
1818
  "props": {
1779
1819
  "style": {
1780
1820
  "color": "#ECEFF4"
@@ -2113,7 +2153,7 @@ function _createMdxContent(props) {
2113
2153
  }
2114
2154
  }
2115
2155
  }, {
2116
- "content": "es2017",
2156
+ "content": "es5",
2117
2157
  "props": {
2118
2158
  "style": {
2119
2159
  "color": "#A3BE8C"
@@ -2233,27 +2273,22 @@ function _createMdxContent(props) {
2233
2273
  }), " object and modify the shallow copy to get ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2234
2274
  children: "buildConfig.target"
2235
2275
  }), ", specifying it as ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2236
- children: "es2017"
2276
+ children: "es5"
2237
2277
  }), "."]
2238
2278
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.blockquote, {
2239
2279
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2240
- children: ["The specific value of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2241
- children: "preset.NPM_LIBRARY"
2242
- }), " can be viewed via the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2243
- href: "/en/api/config/build-config.html",
2244
- children: "BuildPreset API"
2245
- }), ". The ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2246
- children: "preset"
2247
- }), " object contains not only ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2248
- children: "NPM_LIBRARY"
2249
- }), ", but also other similar constants."]
2280
+ children: ["NPM_LIBRARY", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2281
+ children: ", you can check it with [BuildPreset API](/api/config/build-preset). The"
2282
+ }), "preset", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2283
+ children: "object contains not only"
2284
+ }), "NPM_LIBRARY`, but also other similar constants."]
2250
2285
  }), "\n"]
2251
2286
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2252
2287
  children: ["So what is the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2253
2288
  children: "buildConfig"
2254
- }), " object here? And what are the previously mentioned build product features based on?"]
2289
+ }), " object here? What is the basis for the build product feature mentioned before?"]
2255
2290
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2256
- children: "We explain it next."
2291
+ children: "Let's explain next."
2257
2292
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2258
2293
  id: "build-configuration-object",
2259
2294
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
@@ -2273,7 +2308,7 @@ function _createMdxContent(props) {
2273
2308
  children: "buildConfig"
2274
2309
  }), ". The currently supported properties cover the needs of most module type projects when building products. ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2275
2310
  children: "buildConfig"
2276
- }), " not only contains some of the properties that products have, but also some of the features needed to build products. The following is a brief list from a classification point of view:"]
2311
+ }), " not only contains some properties that products have, but also contains some features needed to build products. The following is a brief list from a classification point of view."]
2277
2312
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2278
2313
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2279
2314
  children: "The basic attributes of a build product include:"
@@ -2281,56 +2316,56 @@ function _createMdxContent(props) {
2281
2316
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2282
2317
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2283
2318
  children: ["Whether the product is packaged or not: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2284
- href: "/en/api/config/build-config#buildtype.html",
2319
+ href: "/module-tools/en/api/config/build-config.html#buildtype-4",
2285
2320
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2286
2321
  children: "buildConfig.buildType"
2287
2322
  })
2288
2323
  }), "."]
2289
2324
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2290
2325
  children: ["Product support for syntax: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2291
- href: "/en/api/config/build-config#target.html",
2326
+ href: "/module-tools/en/api/config/build-config.html#target-2",
2292
2327
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2293
2328
  children: "buildConfig.target"
2294
2329
  })
2295
2330
  }), "."]
2296
2331
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2297
- children: ["Output format: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2298
- href: "/en/api/config/build-config#format.html",
2332
+ children: ["Output format: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2333
+ href: "/module-tools/en/api/config/build-config.html#format-2",
2299
2334
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2300
2335
  children: "buildConfig.format"
2301
2336
  })
2302
2337
  }), "."]
2303
2338
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2304
- children: ["How to handle the output type file: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2305
- href: "/en/api/config/build-config#dts.html",
2339
+ children: ["How the output type file is handled: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2340
+ href: "/module-tools/en/api/config/build-config.html#dts-4",
2306
2341
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2307
2342
  children: "buildConfig.dts"
2308
2343
  })
2309
2344
  }), "."]
2310
2345
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2311
2346
  children: ["How the sourceMap of the product is handled: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2312
- href: "/en/api/config/build-config#sourcemap.html",
2347
+ href: "/module-tools/en/api/config/build-config.html#sourcemap-2",
2313
2348
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2314
2349
  children: "buildConfig.sourceMap"
2315
2350
  })
2316
2351
  }), "."]
2317
2352
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2318
2353
  children: ["The input (or source file) corresponding to the output: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2319
- href: "/en/api/config/build-config#input.html",
2354
+ href: "/module-tools/en/api/config/build-config.html#input-4",
2320
2355
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2321
2356
  children: "buildConfig.input"
2322
2357
  })
2323
2358
  }), "."]
2324
2359
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2325
2360
  children: ["The directory of the output of the product: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2326
- href: "/en/api/config/build-config#outDir.html",
2361
+ href: "/module-tools/en/api/config/build-config.html#outdir-8",
2327
2362
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2328
2363
  children: "buildConfig.outDir"
2329
2364
  })
2330
2365
  }), "."]
2331
2366
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2332
- children: ["The source directory of the build: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2333
- href: "/en/api/config/build-config#sourcedir.html",
2367
+ children: ["Build source directory: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2368
+ href: "/module-tools/en/api/config/build-config.html#sourcedir-6",
2334
2369
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2335
2370
  children: "buildConfig.sourceDir"
2336
2371
  })
@@ -2338,19 +2373,19 @@ function _createMdxContent(props) {
2338
2373
  }), "\n"]
2339
2374
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2340
2375
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2341
- children: "Common functions needed to build products include:"
2376
+ children: "Common functions required for build products include:"
2342
2377
  })
2343
2378
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2344
2379
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2345
2380
  children: ["Alias: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2346
- href: "/en/api/config/build-config#alias.html",
2381
+ href: "/module-tools/en/api/config/build-config.html#alias-2",
2347
2382
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2348
2383
  children: "buildConfig.alias"
2349
2384
  })
2350
2385
  }), "."]
2351
2386
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2352
- children: ["Static resource handling: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2353
- href: "/en/api/config/build-config#asset.html",
2387
+ children: ["Static resource handling: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2388
+ href: "/module-tools/en/api/config/build-config.html#asset-4",
2354
2389
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2355
2390
  children: "buildConfig.asset"
2356
2391
  })
@@ -2359,14 +2394,14 @@ function _createMdxContent(props) {
2359
2394
  children: ["Third-party dependency handling: The corresponding APIs are", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2360
2395
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2361
2396
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2362
- href: "/en/api/config/build-config#autoexternal.html",
2397
+ href: "/module-tools/en/api/config/build-config.html#autoexternal-6",
2363
2398
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2364
2399
  children: "buildConfig.autoExternal"
2365
2400
  })
2366
2401
  }), "."]
2367
2402
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2368
2403
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2369
- href: "/en/api/config/build-config#externals.html",
2404
+ href: "/module-tools/en/api/config/build-config.html#externals-8",
2370
2405
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2371
2406
  children: "buildConfig.externals"
2372
2407
  })
@@ -2375,14 +2410,14 @@ function _createMdxContent(props) {
2375
2410
  }), "\n"]
2376
2411
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2377
2412
  children: ["Copy: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2378
- href: "/en/api/config/build-config#copy.html",
2413
+ href: "/module-tools/en/api/config/build-config.html#copy-4",
2379
2414
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2380
2415
  children: "buildConfig.copy"
2381
2416
  })
2382
2417
  }), "."]
2383
2418
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2384
2419
  children: ["Global variable substitution: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2385
- href: "/en/api/config/build-config#define.html",
2420
+ href: "/module-tools/en/api/config/build-config.html#define-4",
2386
2421
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2387
2422
  children: "buildConfig.define"
2388
2423
  })
@@ -2390,13 +2425,12 @@ function _createMdxContent(props) {
2390
2425
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2391
2426
  children: ["Specify ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2392
2427
  href: "https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html",
2428
+ target: "_blank",
2429
+ rel: "nofollow",
2393
2430
  children: "JSX"
2394
- }), " compilation method, the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2395
- href: "/en/api/config/build-config#jsx.html",
2396
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2397
- children: "buildConfig.jsx"
2398
- })
2399
- }), "."]
2431
+ }), " compilation method, the corresponding API is [", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2432
+ children: "buildConfig.jsx"
2433
+ }), "](/api/config/ build-config#jsx)."]
2400
2434
  }), "\n"]
2401
2435
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2402
2436
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
@@ -2405,21 +2439,21 @@ function _createMdxContent(props) {
2405
2439
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2406
2440
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2407
2441
  children: ["Product code compression: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2408
- href: "/en/api/config/build-config#minify.html",
2442
+ href: "/module-tools/en/api/config/build-config.html#minify-2",
2409
2443
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2410
2444
  children: "buildConfig.minify"
2411
2445
  })
2412
2446
  }), "."]
2413
2447
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2414
2448
  children: ["Code splitting: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2415
- href: "/en/api/config/build-config#splitting.html",
2449
+ href: "/module-tools/en/api/config/build-config.html#splitting-5",
2416
2450
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2417
2451
  children: "buildConfig.splitting"
2418
2452
  })
2419
2453
  })]
2420
2454
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2421
2455
  children: ["Specify whether the build product is for the NodeJS environment or the browser environment: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2422
- href: "/en/api/config/build-config#platform.html",
2456
+ href: "/module-tools/en/api/config/build-config.html#platform-2",
2423
2457
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2424
2458
  children: "buildConfig.platform"
2425
2459
  })
@@ -2428,14 +2462,14 @@ function _createMdxContent(props) {
2428
2462
  children: ["umd product-related.", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2429
2463
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2430
2464
  children: ["Specifies the global variables imported externally to the umd product: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2431
- href: "/en/api/config/build-config#umdglobals.html",
2465
+ href: "/module-tools/en/api/config/build-config.html#umdglobals-4",
2432
2466
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2433
2467
  children: "buildConfig.umdGlobals"
2434
2468
  })
2435
2469
  }), "."]
2436
2470
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2437
2471
  children: ["Specify the module name of the umd product: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2438
- href: "/en/api/config/build-config#umdmodulename.html",
2472
+ href: "/module-tools/en/api/config/build-config.html#umdmodulename-4",
2439
2473
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2440
2474
  children: "buildConfig.umdModuleName"
2441
2475
  })
@@ -2444,56 +2478,44 @@ function _createMdxContent(props) {
2444
2478
  }), "\n"]
2445
2479
  }), "\n"]
2446
2480
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2447
- children: "In addition to the above categories, frequently asked questions and best practices about these APIs can be found at the following links."
2481
+ children: "In addition to the above categories, frequently asked questions and best practices about these APIs can be found at the following links"
2448
2482
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2449
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2450
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2451
- href: "/en/guide/advance/in-depth-about-build#bundle-and-bundleless.html",
2452
- children: ["What are ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2453
- children: "bundle"
2454
- }), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2455
- children: "bundleless"
2456
- }), "?"]
2457
- })
2458
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2459
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2460
- href: "/en/guide/advance/in-depth-about-build#relationship-between-input-and-sourcedir.html",
2461
- children: ["The relationship between ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2462
- children: "input"
2463
- }), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2464
- children: "sourceDir"
2465
- })]
2466
- })
2467
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2468
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2469
- href: "/en/guide/advance/in-depth-about-build#declaration-type-files.html",
2470
- children: "The multiple ways of generating type files in products"
2471
- })
2472
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2473
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2474
- href: "/en/guide/advance/in-depth-about-build#buildconfigdefine-usage-for-different-scenarios.html",
2475
- children: ["The use of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2476
- children: "buildConfig.define"
2477
- }), " for different scenarios."]
2478
- })
2483
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2484
+ children: ["[What are ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2485
+ children: "bundle"
2486
+ }), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2487
+ children: "bundleless"
2488
+ }), "?](/guide/advance/in-depth-about-build#bundle- and-bundleless)"]
2489
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2490
+ children: ["[Relationship of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2491
+ children: "input"
2492
+ }), " to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2493
+ children: "sourceDir"
2494
+ }), "](/guide/advance/in-depth-about-build#input- to -sourcedir-)"]
2495
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2496
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2497
+ href: "/module-tools/en/guide/advance/in-depth-about-build.html#type-files-1",
2498
+ children: "Multiple ways to generate type files in product"
2499
+ }), "."]
2500
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2501
+ children: ["[", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2502
+ children: "buildConfig.define"
2503
+ }), " Different ways to use it for different scenarios.](/guide/advance/in-depth-about-build#buildconfigdefine - How to use it for different scenarios)"]
2479
2504
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2480
2505
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2481
- href: "/en/guide/advance/external-dependency.html",
2506
+ href: "/module-tools/en/guide/advance/external-dependency.html",
2482
2507
  children: "How to handle third-party dependencies?"
2483
2508
  })
2484
2509
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2485
2510
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2486
- href: "/en/guide/advance/copy.html",
2511
+ href: "/module-tools/en/guide/advance/copy.html",
2487
2512
  children: "How to use copy?"
2488
2513
  })
2489
2514
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2490
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2491
- href: "/en/guide/advance/build-umd.html",
2492
- children: "How to build umd products?"
2493
- })
2515
+ children: "How do I build umd products? (/guide/advance/build-umd# sets the global variable name of the project)"
2494
2516
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2495
2517
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2496
- href: "/en/guide/advance/asset.html",
2518
+ href: "/module-tools/en/guide/advance/asset.html",
2497
2519
  children: "The capabilities currently supported by static resources."
2498
2520
  })
2499
2521
  }), "\n"]
@@ -2510,8 +2532,8 @@ function _createMdxContent(props) {
2510
2532
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2511
2533
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2512
2534
  children: "buildConfig"
2513
- }), " is one of the ways used to modify the product, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
2514
- children: ["and only ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2535
+ }), " is one of the methods used to modify the product, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
2536
+ children: ["only ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2515
2537
  children: "buildConfig"
2516
2538
  }), " will take effect when configured in conjunction with ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2517
2539
  children: "buildPreset"
@@ -2704,26 +2726,70 @@ function _createMdxContent(props) {
2704
2726
  }
2705
2727
  }
2706
2728
  }, {
2707
- "content": " [",
2729
+ "content": " ",
2708
2730
  "props": {
2709
2731
  "style": {
2710
2732
  "color": "#D8DEE9FF"
2711
2733
  }
2712
2734
  }
2713
2735
  }, {
2714
- "content": "{}",
2736
+ "content": "{",
2715
2737
  "props": {
2716
2738
  "style": {
2717
2739
  "color": "#ECEFF4"
2718
2740
  }
2719
2741
  }
2742
+ }]
2743
+ }, {
2744
+ "tokens": [{
2745
+ "content": " ",
2746
+ "props": {
2747
+ "style": {
2748
+ "color": "#D8DEE9FF"
2749
+ }
2750
+ }
2720
2751
  }, {
2721
- "content": "]",
2752
+ "content": "format",
2753
+ "props": {
2754
+ "style": {
2755
+ "color": "#D8DEE9"
2756
+ }
2757
+ }
2758
+ }, {
2759
+ "content": ":",
2760
+ "props": {
2761
+ "style": {
2762
+ "color": "#ECEFF4"
2763
+ }
2764
+ }
2765
+ }, {
2766
+ "content": " ",
2722
2767
  "props": {
2723
2768
  "style": {
2724
2769
  "color": "#D8DEE9FF"
2725
2770
  }
2726
2771
  }
2772
+ }, {
2773
+ "content": "'",
2774
+ "props": {
2775
+ "style": {
2776
+ "color": "#ECEFF4"
2777
+ }
2778
+ }
2779
+ }, {
2780
+ "content": "umd",
2781
+ "props": {
2782
+ "style": {
2783
+ "color": "#A3BE8C"
2784
+ }
2785
+ }
2786
+ }, {
2787
+ "content": "'",
2788
+ "props": {
2789
+ "style": {
2790
+ "color": "#ECEFF4"
2791
+ }
2792
+ }
2727
2793
  }, {
2728
2794
  "content": ",",
2729
2795
  "props": {
@@ -2732,6 +2798,22 @@ function _createMdxContent(props) {
2732
2798
  }
2733
2799
  }
2734
2800
  }]
2801
+ }, {
2802
+ "tokens": [{
2803
+ "content": " ",
2804
+ "props": {
2805
+ "style": {
2806
+ "color": "#D8DEE9FF"
2807
+ }
2808
+ }
2809
+ }, {
2810
+ "content": "},",
2811
+ "props": {
2812
+ "style": {
2813
+ "color": "#ECEFF4"
2814
+ }
2815
+ }
2816
+ }]
2735
2817
  }, {
2736
2818
  "tokens": [{
2737
2819
  "content": " ",
@@ -2769,7 +2851,7 @@ function _createMdxContent(props) {
2769
2851
  }
2770
2852
  }
2771
2853
  }, {
2772
- "content": "base-config",
2854
+ "content": "npm-library",
2773
2855
  "props": {
2774
2856
  "style": {
2775
2857
  "color": "#A3BE8C"
@@ -2942,27 +3024,23 @@ function _createMdxContent(props) {
2942
3024
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2943
3025
  children: ["The process of using ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2944
3026
  children: "buildConfig"
2945
- }), " is the process of thinking about \"", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.em, {
3027
+ }), " is the process of thinking about ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2946
3028
  children: "what kind of build product to get"
2947
- }), "\"."]
3029
+ }), "."]
2948
3030
  })]
2949
3031
  });
2950
3032
  }
2951
- function MDXContent() {
2952
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2953
- var _ref = props.components || {},
2954
- MDXLayout = _ref.wrapper;
3033
+ function MDXContent(props = {}) {
3034
+ const {wrapper: MDXLayout} = props.components || ({});
2955
3035
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
2956
3036
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
2957
3037
  })) : _createMdxContent(props);
2958
3038
  }
2959
- _c = MDXContent;
2960
3039
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
2961
3040
  function _missingMdxReference(id, component, place) {
2962
- throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/bytedance/modern.js/website/module-tools/docs/en/guide/basic/modify-output-product.md`" : ""));
3041
+ throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/basic/modify-output-product.md`" : ""));
2963
3042
  }
2964
- var _c;
2965
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
3043
+
2966
3044
 
2967
3045
  /***/ })
2968
3046