@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
@@ -18,11 +18,11 @@ __webpack_require__.r(__webpack_exports__);
18
18
  /*@jsxRuntime automatic @jsxImportSource react*/
19
19
 
20
20
 
21
- var CH = {
21
+ const CH = {
22
22
  annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
23
23
  Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code
24
24
  };
25
- var chCodeConfig = {
25
+ const chCodeConfig = {
26
26
  "staticMediaQuery": "not screen, (max-width: 768px)",
27
27
  "theme": {
28
28
  "name": "nord",
@@ -1185,12 +1185,12 @@ var chCodeConfig = {
1185
1185
  "autoImport": true,
1186
1186
  "showCopyButton": true,
1187
1187
  "skipLanguages": [],
1188
- "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/en/guide/basic/before-getting-started.md"
1188
+ "filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/basic/before-getting-started.md"
1189
1189
  };
1190
- var frontmatter = {
1190
+ const frontmatter = {
1191
1191
  "sidebar_position": 1
1192
1192
  };
1193
- var toc = [{
1193
+ const toc = [{
1194
1194
  "id": "environment-preparation",
1195
1195
  "text": "Environment preparation",
1196
1196
  "depth": 2
@@ -1239,10 +1239,10 @@ var toc = [{
1239
1239
  "text": "Module Tools configuration file",
1240
1240
  "depth": 2
1241
1241
  }];
1242
- var title = "Before you start";
1243
- var content = "\"---\\nsidebar_position: 1\\n---\\n\\n# Before you start\\n\\n## Environment preparation\\n\\nIn order to use the Modern.js module engineering solution, you first need [NodeJS](https://nodejs.org/zh/) engine, we recommend the latest [LTS version](https://github.com/nodejs/Release), and make sure the Node version is **>=14.17.6**. because non-stable NodeJS releases frequently have bugs. You might consider installing via [nvm-windows](https://github.com/coreybutler/nvm-windows) and [nvm](https://github.com/nvm-sh/nvm) (Mac/linux), so you can easily switch to different NodeJS versions that might be required for different projects that you work on.\\n\\n## Getting Started with npm\\n\\nOnce NodeJS is installed, not only can you access the `node` executable from the command line, but you can also execute the `npm` command.\\n\\nNpm is the standard package manager for NodeJS. It started out as a tool for downloading and managing NodeJS package dependencies, but it has since evolved into a tool for front-end JavaScript.\\n\\n**If you already know something about usage of npm and npm packages, then you can directly see [npm package manager](/en/guide/basic/before-getting-started#npm-package-manager) section.**\\n\\n## npm package type project\\n\\nSo what is an npm package type project? When we execute the `npm init` command in an empty project directory, it creates a JSON file with the file name `package.json` under the current directory. During the creation process, we will need to fill in information including but not limited to the _name_, _version_ _number_, _description_, etc. of the npm package, which will be found in the resulting `package.json` file as follows\\n\\n```json\\n{\\n \\\"name\\\": \\\"npm-demo\\\",\\n \\\"version\\\": \\\"1.0.0\\\",\\n \\\"description\\\": \\\"\\\",\\n \\\"main\\\": \\\"index.js\\\",\\n \\\"scripts\\\": {\\n \\\"test\\\": \\\"echo \\\\\\\"Error: no test specified\\\\\\\" && exit 1\\\"\\n },\\n \\\"author\\\": \\\"\\\",\\n \\\"license\\\": \\\"ISC\\\"\\n}\\n```\\n\\nAt this point the project containing the initialized `package.json` file is an npm package type project, and you can execute the `npm publish` command to publish the project to the [npm Registry](https://www.npmjs.com/).\\n\\nThe npm Registry is a [npm package store](https://docs.npmjs.com/about-the-public-npm-registry) where developers can not only publish their own npm packages to the npm Registry, but also use npm packages published by other developers through the npm Registry.\\n\\nA quality npm package will be used by more people because it not only saves a lot of code implementation work, but is also less likely to cause problems with the project.\\n\\n## Using third-party npm packages\\n\\nWhen adding a third-party npm package to an initial project, we can call this process \\\"installing dependencies for the project\\\" or \\\"adding dependencies to the project\\\". Before adding dependencies, we need to know one thing in particular -- **the types of packages npm depends on**.\\n\\n- `\\\"dependencies\\\"`: a type of package that your application will need in a production environment.\\n- `\\\"devDependencies\\\"`: another type of package that is only needed for local development and testing.\\n > packages can be understood as third-party npm packages.\\n\\nYou can install the packages you need in a **production environment** by running `npm install npm-package-name` or `npm add npm-package-name`, or you can manually write the packages you need to install and the corresponding [semantic version](https://docs.npmjs.com/about-semantic-versioning) in `\\\"dependencies\\\"` in the `package.json` file, and run the `npm install` command to.\\n\\n```json\\n{\\n \\\"name\\\": \\\"your-npm-project\\\",\\n \\\"dependencies\\\": {\\n \\\"npm-package-name\\\": \\\"0.1.0\\\"\\n }\\n}\\n```\\n\\nSimilarly, you can install **only packages needed for local development and testing** by running `npm install npm-package-name --save-dev` or `npm add npm-package-name --save-dev`, or you can manually write the packages to be installed and the corresponding [semantic version](https://docs.npmjs.com/about-semantic-versioning) in `\\\"devDependencies\\\"` in the `package.json` file, and run the `npm install` command as follows\\n\\n```json\\n{\\n \\\"name\\\": \\\"your-npm-project\\\",\\n \\\"devDependencies\\\": {\\n \\\"npm-package-name\\\": \\\"0.1.0\\\"\\n }\\n}\\n```\\n\\n**When installing or using third-party npm packages be sure to determine what they are for and whether they should be placed in `\\\"dependencies\\\"` or `\\\"devDependencies\\\"` by distinguishing between their types.**\\n:::tip\\nIn general, packages that need to be used in source code are `dependencies` dependencies. Unless you are exporting dependent code locally via packaging, in which case it can be treated as a `devDependencies` dependency.\\n:::\\n\\n## Other npm bits and pieces to know\\n\\n### Program entry for npm packages\\n\\nThere is a `\\\"main\\\"` attribute in `package.json` that corresponds to a module ID or, more intuitively, a NodeJS file path, which is the main entry point for your application.\\n\\nFor example, if your package is named `foo` and the user installs it, and then executes the `require(\\\"foo\\\")` code, then the file corresponding to the `\\\"main\\\"` field of the npm package `foo` will be exported.\\n\\n**It is recommended to set the `\\\"main\\\"` field in your npm package**. If `\\\"main\\\"` is not set, the default entry will be the `index.js` file in the root of the package.\\n\\nIn addition to the `\\\"main\\\"` attribute, the `\\\"module\\\"` attribute is usually set. It is similar to the `\\\"main\\\"` attribute in that it is mainly used in webpack scenarios. webpack reads the npm package entry (file) in most cases in the order **\\\"module\\\" -> \\\"main \\\"**.\\n\\n> To learn more about how webpack does this, check out this [link](https://webpack.js.org/configuration/resolve/#resolvemainfields).\\n\\n### `\\\"scripts\\\"`\\n\\nThe `\\\"scripts\\\"` attribute of the `package.json` file supports a number of built-in scripts and npm-preset lifecycle events, as well as arbitrary scripts.\\n\\nThese can be executed by running `npm run-script <stage>` or simply `npm run <stage>`.\\n\\nName matching [pre and post commands](https://docs.npmjs.com/cli/v9/using-npm/scripts#pre--post-scripts) will also be run (e.g. `premyscript`, `myscript`, `postmyscript` ).\\n\\n```json\\n{\\n \\\"scripts\\\": {\\n \\\"premyscript\\\": \\\"\\\",\\n \\\"myscript\\\": \\\"\\\",\\n \\\"postmyscript\\\": \\\"\\\"\\n }\\n}\\n```\\n\\nWhen `npm run myscripts` is executed, the script corresponding to `premyscripts` will be executed before it, and the script corresponding to `postmyscripts` will be executed after it.\\n\\nScript commands from dependencies can be run with `npm explore <pkg> -- npm run <stage>`.\\n\\nThere are also special lifecycle scripts that occur only under certain circumstances. Here are a few that are usually necessary to know.\\n\\n#### `npm install`\\n\\nWhen you run `npm install -g <pkg-name>`, the following scripts will run.\\n\\n- `preinstall`\\n- `install`\\n- `postinstall`\\n- `prepublish`\\n- `preprepare`\\n- `prepare`\\n- `postprepare`\\n\\nIf your package root has a `binding.gyp` file and you don't define an `install` or `preinstall` script, then npm will build with `node-gyp rebuild` as the default install command, using [node-gyp](https://github.com/nodejs/node-gyp).\\n\\n#### `npm publish`\\n\\nWhen publishing a project, executing this command will trigger the following script.\\n\\n- `prepublishOnly`\\n- `prepack`\\n- `prepare`\\n- `postpack`\\n- `publish`\\n- `postpublish`\\n\\nWhen running in [`-dry-run`](https://docs.npmjs.com/cli/v7/commands/npm-publish#dry-run) mode, the script corresponding to `prepare` will not be executed.\\n\\n### peerDependencies\\n\\nIn some cases, your npm project has a compatibility relationship with its host tool or library (e.g. a webpack plugin project and webpack), and your npm project does not want to use the host as a necessary dependency, which usually means that your project is probably a plugin for that host tool or library. Your npm project will have certain requirements for the version of the host package, as only the APIs required by the npm project will be exposed under a specific version.\\n\\nFor more explanation of `peerDependencies`, you can learn about the different ways npm, pnpm, and Yarn handle it at the following links.\\n\\n- [npm's explanation of peerDependencies](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#peerdependencies)\\n- [pnpm vs npm vs Yarn](https://pnpm.io/feature-comparison)\\n\\n## npm package manager\\n\\nIn addition to the standard package manager like npm, the mainstream ones are **pnpm** and **Yarn**, both of which are good alternatives to npm cli.\\n\\nIt is recommended to use [pnpm](https://pnpm.io/installation) to manage project dependencies, which can be installed as follows.\\n\\n```bash\\nnpm install -g pnpm\\n```\\n\\n## Module Tools configuration file\\n\\nA configuration file for Module Tools is provided in the initial module project directory -- `modern.config.(j|t)s`. By default, no configuration is required, so the `modern.config` configuration file is not required to exist.\\n\\nThe contents of the initial configuration file are as follows.\\n\\n```typescript\\n// modern.config.ts\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({});\\n```\\n\\n```js\\n// modern.config.js\\nconst { defineConfig } = require('@modern-js/module-tools');\\n\\nmodule.exports = defineConfig({});\\n```\\n\\n**We recommend using the `defineConfig` function**, but it is not mandatory to use it. So you can also return an object directly in the configuration file: the:\\n\\n```typescript\\n// modern.config.ts\\nexport default {};\\n```\\n\\n```js\\n// modern.config.js\\nmodule.exports = {};\\n```\\n\"";
1242
+ const title = `Before you start`;
1243
+ const content = "\"---\\nsidebar_position: 1\\n---\\n\\n# Before you start\\n\\n## Environment preparation\\n\\nIn order to use the Modern.js module engineering solution, you first need [NodeJS](https://nodejs.org/zh/) engine, we recommend the latest [LTS version](https://github.com/nodejs/Release), and make sure the Node version is **>=14.18.0**. because non-stable NodeJS releases frequently have bugs. You might consider installing via [nvm-windows](https://github.com/coreybutler/nvm-windows) and [nvm](https://github.com/nvm-sh/nvm) (Mac/linux), so you can easily switch to different NodeJS versions that might be required for different projects that you work on.\\n\\n## Getting Started with npm\\n\\nOnce NodeJS is installed, not only can you access the `node` executable from the command line, but you can also execute the `npm` command.\\n\\nNpm is the standard package manager for NodeJS. It started out as a tool for downloading and managing NodeJS package dependencies, but it has since evolved into a tool for front-end JavaScript.\\n\\n**If you already know something about usage of npm and npm packages, then you can directly see [npm package manager](/en/guide/basic/before-getting-started#npm-package-manager) section.**\\n\\n## npm package type project\\n\\nSo what is an npm package type project? When we execute the `npm init` command in an empty project directory, it creates a JSON file with the file name `package.json` under the current directory. During the creation process, we will need to fill in information including but not limited to the _name_, _version_ _number_, _description_, etc. of the npm package, which will be found in the resulting `package.json` file as follows\\n\\n```json\\n{\\n \\\"name\\\": \\\"npm-demo\\\",\\n \\\"version\\\": \\\"1.0.0\\\",\\n \\\"description\\\": \\\"\\\",\\n \\\"main\\\": \\\"index.js\\\",\\n \\\"scripts\\\": {\\n \\\"test\\\": \\\"echo \\\\\\\"Error: no test specified\\\\\\\" && exit 1\\\"\\n },\\n \\\"author\\\": \\\"\\\",\\n \\\"license\\\": \\\"ISC\\\"\\n}\\n```\\n\\nAt this point the project containing the initialized `package.json` file is an npm package type project, and you can execute the `npm publish` command to publish the project to the [npm Registry](https://www.npmjs.com/).\\n\\nThe npm Registry is a [npm package store](https://docs.npmjs.com/about-the-public-npm-registry) where developers can not only publish their own npm packages to the npm Registry, but also use npm packages published by other developers through the npm Registry.\\n\\nA quality npm package will be used by more people because it not only saves a lot of code implementation work, but is also less likely to cause problems with the project.\\n\\n## Using third-party npm packages\\n\\nWhen adding a third-party npm package to an initial project, we can call this process \\\"installing dependencies for the project\\\" or \\\"adding dependencies to the project\\\". Before adding dependencies, we need to know one thing in particular -- **the types of packages npm depends on**.\\n\\n- `\\\"dependencies\\\"`: a type of package that your application will need in a production environment.\\n- `\\\"devDependencies\\\"`: another type of package that is only needed for local development and testing.\\n > packages can be understood as third-party npm packages.\\n\\nYou can install the packages you need in a **production environment** by running `npm install npm-package-name` or `npm add npm-package-name`, or you can manually write the packages you need to install and the corresponding [semantic version](https://docs.npmjs.com/about-semantic-versioning) in `\\\"dependencies\\\"` in the `package.json` file, and run the `npm install` command to.\\n\\n```json\\n{\\n \\\"name\\\": \\\"your-npm-project\\\",\\n \\\"dependencies\\\": {\\n \\\"npm-package-name\\\": \\\"0.1.0\\\"\\n }\\n}\\n```\\n\\nSimilarly, you can install **only packages needed for local development and testing** by running `npm install npm-package-name --save-dev` or `npm add npm-package-name --save-dev`, or you can manually write the packages to be installed and the corresponding [semantic version](https://docs.npmjs.com/about-semantic-versioning) in `\\\"devDependencies\\\"` in the `package.json` file, and run the `npm install` command as follows\\n\\n```json\\n{\\n \\\"name\\\": \\\"your-npm-project\\\",\\n \\\"devDependencies\\\": {\\n \\\"npm-package-name\\\": \\\"0.1.0\\\"\\n }\\n}\\n```\\n\\n**When installing or using third-party npm packages be sure to determine what they are for and whether they should be placed in `\\\"dependencies\\\"` or `\\\"devDependencies\\\"` by distinguishing between their types.**\\n\\n:::tip\\nIn general, packages that need to be used in source code are `dependencies` dependencies. Unless you are exporting dependent code locally via packaging, in which case it can be treated as a `devDependencies` dependency.\\n:::\\n\\n## Other npm bits and pieces to know\\n\\n### Program entry for npm packages\\n\\nThere is a `\\\"main\\\"` attribute in `package.json` that corresponds to a module ID or, more intuitively, a NodeJS file path, which is the main entry point for your application.\\n\\nFor example, if your package is named `foo` and the user installs it, and then executes the `require(\\\"foo\\\")` code, then the file corresponding to the `\\\"main\\\"` field of the npm package `foo` will be exported.\\n\\n**It is recommended to set the `\\\"main\\\"` field in your npm package**. If `\\\"main\\\"` is not set, the default entry will be the `index.js` file in the root of the package.\\n\\nIn addition to the `\\\"main\\\"` attribute, the `\\\"module\\\"` attribute is usually set. It is similar to the `\\\"main\\\"` attribute in that it is mainly used in webpack scenarios. webpack reads the npm package entry (file) in most cases in the order **\\\"module\\\" -> \\\"main \\\"**.\\n\\n> To learn more about how webpack does this, check out this [link](https://webpack.js.org/configuration/resolve/#resolvemainfields).\\n\\n### `\\\"scripts\\\"`\\n\\nThe `\\\"scripts\\\"` attribute of the `package.json` file supports a number of built-in scripts and npm-preset lifecycle events, as well as arbitrary scripts.\\n\\nThese can be executed by running `npm run-script <stage>` or simply `npm run <stage>`.\\n\\nName matching [pre and post commands](https://docs.npmjs.com/cli/v9/using-npm/scripts#pre--post-scripts) will also be run (e.g. `premyscript`, `myscript`, `postmyscript` ).\\n\\n```json\\n{\\n \\\"scripts\\\": {\\n \\\"premyscript\\\": \\\"\\\",\\n \\\"myscript\\\": \\\"\\\",\\n \\\"postmyscript\\\": \\\"\\\"\\n }\\n}\\n```\\n\\nWhen `npm run myscripts` is executed, the script corresponding to `premyscripts` will be executed before it, and the script corresponding to `postmyscripts` will be executed after it.\\n\\nScript commands from dependencies can be run with `npm explore <pkg> -- npm run <stage>`.\\n\\nThere are also special lifecycle scripts that occur only under certain circumstances. Here are a few that are usually necessary to know.\\n\\n#### `npm install`\\n\\nWhen you run `npm install -g <pkg-name>`, the following scripts will run.\\n\\n- `preinstall`\\n- `install`\\n- `postinstall`\\n- `prepublish`\\n- `preprepare`\\n- `prepare`\\n- `postprepare`\\n\\nIf your package root has a `binding.gyp` file and you don't define an `install` or `preinstall` script, then npm will build with `node-gyp rebuild` as the default install command, using [node-gyp](https://github.com/nodejs/node-gyp).\\n\\n#### `npm publish`\\n\\nWhen publishing a project, executing this command will trigger the following script.\\n\\n- `prepublishOnly`\\n- `prepack`\\n- `prepare`\\n- `postpack`\\n- `publish`\\n- `postpublish`\\n\\nWhen running in [`-dry-run`](https://docs.npmjs.com/cli/v7/commands/npm-publish#dry-run) mode, the script corresponding to `prepare` will not be executed.\\n\\n### peerDependencies\\n\\nIn some cases, your npm project has a compatibility relationship with its host tool or library (e.g. a webpack plugin project and webpack), and your npm project does not want to use the host as a necessary dependency, which usually means that your project is probably a plugin for that host tool or library. Your npm project will have certain requirements for the version of the host package, as only the APIs required by the npm project will be exposed under a specific version.\\n\\nFor more explanation of `peerDependencies`, you can learn about the different ways npm, pnpm, and Yarn handle it at the following links.\\n\\n- [npm's explanation of peerDependencies](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#peerdependencies)\\n- [pnpm vs npm vs Yarn](https://pnpm.io/feature-comparison)\\n\\n## npm package manager\\n\\nIn addition to the standard package manager like npm, the mainstream ones are **pnpm** and **Yarn**, both of which are good alternatives to npm cli.\\n\\nIt is recommended to use [pnpm](https://pnpm.io/installation) to manage project dependencies, which can be installed as follows.\\n\\n```bash\\nnpm install -g pnpm\\n```\\n\\n## Module Tools configuration file\\n\\nThe Module Tools configuration file - `modern.config.(j|t)s` - is provided in the project directory of the module project created with `@modern-js/create`. However, the `modern.config` configuration file is not required to exist.\\n\\nBy default, the contents of the generated configuration file are as follows.\\n\\n```typescript\\n// modern.config.ts\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n plugins: [moduleTools()],\\n buildPreset: 'npm-library',\\n});\\n```\\n\\n```js\\n// modern.config.js\\nimport moduleTools from '@modern-js/module-tools';\\n\\nexport default {\\n plugins: [moduleTools()],\\n buildPreset: 'npm-library',\\n};\\n```\\n\\n**We recommend using the `defineConfig` function**, but it is not mandatory to use it. So you can also return an object directly in the config file: the\\n\\n```typescript\\n// modern.config.ts\\nexport default {};\\n```\\n\\n```js\\n// modern.config.js\\nexport default {};\\n```\\n\"";
1244
1244
  function _createMdxContent(props) {
1245
- var _components = Object.assign({
1245
+ const _components = Object.assign({
1246
1246
  h1: "h1",
1247
1247
  a: "a",
1248
1248
  h2: "h2",
@@ -1279,17 +1279,25 @@ function _createMdxContent(props) {
1279
1279
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1280
1280
  children: ["In order to use the Modern.js module engineering solution, you first need ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1281
1281
  href: "https://nodejs.org/zh/",
1282
+ target: "_blank",
1283
+ rel: "nofollow",
1282
1284
  children: "NodeJS"
1283
1285
  }), " engine, we recommend the latest ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1284
1286
  href: "https://github.com/nodejs/Release",
1287
+ target: "_blank",
1288
+ rel: "nofollow",
1285
1289
  children: "LTS version"
1286
1290
  }), ", and make sure the Node version is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1287
- children: ">=14.17.6"
1291
+ children: ">=14.18.0"
1288
1292
  }), ". because non-stable NodeJS releases frequently have bugs. You might consider installing via ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1289
1293
  href: "https://github.com/coreybutler/nvm-windows",
1294
+ target: "_blank",
1295
+ rel: "nofollow",
1290
1296
  children: "nvm-windows"
1291
1297
  }), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1292
1298
  href: "https://github.com/nvm-sh/nvm",
1299
+ target: "_blank",
1300
+ rel: "nofollow",
1293
1301
  children: "nvm"
1294
1302
  }), " (Mac/linux), so you can easily switch to different NodeJS versions that might be required for different projects that you work on."]
1295
1303
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
@@ -1311,7 +1319,7 @@ function _createMdxContent(props) {
1311
1319
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1312
1320
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
1313
1321
  children: ["If you already know something about usage of npm and npm packages, then you can directly see ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1314
- href: "/en/guide/basic/before-getting-started#npm-package-manager.html",
1322
+ href: "/module-tools/en/guide/basic/before-getting-started.html#npm-package-manager",
1315
1323
  children: "npm package manager"
1316
1324
  }), " section."]
1317
1325
  })
@@ -1937,11 +1945,15 @@ function _createMdxContent(props) {
1937
1945
  children: "npm publish"
1938
1946
  }), " command to publish the project to the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1939
1947
  href: "https://www.npmjs.com/",
1948
+ target: "_blank",
1949
+ rel: "nofollow",
1940
1950
  children: "npm Registry"
1941
1951
  }), "."]
1942
1952
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1943
1953
  children: ["The npm Registry is a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1944
1954
  href: "https://docs.npmjs.com/about-the-public-npm-registry",
1955
+ target: "_blank",
1956
+ rel: "nofollow",
1945
1957
  children: "npm package store"
1946
1958
  }), " where developers can not only publish their own npm packages to the npm Registry, but also use npm packages published by other developers through the npm Registry."]
1947
1959
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
@@ -1981,6 +1993,8 @@ function _createMdxContent(props) {
1981
1993
  children: "npm add npm-package-name"
1982
1994
  }), ", or you can manually write the packages you need to install and the corresponding ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1983
1995
  href: "https://docs.npmjs.com/about-semantic-versioning",
1996
+ target: "_blank",
1997
+ rel: "nofollow",
1984
1998
  children: "semantic version"
1985
1999
  }), " in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1986
2000
  children: "\"dependencies\""
@@ -2236,6 +2250,8 @@ function _createMdxContent(props) {
2236
2250
  children: "npm add npm-package-name --save-dev"
2237
2251
  }), ", or you can manually write the packages to be installed and the corresponding ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2238
2252
  href: "https://docs.npmjs.com/about-semantic-versioning",
2253
+ target: "_blank",
2254
+ rel: "nofollow",
2239
2255
  children: "semantic version"
2240
2256
  }), " in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2241
2257
  children: "\"devDependencies\""
@@ -2496,13 +2512,13 @@ function _createMdxContent(props) {
2496
2512
  className: "modern-directive-title",
2497
2513
  children: "TIP"
2498
2514
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
2499
- className: "island-directive-content",
2515
+ className: "modern-directive-content",
2500
2516
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2501
- children: ["In general, packages that need to be used in source code are ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2517
+ children: ["\nIn general, packages that need to be used in source code are ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2502
2518
  children: "dependencies"
2503
2519
  }), " dependencies. Unless you are exporting dependent code locally via packaging, in which case it can be treated as a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2504
2520
  children: "devDependencies"
2505
- }), " dependency."]
2521
+ }), "dependency."]
2506
2522
  })
2507
2523
  })]
2508
2524
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
@@ -2560,7 +2576,9 @@ function _createMdxContent(props) {
2560
2576
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.blockquote, {
2561
2577
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2562
2578
  children: ["To learn more about how webpack does this, check out this ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2563
- href: "https://webpack.js.org/configuration/resolve/#resolvemainfields",
2579
+ href: "https://webpack.js.org/configuration/resolve/#resolvemainfields-1",
2580
+ target: "_blank",
2581
+ rel: "nofollow",
2564
2582
  children: "link"
2565
2583
  }), "."]
2566
2584
  }), "\n"]
@@ -2588,7 +2606,9 @@ function _createMdxContent(props) {
2588
2606
  }), "."]
2589
2607
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2590
2608
  children: ["Name matching ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2591
- href: "https://docs.npmjs.com/cli/v9/using-npm/scripts#pre--post-scripts",
2609
+ href: "https://docs.npmjs.com/cli/v9/using-npm/scripts#pre--post-scripts-1",
2610
+ target: "_blank",
2611
+ rel: "nofollow",
2592
2612
  children: "pre and post commands"
2593
2613
  }), " will also be run (e.g. ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2594
2614
  children: "premyscript"
@@ -2934,6 +2954,8 @@ function _createMdxContent(props) {
2934
2954
  children: "node-gyp rebuild"
2935
2955
  }), " as the default install command, using ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2936
2956
  href: "https://github.com/nodejs/node-gyp",
2957
+ target: "_blank",
2958
+ rel: "nofollow",
2937
2959
  children: "node-gyp"
2938
2960
  }), "."]
2939
2961
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h4, {
@@ -2976,7 +2998,9 @@ function _createMdxContent(props) {
2976
2998
  }), "\n"]
2977
2999
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2978
3000
  children: ["When running in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2979
- href: "https://docs.npmjs.com/cli/v7/commands/npm-publish#dry-run",
3001
+ href: "https://docs.npmjs.com/cli/v7/commands/npm-publish#dry-run-1",
3002
+ target: "_blank",
3003
+ rel: "nofollow",
2980
3004
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2981
3005
  children: "-dry-run"
2982
3006
  })
@@ -3000,12 +3024,16 @@ function _createMdxContent(props) {
3000
3024
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
3001
3025
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
3002
3026
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3003
- href: "https://docs.npmjs.com/cli/v9/configuring-npm/package-json#peerdependencies",
3027
+ href: "https://docs.npmjs.com/cli/v9/configuring-npm/package-json#peerdependencies-2",
3028
+ target: "_blank",
3029
+ rel: "nofollow",
3004
3030
  children: "npm's explanation of peerDependencies"
3005
3031
  })
3006
3032
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
3007
3033
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3008
3034
  href: "https://pnpm.io/feature-comparison",
3035
+ target: "_blank",
3036
+ rel: "nofollow",
3009
3037
  children: "pnpm vs npm vs Yarn"
3010
3038
  })
3011
3039
  }), "\n"]
@@ -3026,6 +3054,8 @@ function _createMdxContent(props) {
3026
3054
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3027
3055
  children: ["It is recommended to use ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3028
3056
  href: "https://pnpm.io/installation",
3057
+ target: "_blank",
3058
+ rel: "nofollow",
3029
3059
  children: "pnpm"
3030
3060
  }), " to manage project dependencies, which can be installed as follows."]
3031
3061
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
@@ -3062,13 +3092,15 @@ function _createMdxContent(props) {
3062
3092
  children: "#"
3063
3093
  }), "Module Tools configuration file"]
3064
3094
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3065
- children: ["A configuration file for Module Tools is provided in the initial module project directory -- ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3095
+ children: ["The Module Tools configuration file - ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3066
3096
  children: "modern.config.(j|t)s"
3067
- }), ". By default, no configuration is required, so the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3097
+ }), " - is provided in the project directory of the module project created with ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3098
+ children: "@modern-js/create"
3099
+ }), ". However, the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3068
3100
  children: "modern.config"
3069
3101
  }), " configuration file is not required to exist."]
3070
3102
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3071
- children: "The contents of the initial configuration file are as follows."
3103
+ children: "By default, the contents of the generated configuration file are as follows."
3072
3104
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3073
3105
  codeConfig: chCodeConfig,
3074
3106
  northPanel: {
@@ -3104,6 +3136,27 @@ function _createMdxContent(props) {
3104
3136
  "color": "#D8DEE9FF"
3105
3137
  }
3106
3138
  }
3139
+ }, {
3140
+ "content": "moduleTools",
3141
+ "props": {
3142
+ "style": {
3143
+ "color": "#D8DEE9"
3144
+ }
3145
+ }
3146
+ }, {
3147
+ "content": ",",
3148
+ "props": {
3149
+ "style": {
3150
+ "color": "#ECEFF4"
3151
+ }
3152
+ }
3153
+ }, {
3154
+ "content": " ",
3155
+ "props": {
3156
+ "style": {
3157
+ "color": "#D8DEE9FF"
3158
+ }
3159
+ }
3107
3160
  }, {
3108
3161
  "content": "{",
3109
3162
  "props": {
@@ -3235,7 +3288,125 @@ function _createMdxContent(props) {
3235
3288
  }
3236
3289
  }
3237
3290
  }, {
3238
- "content": "{}",
3291
+ "content": "{",
3292
+ "props": {
3293
+ "style": {
3294
+ "color": "#ECEFF4"
3295
+ }
3296
+ }
3297
+ }]
3298
+ }, {
3299
+ "tokens": [{
3300
+ "content": " ",
3301
+ "props": {
3302
+ "style": {
3303
+ "color": "#D8DEE9FF"
3304
+ }
3305
+ }
3306
+ }, {
3307
+ "content": "plugins",
3308
+ "props": {
3309
+ "style": {
3310
+ "color": "#D8DEE9"
3311
+ }
3312
+ }
3313
+ }, {
3314
+ "content": ":",
3315
+ "props": {
3316
+ "style": {
3317
+ "color": "#ECEFF4"
3318
+ }
3319
+ }
3320
+ }, {
3321
+ "content": " [",
3322
+ "props": {
3323
+ "style": {
3324
+ "color": "#D8DEE9FF"
3325
+ }
3326
+ }
3327
+ }, {
3328
+ "content": "moduleTools",
3329
+ "props": {
3330
+ "style": {
3331
+ "color": "#88C0D0"
3332
+ }
3333
+ }
3334
+ }, {
3335
+ "content": "()]",
3336
+ "props": {
3337
+ "style": {
3338
+ "color": "#D8DEE9FF"
3339
+ }
3340
+ }
3341
+ }, {
3342
+ "content": ",",
3343
+ "props": {
3344
+ "style": {
3345
+ "color": "#ECEFF4"
3346
+ }
3347
+ }
3348
+ }]
3349
+ }, {
3350
+ "tokens": [{
3351
+ "content": " ",
3352
+ "props": {
3353
+ "style": {
3354
+ "color": "#D8DEE9FF"
3355
+ }
3356
+ }
3357
+ }, {
3358
+ "content": "buildPreset",
3359
+ "props": {
3360
+ "style": {
3361
+ "color": "#D8DEE9"
3362
+ }
3363
+ }
3364
+ }, {
3365
+ "content": ":",
3366
+ "props": {
3367
+ "style": {
3368
+ "color": "#ECEFF4"
3369
+ }
3370
+ }
3371
+ }, {
3372
+ "content": " ",
3373
+ "props": {
3374
+ "style": {
3375
+ "color": "#D8DEE9FF"
3376
+ }
3377
+ }
3378
+ }, {
3379
+ "content": "'",
3380
+ "props": {
3381
+ "style": {
3382
+ "color": "#ECEFF4"
3383
+ }
3384
+ }
3385
+ }, {
3386
+ "content": "npm-library",
3387
+ "props": {
3388
+ "style": {
3389
+ "color": "#A3BE8C"
3390
+ }
3391
+ }
3392
+ }, {
3393
+ "content": "'",
3394
+ "props": {
3395
+ "style": {
3396
+ "color": "#ECEFF4"
3397
+ }
3398
+ }
3399
+ }, {
3400
+ "content": ",",
3401
+ "props": {
3402
+ "style": {
3403
+ "color": "#ECEFF4"
3404
+ }
3405
+ }
3406
+ }]
3407
+ }, {
3408
+ "tokens": [{
3409
+ "content": "}",
3239
3410
  "props": {
3240
3411
  "style": {
3241
3412
  "color": "#ECEFF4"
@@ -3283,7 +3454,7 @@ function _createMdxContent(props) {
3283
3454
  }]
3284
3455
  }, {
3285
3456
  "tokens": [{
3286
- "content": "const",
3457
+ "content": "import",
3287
3458
  "props": {
3288
3459
  "style": {
3289
3460
  "color": "#81A1C1"
@@ -3297,10 +3468,10 @@ function _createMdxContent(props) {
3297
3468
  }
3298
3469
  }
3299
3470
  }, {
3300
- "content": "{",
3471
+ "content": "moduleTools",
3301
3472
  "props": {
3302
3473
  "style": {
3303
- "color": "#ECEFF4"
3474
+ "color": "#8FBCBB"
3304
3475
  }
3305
3476
  }
3306
3477
  }, {
@@ -3311,10 +3482,10 @@ function _createMdxContent(props) {
3311
3482
  }
3312
3483
  }
3313
3484
  }, {
3314
- "content": "defineConfig",
3485
+ "content": "from",
3315
3486
  "props": {
3316
3487
  "style": {
3317
- "color": "#D8DEE9"
3488
+ "color": "#81A1C1"
3318
3489
  }
3319
3490
  }
3320
3491
  }, {
@@ -3325,21 +3496,39 @@ function _createMdxContent(props) {
3325
3496
  }
3326
3497
  }
3327
3498
  }, {
3328
- "content": "}",
3499
+ "content": "'",
3329
3500
  "props": {
3330
3501
  "style": {
3331
3502
  "color": "#ECEFF4"
3332
3503
  }
3333
3504
  }
3334
3505
  }, {
3335
- "content": " ",
3506
+ "content": "@modern-js/module-tools",
3336
3507
  "props": {
3337
3508
  "style": {
3338
- "color": "#D8DEE9FF"
3509
+ "color": "#A3BE8C"
3510
+ }
3511
+ }
3512
+ }, {
3513
+ "content": "'",
3514
+ "props": {
3515
+ "style": {
3516
+ "color": "#ECEFF4"
3339
3517
  }
3340
3518
  }
3341
3519
  }, {
3342
- "content": "=",
3520
+ "content": ";",
3521
+ "props": {
3522
+ "style": {
3523
+ "color": "#81A1C1"
3524
+ }
3525
+ }
3526
+ }]
3527
+ }, {
3528
+ "tokens": []
3529
+ }, {
3530
+ "tokens": [{
3531
+ "content": "export",
3343
3532
  "props": {
3344
3533
  "style": {
3345
3534
  "color": "#81A1C1"
@@ -3353,91 +3542,98 @@ function _createMdxContent(props) {
3353
3542
  }
3354
3543
  }
3355
3544
  }, {
3356
- "content": "require",
3545
+ "content": "default",
3357
3546
  "props": {
3358
3547
  "style": {
3359
- "color": "#88C0D0"
3548
+ "color": "#81A1C1"
3360
3549
  }
3361
3550
  }
3362
3551
  }, {
3363
- "content": "(",
3552
+ "content": " ",
3364
3553
  "props": {
3365
3554
  "style": {
3366
3555
  "color": "#D8DEE9FF"
3367
3556
  }
3368
3557
  }
3369
3558
  }, {
3370
- "content": "'",
3559
+ "content": "{",
3371
3560
  "props": {
3372
3561
  "style": {
3373
3562
  "color": "#ECEFF4"
3374
3563
  }
3375
3564
  }
3565
+ }]
3566
+ }, {
3567
+ "tokens": [{
3568
+ "content": " ",
3569
+ "props": {
3570
+ "style": {
3571
+ "color": "#D8DEE9FF"
3572
+ }
3573
+ }
3376
3574
  }, {
3377
- "content": "@modern-js/module-tools",
3575
+ "content": "plugins",
3378
3576
  "props": {
3379
3577
  "style": {
3380
- "color": "#A3BE8C"
3578
+ "color": "#88C0D0"
3381
3579
  }
3382
3580
  }
3383
3581
  }, {
3384
- "content": "'",
3582
+ "content": ":",
3385
3583
  "props": {
3386
3584
  "style": {
3387
3585
  "color": "#ECEFF4"
3388
3586
  }
3389
3587
  }
3390
3588
  }, {
3391
- "content": ")",
3589
+ "content": " [",
3392
3590
  "props": {
3393
3591
  "style": {
3394
3592
  "color": "#D8DEE9FF"
3395
3593
  }
3396
3594
  }
3397
3595
  }, {
3398
- "content": ";",
3596
+ "content": "moduleTools",
3399
3597
  "props": {
3400
3598
  "style": {
3401
- "color": "#81A1C1"
3599
+ "color": "#88C0D0"
3402
3600
  }
3403
3601
  }
3404
- }]
3405
- }, {
3406
- "tokens": []
3407
- }, {
3408
- "tokens": [{
3409
- "content": "module",
3602
+ }, {
3603
+ "content": "()]",
3410
3604
  "props": {
3411
3605
  "style": {
3412
- "color": "#8FBCBB"
3606
+ "color": "#D8DEE9FF"
3413
3607
  }
3414
3608
  }
3415
3609
  }, {
3416
- "content": ".",
3610
+ "content": ",",
3417
3611
  "props": {
3418
3612
  "style": {
3419
3613
  "color": "#ECEFF4"
3420
3614
  }
3421
3615
  }
3422
- }, {
3423
- "content": "exports",
3616
+ }]
3617
+ }, {
3618
+ "tokens": [{
3619
+ "content": " ",
3424
3620
  "props": {
3425
3621
  "style": {
3426
- "color": "#8FBCBB"
3622
+ "color": "#D8DEE9FF"
3427
3623
  }
3428
3624
  }
3429
3625
  }, {
3430
- "content": " ",
3626
+ "content": "buildPreset",
3431
3627
  "props": {
3432
3628
  "style": {
3433
- "color": "#D8DEE9FF"
3629
+ "color": "#88C0D0"
3434
3630
  }
3435
3631
  }
3436
3632
  }, {
3437
- "content": "=",
3633
+ "content": ":",
3438
3634
  "props": {
3439
3635
  "style": {
3440
- "color": "#81A1C1"
3636
+ "color": "#ECEFF4"
3441
3637
  }
3442
3638
  }
3443
3639
  }, {
@@ -3448,31 +3644,40 @@ function _createMdxContent(props) {
3448
3644
  }
3449
3645
  }
3450
3646
  }, {
3451
- "content": "defineConfig",
3647
+ "content": "'",
3452
3648
  "props": {
3453
3649
  "style": {
3454
- "color": "#88C0D0"
3650
+ "color": "#ECEFF4"
3455
3651
  }
3456
3652
  }
3457
3653
  }, {
3458
- "content": "(",
3654
+ "content": "npm-library",
3459
3655
  "props": {
3460
3656
  "style": {
3461
- "color": "#D8DEE9FF"
3657
+ "color": "#A3BE8C"
3462
3658
  }
3463
3659
  }
3464
3660
  }, {
3465
- "content": "{}",
3661
+ "content": "'",
3466
3662
  "props": {
3467
3663
  "style": {
3468
3664
  "color": "#ECEFF4"
3469
3665
  }
3470
3666
  }
3471
3667
  }, {
3472
- "content": ")",
3668
+ "content": ",",
3473
3669
  "props": {
3474
3670
  "style": {
3475
- "color": "#D8DEE9FF"
3671
+ "color": "#ECEFF4"
3672
+ }
3673
+ }
3674
+ }]
3675
+ }, {
3676
+ "tokens": [{
3677
+ "content": "}",
3678
+ "props": {
3679
+ "style": {
3680
+ "color": "#ECEFF4"
3476
3681
  }
3477
3682
  }
3478
3683
  }, {
@@ -3493,7 +3698,7 @@ function _createMdxContent(props) {
3493
3698
  children: ["We recommend using the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3494
3699
  children: "defineConfig"
3495
3700
  }), " function"]
3496
- }), ", but it is not mandatory to use it. So you can also return an object directly in the configuration file: the:"]
3701
+ }), ", but it is not mandatory to use it. So you can also return an object directly in the config file: the"]
3497
3702
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3498
3703
  codeConfig: chCodeConfig,
3499
3704
  northPanel: {
@@ -3585,24 +3790,10 @@ function _createMdxContent(props) {
3585
3790
  }]
3586
3791
  }, {
3587
3792
  "tokens": [{
3588
- "content": "module",
3589
- "props": {
3590
- "style": {
3591
- "color": "#8FBCBB"
3592
- }
3593
- }
3594
- }, {
3595
- "content": ".",
3596
- "props": {
3597
- "style": {
3598
- "color": "#ECEFF4"
3599
- }
3600
- }
3601
- }, {
3602
- "content": "exports",
3793
+ "content": "export",
3603
3794
  "props": {
3604
3795
  "style": {
3605
- "color": "#8FBCBB"
3796
+ "color": "#81A1C1"
3606
3797
  }
3607
3798
  }
3608
3799
  }, {
@@ -3613,7 +3804,7 @@ function _createMdxContent(props) {
3613
3804
  }
3614
3805
  }
3615
3806
  }, {
3616
- "content": "=",
3807
+ "content": "default",
3617
3808
  "props": {
3618
3809
  "style": {
3619
3810
  "color": "#81A1C1"
@@ -3649,21 +3840,17 @@ function _createMdxContent(props) {
3649
3840
  })]
3650
3841
  });
3651
3842
  }
3652
- function MDXContent() {
3653
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3654
- var _ref = props.components || {},
3655
- MDXLayout = _ref.wrapper;
3843
+ function MDXContent(props = {}) {
3844
+ const {wrapper: MDXLayout} = props.components || ({});
3656
3845
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
3657
3846
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
3658
3847
  })) : _createMdxContent(props);
3659
3848
  }
3660
- _c = MDXContent;
3661
3849
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
3662
3850
  function _missingMdxReference(id, component, place) {
3663
- 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/before-getting-started.md`" : ""));
3851
+ 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/before-getting-started.md`" : ""));
3664
3852
  }
3665
- var _c;
3666
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
3853
+
3667
3854
 
3668
3855
  /***/ })
3669
3856