@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/api/config/build-config.md"
1188
+ "filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/api/config/build-config.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": "alias",
1195
1195
  "text": "alias",
1196
1196
  "depth": 2
@@ -1278,6 +1278,10 @@ var toc = [{
1278
1278
  "id": "jsx",
1279
1279
  "text": "jsx",
1280
1280
  "depth": 2
1281
+ }, {
1282
+ "id": "metafile",
1283
+ "text": "metafile",
1284
+ "depth": 2
1281
1285
  }, {
1282
1286
  "id": "minify",
1283
1287
  "text": "minify",
@@ -1371,10 +1375,10 @@ var toc = [{
1371
1375
  "text": "umdModuleName",
1372
1376
  "depth": 2
1373
1377
  }];
1374
- var title = "BuildConfig";
1375
- var content = "\"---\\nsidebar_position: 1\\n---\\n\\n# BuildConfig\\n\\nThis section describes all the configuration of Module tools for building\\n\\n## alias\\n\\n- type: `Record<string, string | string[]> | Function`\\n- default: `{'@': 'src',}`\\n\\n:::tip\\nFor TypeScript projects, you only need to configure [compilerOptions.paths](https://www.typescriptlang.org/tsconfig#paths) in `tsconfig.json`, Module tools will automatically recognize the alias in `tsconfig.json`, so there is no need to configure the `alias` field additionally.\\n:::\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n alias: {\\n '@common': '. /src/common',\\n },\\n },\\n};\\n```\\n\\nAfter the above configuration is done, if `@common/Foo.tsx` is referenced in the code, it will map to the `<root>/src/common/Foo.tsx` path.\\n\\nWhen the value of `alias` is defined as a function, you can accept the pre-defined alias object and modify it.\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n alias: alias => {\\n alias['@common'] = '. /src/common';\\n },\\n },\\n};\\n```\\n\\nIt is also possible to return a new object as the final result in the function, which will override the pre-defined alias object.\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n alias: alias => {\\n return {\\n '@common': '. /src/common',\\n };\\n },\\n },\\n};\\n```\\n\\n## asset\\n\\n### path\\n\\nStatic resource output path, will be based on [outDir](/api/config/build-config#outDir)\\n\\n- type: `string`\\n- default: `assets`\\n\\n### limit\\n\\nThreshold for automatically inlining static resources when building, resources less than 10 KB will be automatically inlined into the bundle product\\n\\n- type: `number`\\n- default: `10 * 1024`\\n\\n### publicPath\\n\\nThe CDN prefix given to unlinked resources when packaging\\n\\n- type: `string`\\n- default: `undefined`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n asset: {\\n publicPath: 'https://xxx/',\\n },\\n },\\n};\\n```\\n\\nAt this point, all static resources will be prefixed with `https://xxx/`\\n\\n### svgr\\n\\nPackaged to handle svg as a React component, options reference [svgr](https://react-svgr.com/docs/options/), plus support for two configuration items `include` and `exclude` to match the svg file to be handled\\n\\n- type: `boolean | Object`\\n- default: `false`\\n\\n#### include\\n\\nSet the matching svg file\\n\\n- type: `string | RegExp | (string | RegExp)[]`\\n- default: `/\\\\.svg$/`\\n\\n#### exclude\\n\\nSet unmatched svg files\\n\\n- type: `string | RegExp | (string | RegExp)[]`\\n- default: `undefined`\\n\\n## autoExternal\\n\\nAutomatically externalize project dependencies and peerDependencies and not package them into the final bundle\\n\\n- type: `boolean | Object`\\n- default: `true`\\n\\n### dependencies\\n\\nWhether or not the dep dependencies of the external project are needed\\n\\n- type: `boolean`\\n- default: `true`\\n\\n### peerDependencies\\n\\nWhether to require peerDep dependencies for external projects\\n\\n- type: `boolean`\\n- default: `true`\\n\\n## buildType\\n\\nThe build type, `bundle` will package your code, `bundleless` will only do the code conversion\\n\\n- type: `'bundle' | 'bundleless'`\\n- default: `bundle`\\n\\n## copy\\n\\nCopies the specified file or directory into the build output directory\\n\\n- type: `Array`\\n- default: `[]`\\n\\n```js\\nexport default {\\n buildConfig: {\\n copy: [{ from: '. /src/assets', to: '' }],\\n },\\n};\\n```\\n\\nReference for array settings: [copy-webpack-plugin patterns](https://github.com/webpack-contrib/copy-webpack-plugin#patterns)\\n\\n## define\\n\\nDefine global variables that will be injected into the code\\n\\n- type: `Record<string, string>`\\n- default: `{}`\\n\\nSince the `define` function is implemented by global text replacement, you need to ensure that the global variable values are strings. A safer approach is to convert the value of each global variable to a string, using `JSON.stringify`, as follows.\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n define: {\\n VERSION: JSON.stringify('1.0'),\\n },\\n },\\n};\\n```\\n\\n:::tip\\nTo prevent excessive global replacement substitution, it is recommended that the following two principles be followed when using\\n\\n- Use upper case for global constants\\n- Customize the prefix and suffix of global constants to ensure uniqueness\\n :::\\n\\n## dts\\n\\nThe dts file generates the relevant configuration, by default it generates\\n\\n- type: `false | Object`\\n- default: `{}`\\n\\n### tsconfigPath\\n\\nPath to the tsconfig file\\n\\n- type: `string`\\n- default: `. /tsconfig.json`\\n\\n### distPath\\n\\nThe output path of the dts file, based on [outDir](/api/config/build-config#outDir)\\n\\n- type: `string`\\n- default: `. /types`\\n\\n### only\\n\\nGenerate only dts files, not js files\\n\\n- type: `boolean`\\n- default: `false`\\n\\n## externals\\n\\nConfigure external dependencies that will not be packaged into the final bundle\\n\\n- type: `(string | RegExp)[]`\\n- default: `[]`\\n\\n## format\\n\\nThe format of the js product output, where `iife` and `umd` can only take effect when `buildType` is `bundle`\\n\\n- type: `'esm' | 'cjs' | 'iife' | 'umd'`\\n- default: `cjs`\\n\\n## input\\n\\nSpecify the entry file for the build, in the form of an array that can specify the directory\\n\\n- type: `string[] | Record<string, string>`\\n- default: `['src/index.ts']` in `bundle` mode, `['src']` in `bundleless` mode\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n input: ['src/index.ts', 'src/index2.ts'],\\n },\\n};\\n```\\n\\n## jsx\\n\\nSpecify the compilation method of jsx, default support React17, automatically inject jsx runtime code\\n\\n- type: `automatic | classic`\\n- default: `automatic`\\n\\n## minify\\n\\nUse esbuild or terser to compress code, also pass [terserOptions](https://github.com/terser/terser#minify-options)\\n\\n- type: `'terser' | 'esbuild' | false | Object`\\n- default: `false`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n minify: {\\n compress: {\\n drop_console: true,\\n },\\n },\\n },\\n};\\n```\\n\\n## outDir\\n\\nSpecifies the output directory of the build\\n\\n- type: `string`\\n- default: `dist`\\n\\n## platform\\n\\nGenerates code for the node environment by default, you can also specify `browser` which will generate code for the browser environment\\n\\n- type: `'browser' | 'node'`\\n- default: `node`\\n\\n## sourceDir\\n\\nSpecify the source directory of the build, default is `src`, which is used to generate the corresponding product directory based on the source directory structure when building `bundleless`.\\n\\n- type: `string`\\n- default: `src`\\n\\n## sourceMap\\n\\nWhether to generate sourceMap or not\\n\\n- type: `boolean | 'inline' | 'external'`\\n- default: `false`\\n\\n## splitting\\n\\nWhether to enable code splitting\\n\\n- type: `boolean`\\n- default: `false`\\n\\n## style\\n\\nConfigure style-related configuration\\n\\n### less\\n\\nless-related configuration\\n\\n#### lessOptions\\n\\nRefer to [less](https://less.bootcss.com/usage/#less-options) for detailed configuration\\n\\n- type: `Object`\\n- default: `{ javascriptEnabled: true }`\\n\\n#### additionalData\\n\\nAdd `Less` code to the beginning of the entry file.\\n\\n- type: `string`\\n- default: `undefined`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n less: {\\n additionalData: `@base-color: #c6538c;`,\\n },\\n },\\n },\\n};\\n```\\n\\n#### implementation\\n\\nConfigure the implementation library used by `Less`, if not specified, the built-in version used is `4.1.3`\\n\\n- type: `string | Object`\\n- default: `undefined`\\n\\nSpecify the implementation library for `Less` when the `Object` type is specified\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n less: {\\n implementation: require('less'),\\n },\\n },\\n },\\n};\\n```\\n\\nFor the `string` type, specify the path to the implementation library for `Less`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n less: {\\n implementation: require.resolve('less'),\\n },\\n },\\n },\\n};\\n```\\n\\n### sass\\n\\nsass-related configuration\\n\\n#### sassOptions\\n\\nRefer to [node-sass](https://github.com/sass/node-sass#options) for detailed configuration\\n\\n- type: `Object`\\n- default: `{}`\\n\\n#### additionalData\\n\\nAdd `Sass` code to the beginning of the entry file.\\n\\n- type: `string | Function`\\n- default: `undefined`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n sass: {\\n additionalData: `$base-color: #c6538c;\\n $border-dark: rgba($base-color, 0.88);`,\\n },\\n },\\n },\\n};\\n```\\n\\n#### implementation\\n\\nConfigure the implementation library used by `Sass`, the built-in version used is `1.5.4` if not specified\\n\\n- type: `string | Object`\\n- default: `undefined`\\n\\nSpecify the implementation library for `Sass` when the `Object` type is specified\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n sass: {\\n implementation: require('sass'),\\n },\\n },\\n },\\n};\\n```\\n\\nFor the `string` type, specify the path to the `Sass` implementation library\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n sass: {\\n implementation: require.resolve('sass'),\\n },\\n },\\n },\\n};\\n```\\n\\n### postcss\\n\\n- plugins\\n- processOptions\\n\\nSee [postcss](https://github.com/postcss/postcss#options) for detailed configuration\\n\\n### inject\\n\\nConfigure whether to insert style into js in packaged mode\\n\\n- type: `boolean`\\n- default: `false`\\n\\n### autoModules\\n\\nEnable CSS Modules automatically based on the filename.\\n\\n- type: `boolean | RegExp`\\n- default: `true `\\n\\n`true` : Enables CSS Modules for style files ending with `.module.css` `.module.less` `.module.scss` `.module.sass` filenames\\n\\n`false` : Disable CSS Modules.\\n\\n`RegExp` : Enables CSS Modules for all files that match the regular condition.\\n\\n### modules\\n\\nCSS Modules configuration\\n\\n- type: `Object`\\n- default: `{}`\\n\\nA common configuration is `localsConvention`, which changes the class name generation rules for css modules\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n modules: {\\n localsConvention: 'camelCaseOnly',\\n },\\n },\\n },\\n};\\n```\\n\\nFor the following styles\\n\\n```css\\n.box-title {\\n color: red;\\n}\\n```\\n\\nYou can use `styles.boxTitle` to access\\n\\nFor detailed configuration see [postcss-modules](https://github.com/madyankin/postcss-modules#usage)\\n\\n### tailwindcss\\n\\ntailwindcss related configuration\\n\\n- type: `Object | Function`\\n- default: `see configuration details below`\\n\\n<details>\\n <summary>Tailwind CSS configuration details</summary>\\n\\n```js modern.config.ts\\nconst tailwind = {\\n content: [\\n './config/html/**/*.html',\\n './config/html/**/*.ejs',\\n './config/html/**/*.hbs',\\n './src/**/*.js',\\n './src/**/*.jsx',\\n './src/**/*.ts',\\n './src/**/*.tsx',\\n './storybook/**/*',\\n ],\\n};\\n```\\n\\nWhen the value is of type `Object`, it is merged with the default configuration via `Object.assign`.\\n\\nWhen the value is of type `Function`, the object returned by the function is merged with the default configuration via `Object.assign`.\\n\\nThe `theme` property is not allowed, otherwise the build will fail, using [`designSystem`](/api/config/design-system) as the `Tailwind CSS Theme` configuration.\\n\\nThe rest of the usage is the same as Tailwind CSS: [Quick Portal](https://tailwindcss.com/docs/configuration).\\n\\n## target\\n\\nSpecify the target environment for the build\\n\\n- type: `'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext'`\\n- default: `'es2015'`\\n\\n## umdGlobals\\n\\nSpecify global variables for external import of umd products\\n\\n- type: `Record<string, string>`\\n- default: `{}`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n umdGlobals: {\\n react: 'React',\\n 'react-dom': 'ReactDOM',\\n },\\n },\\n};\\n```\\n\\nAt this point, `react` and `react-dom` will be seen as global variables imported externally and will not be packed into the umd product, but will be accessible by way of `global.React` and `global.ReactDOM`\\n\\n## umdModuleName\\n\\nSpecifies the module name of the umd product\\n\\n- type: `string` | `Function`\\n- default: `name => name`\\n\\n```js\\nexport default {\\n buildConfig: {\\n format: 'umd',\\n umdModuleName: 'myLib',\\n },\\n};\\n```\\n\\nAt this point the umd product will go to mount on `global.myLib`\\n:::tip\\n\\n- The module name of the umd product must not conflict with the global variable name.\\n- Module names should not contain special characters like `-`, `@`, `/`, etc.\\n :::\\n\\nAlso the function form can take one parameter, which is the output path of the current package file\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n format: 'umd',\\n umdModuleName: path => {\\n if (path.includes('index')) {\\n return 'myLib';\\n } else {\\n return 'myLib2';\\n }\\n },\\n },\\n};\\n```\\n\"";
1378
+ const title = `BuildConfig`;
1379
+ const content = "\"---\\nsidebar_position: 1\\n---\\n\\n# BuildConfig\\n\\nThis section describes all the configuration of Module Tools for building\\n\\n## alias\\n\\n- type: `Record<string, string> | Function`\\n- default: `{'@': 'src',}`\\n\\n:::tip\\nFor TypeScript projects, you only need to configure [compilerOptions.paths](https://www.typescriptlang.org/tsconfig#paths) in `tsconfig.json`, Module Tools will automatically recognize the alias in `tsconfig.json`, so there is no need to configure the `alias` field additionally.\\n:::\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n alias: {\\n '@common': '. /src/common',\\n },\\n },\\n};\\n```\\n\\nAfter the above configuration is done, if `@common/Foo.tsx` is referenced in the code, it will map to the `<root>/src/common/Foo.tsx` path.\\n\\nWhen the value of `alias` is defined as a function, you can accept the pre-defined alias object and modify it.\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n alias: alias => {\\n alias['@common'] = '. /src/common';\\n },\\n },\\n};\\n```\\n\\nIt is also possible to return a new object as the final result in the function, which will override the pre-defined alias object.\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n alias: alias => {\\n return {\\n '@common': '. /src/common',\\n };\\n },\\n },\\n};\\n```\\n\\n## asset\\n\\n### path\\n\\nStatic resource output path, will be based on [outDir](/api/config/build-config#outDir)\\n\\n- type: `string`\\n- default: `assets`\\n\\n### limit\\n\\nThreshold for automatically inlining static resources when building, resources less than 10 KB will be automatically inlined into the bundle product\\n\\n- type: `number`\\n- default: `10 * 1024`\\n\\n### publicPath\\n\\nThe CDN prefix given to unlinked resources when packaging\\n\\n- type: `string`\\n- default: `undefined`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n asset: {\\n publicPath: 'https://xxx/',\\n },\\n },\\n};\\n```\\n\\nAt this point, all static resources will be prefixed with `https://xxx/`\\n\\n### svgr\\n\\nPackaged to handle svg as a React component, options reference [svgr](https://react-svgr.com/docs/options/), plus support for two configuration items `include` and `exclude` to match the svg file to be handled\\n\\n- type: `boolean | Object`\\n- default: `false`\\n\\n#### include\\n\\nSet the matching svg file\\n\\n- type: `string | RegExp | (string | RegExp)[]`\\n- default: `/\\\\.svg$/`\\n\\n#### exclude\\n\\nSet unmatched svg files\\n\\n- type: `string | RegExp | (string | RegExp)[]`\\n- default: `undefined`\\n\\n## autoExternal\\n\\nAutomatically externalize project dependencies and peerDependencies and not package them into the final bundle\\n\\n- type: `boolean | Object`\\n- default: `true`\\n\\n### dependencies\\n\\nWhether or not the dep dependencies of the external project are needed\\n\\n- type: `boolean`\\n- default: `true`\\n\\n### peerDependencies\\n\\nWhether to require peerDep dependencies for external projects\\n\\n- type: `boolean`\\n- default: `true`\\n\\n## buildType\\n\\nThe build type, `bundle` will package your code, `bundleless` will only do the code conversion\\n\\n- type: `'bundle' | 'bundleless'`\\n- default: `bundle`\\n\\n## copy\\n\\nCopies the specified file or directory into the build output directory\\n\\n- type: `Array`\\n- default: `[]`\\n\\n```js\\nexport default {\\n buildConfig: {\\n copy: [{ from: '. /src/assets', to: '' }],\\n },\\n};\\n```\\n\\nReference for array settings: [copy-webpack-plugin patterns](https://github.com/webpack-contrib/copy-webpack-plugin#patterns)\\n\\n## define\\n\\nDefine global variables that will be injected into the code\\n\\n- type: `Record<string, string>`\\n- default: `{}`\\n\\nSince the `define` function is implemented by global text replacement, you need to ensure that the global variable values are strings. A safer approach is to convert the value of each global variable to a string, using `JSON.stringify`, as follows.\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n define: {\\n VERSION: JSON.stringify('1.0'),\\n },\\n },\\n};\\n```\\n\\n:::tip\\nTo prevent excessive global replacement substitution, it is recommended that the following two principles be followed when using\\n\\n- Use upper case for global constants\\n- Customize the prefix and suffix of global constants to ensure uniqueness\\n\\n:::\\n\\n## dts\\n\\nThe dts file generates the relevant configuration, by default it generates\\n\\n- type: `false | Object`\\n- default: `{}`\\n\\n### tsconfigPath\\n\\nPath to the tsconfig file\\n\\n- type: `string`\\n- default: `. /tsconfig.json`\\n\\n### distPath\\n\\nThe output path of the dts file, based on [outDir](/api/config/build-config#outDir)\\n\\n- type: `string`\\n- default: `. /types`\\n\\n### only\\n\\nGenerate only dts files, not js files\\n\\n- type: `boolean`\\n- default: `false`\\n\\n## externals\\n\\nConfigure external dependencies that will not be packaged into the final bundle\\n\\n- type: `(string | RegExp)[]`\\n- default: `[]`\\n\\n## format\\n\\nThe format of the js product output, where `iife` and `umd` can only take effect when `buildType` is `bundle`\\n\\n- type: `'esm' | 'cjs' | 'iife' | 'umd'`\\n- default: `cjs`\\n\\n## input\\n\\nSpecify the entry file for the build, in the form of an array that can specify the directory\\n\\n- type: `string[] | Record<string, string>`\\n- default: `['src/index.ts']` in `bundle` mode, `['src']` in `bundleless` mode\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n input: ['src/index.ts', 'src/index2.ts'],\\n },\\n};\\n```\\n\\n## jsx\\n\\nSpecify the compilation method of jsx, default support React17, automatically inject jsx runtime code\\n\\n- type: `automatic | classic`\\n- default: `automatic`\\n\\n## metafile\\n\\nesbuild to produce some metadata about the build in JSON format, which can be visualized by tools such as [bundle-buddy](https://bundle-buddy.com/esbuild)\\n\\n- type: `boolean`\\n- default: `false`\\n\\n## minify\\n\\nUse esbuild or terser to compress code, also pass [terserOptions](https://github.com/terser/terser#minify-options)\\n\\n- type: `'terser' | 'esbuild' | false | Object`\\n- default: `false`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n minify: {\\n compress: {\\n drop_console: true,\\n },\\n },\\n },\\n};\\n```\\n\\n## outDir\\n\\nSpecifies the output directory of the build\\n\\n- type: `string`\\n- default: `dist`\\n\\n## platform\\n\\nGenerates code for the node environment by default, you can also specify `browser` which will generate code for the browser environment\\n\\n- type: `'browser' | 'node'`\\n- default: `node`\\n\\n## sourceDir\\n\\nSpecify the source directory of the build, default is `src`, which is used to generate the corresponding product directory based on the source directory structure when building `bundleless`.\\n\\n- type: `string`\\n- default: `src`\\n\\n## sourceMap\\n\\nWhether to generate sourceMap or not\\n\\n- type: `boolean | 'inline' | 'external'`\\n- default: `false`\\n\\n## splitting\\n\\nWhether to enable code splitting\\n\\n- type: `boolean`\\n- default: `false`\\n\\n## style\\n\\nConfigure style-related configuration\\n\\n### less\\n\\nless-related configuration\\n\\n#### lessOptions\\n\\nRefer to [less](https://less.bootcss.com/usage/#less-options) for detailed configuration\\n\\n- type: `Object`\\n- default: `{ javascriptEnabled: true }`\\n\\n#### additionalData\\n\\nAdd `Less` code to the beginning of the entry file.\\n\\n- type: `string`\\n- default: `undefined`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n less: {\\n additionalData: `@base-color: #c6538c;`,\\n },\\n },\\n },\\n};\\n```\\n\\n#### implementation\\n\\nConfigure the implementation library used by `Less`, if not specified, the built-in version used is `4.1.3`\\n\\n- type: `string | Object`\\n- default: `undefined`\\n\\nSpecify the implementation library for `Less` when the `Object` type is specified\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n less: {\\n implementation: require('less'),\\n },\\n },\\n },\\n};\\n```\\n\\nFor the `string` type, specify the path to the implementation library for `Less`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n less: {\\n implementation: require.resolve('less'),\\n },\\n },\\n },\\n};\\n```\\n\\n### sass\\n\\nsass-related configuration\\n\\n#### sassOptions\\n\\nRefer to [node-sass](https://github.com/sass/node-sass#options) for detailed configuration\\n\\n- type: `Object`\\n- default: `{}`\\n\\n#### additionalData\\n\\nAdd `Sass` code to the beginning of the entry file.\\n\\n- type: `string | Function`\\n- default: `undefined`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n sass: {\\n additionalData: `$base-color: #c6538c;\\n $border-dark: rgba($base-color, 0.88);`,\\n },\\n },\\n },\\n};\\n```\\n\\n#### implementation\\n\\nConfigure the implementation library used by `Sass`, the built-in version used is `1.5.4` if not specified\\n\\n- type: `string | Object`\\n- default: `undefined`\\n\\nSpecify the implementation library for `Sass` when the `Object` type is specified\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n sass: {\\n implementation: require('sass'),\\n },\\n },\\n },\\n};\\n```\\n\\nFor the `string` type, specify the path to the `Sass` implementation library\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n sass: {\\n implementation: require.resolve('sass'),\\n },\\n },\\n },\\n};\\n```\\n\\n### postcss\\n\\n- plugins\\n- processOptions\\n\\nSee [postcss](https://github.com/postcss/postcss#options) for detailed configuration\\n\\n### inject\\n\\nConfigure whether to insert style into js in packaged mode\\n\\n- type: `boolean`\\n- default: `false`\\n\\n### autoModules\\n\\nEnable CSS Modules automatically based on the filename.\\n\\n- type: `boolean | RegExp`\\n- default: `true`\\n\\n`true` : Enables CSS Modules for style files ending with `.module.css` `.module.less` `.module.scss` `.module.sass` filenames\\n\\n`false` : Disable CSS Modules.\\n\\n`RegExp` : Enables CSS Modules for all files that match the regular condition.\\n\\n### modules\\n\\nCSS Modules configuration\\n\\n- type: `Object`\\n- default: `{}`\\n\\nA common configuration is `localsConvention`, which changes the class name generation rules for css modules\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n style: {\\n modules: {\\n localsConvention: 'camelCaseOnly',\\n },\\n },\\n },\\n};\\n```\\n\\nFor the following styles\\n\\n```css\\n.box-title {\\n color: red;\\n}\\n```\\n\\nYou can use `styles.boxTitle` to access\\n\\nFor detailed configuration see [postcss-modules](https://github.com/madyankin/postcss-modules#usage)\\n\\n### tailwindcss\\n\\ntailwindcss related configuration\\n\\n- type: `Object | Function`\\n- default: `see configuration details below`\\n\\n<details>\\n <summary>Tailwind CSS configuration details</summary>\\n\\n```js modern.config.ts\\nconst tailwind = {\\n content: [\\n './config/html/**/*.html',\\n './config/html/**/*.ejs',\\n './config/html/**/*.hbs',\\n './src/**/*.js',\\n './src/**/*.jsx',\\n './src/**/*.ts',\\n './src/**/*.tsx',\\n './storybook/**/*',\\n ],\\n};\\n```\\n\\nWhen the value is of type `Object`, it is merged with the default configuration via `Object.assign`.\\n\\nWhen the value is of type `Function`, the object returned by the function is merged with the default configuration via `Object.assign`.\\n\\nThe `theme` property is not allowed, otherwise the build will fail, using [`designSystem`](/api/config/design-system) as the `Tailwind CSS Theme` configuration.\\n\\nThe rest of the usage is the same as Tailwind CSS: [Quick Portal](https://tailwindcss.com/docs/configuration).\\n\\n## target\\n\\nSpecify the target environment for the build\\n\\n- type: `'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext'`\\n- default: `'es6'`\\n\\n## umdGlobals\\n\\nSpecify global variables for external import of umd products\\n\\n- type: `Record<string, string>`\\n- default: `{}`\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n umdGlobals: {\\n react: 'React',\\n 'react-dom': 'ReactDOM',\\n },\\n },\\n};\\n```\\n\\nAt this point, `react` and `react-dom` will be seen as global variables imported externally and will not be packed into the umd product, but will be accessible by way of `global.React` and `global.ReactDOM`\\n\\n## umdModuleName\\n\\nSpecifies the module name of the umd product\\n\\n- type: `string` | `Function`\\n- default: `name => name`\\n\\n```js\\nexport default {\\n buildConfig: {\\n format: 'umd',\\n umdModuleName: 'myLib',\\n },\\n};\\n```\\n\\nAt this point the umd product will go to mount on `global.myLib`\\n\\n:::tip\\n\\n- The module name of the umd product must not conflict with the global variable name.\\n- Module names should not contain special characters like `-`, `@`, `/`, etc.\\n\\n:::\\n\\nAlso the function form can take one parameter, which is the output path of the current package file\\n\\n```js modern.config.ts\\nexport default {\\n buildConfig: {\\n format: 'umd',\\n umdModuleName: path => {\\n if (path.includes('index')) {\\n return 'myLib';\\n } else {\\n return 'myLib2';\\n }\\n },\\n },\\n};\\n```\\n\"";
1376
1380
  function _createMdxContent(props) {
1377
- var _components = Object.assign({
1381
+ const _components = Object.assign({
1378
1382
  h1: "h1",
1379
1383
  a: "a",
1380
1384
  p: "p",
@@ -1398,7 +1402,7 @@ function _createMdxContent(props) {
1398
1402
  children: "#"
1399
1403
  }), "BuildConfig"]
1400
1404
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1401
- children: "This section describes all the configuration of Module tools for building"
1405
+ children: "This section describes all the configuration of Module Tools for building"
1402
1406
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1403
1407
  id: "alias",
1404
1408
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
@@ -1410,7 +1414,7 @@ function _createMdxContent(props) {
1410
1414
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1411
1415
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1412
1416
  children: ["type: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1413
- children: "Record<string, string | string[]> | Function"
1417
+ children: "Record<string, string> | Function"
1414
1418
  })]
1415
1419
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1416
1420
  children: ["default: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
@@ -1423,18 +1427,20 @@ function _createMdxContent(props) {
1423
1427
  className: "modern-directive-title",
1424
1428
  children: "TIP"
1425
1429
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
1426
- className: "island-directive-content",
1430
+ className: "modern-directive-content",
1427
1431
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1428
- children: ["For TypeScript projects, you only need to configure ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1429
- href: "https://www.typescriptlang.org/tsconfig#paths",
1432
+ children: ["\nFor TypeScript projects, you only need to configure ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1433
+ href: "https://www.typescriptlang.org/tsconfig#paths-1",
1434
+ target: "_blank",
1435
+ rel: "nofollow",
1430
1436
  children: "compilerOptions.paths"
1431
1437
  }), " in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1432
1438
  children: "tsconfig.json"
1433
- }), ", Module tools will automatically recognize the alias in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1439
+ }), ", Module Tools will automatically recognize the alias in ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1434
1440
  children: "tsconfig.json"
1435
1441
  }), ", so there is no need to configure the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1436
1442
  children: "alias"
1437
- }), " field additionally."]
1443
+ }), "field additionally."]
1438
1444
  })
1439
1445
  })]
1440
1446
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
@@ -2338,7 +2344,7 @@ function _createMdxContent(props) {
2338
2344
  }), "path"]
2339
2345
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2340
2346
  children: ["Static resource output path, will be based on ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2341
- href: "/en/api/config/build-config#outDir.html",
2347
+ href: "/module-tools/en/api/config/build-config.html#outdir-4",
2342
2348
  children: "outDir"
2343
2349
  })]
2344
2350
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
@@ -2639,6 +2645,8 @@ function _createMdxContent(props) {
2639
2645
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2640
2646
  children: ["Packaged to handle svg as a React component, options reference ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2641
2647
  href: "https://react-svgr.com/docs/options/",
2648
+ target: "_blank",
2649
+ rel: "nofollow",
2642
2650
  children: "svgr"
2643
2651
  }), ", plus support for two configuration items ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2644
2652
  children: "include"
@@ -3080,6 +3088,8 @@ function _createMdxContent(props) {
3080
3088
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3081
3089
  children: ["Reference for array settings: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3082
3090
  href: "https://github.com/webpack-contrib/copy-webpack-plugin#patterns",
3091
+ target: "_blank",
3092
+ rel: "nofollow",
3083
3093
  children: "copy-webpack-plugin patterns"
3084
3094
  })]
3085
3095
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
@@ -3382,9 +3392,9 @@ function _createMdxContent(props) {
3382
3392
  className: "modern-directive-title",
3383
3393
  children: "TIP"
3384
3394
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
3385
- className: "island-directive-content",
3395
+ className: "modern-directive-content",
3386
3396
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3387
- children: "To prevent excessive global replacement substitution, it is recommended that the following two principles be followed when using"
3397
+ children: "\nTo prevent excessive global replacement substitution, it is recommended that the following two principles be followed when using"
3388
3398
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
3389
3399
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
3390
3400
  children: "Use upper case for global constants"
@@ -3443,7 +3453,7 @@ function _createMdxContent(props) {
3443
3453
  }), "distPath"]
3444
3454
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3445
3455
  children: ["The output path of the dts file, based on ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3446
- href: "/en/api/config/build-config#outDir.html",
3456
+ href: "/module-tools/en/api/config/build-config.html#outdir-5",
3447
3457
  children: "outDir"
3448
3458
  })]
3449
3459
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
@@ -3792,6 +3802,31 @@ function _createMdxContent(props) {
3792
3802
  children: "automatic"
3793
3803
  })]
3794
3804
  }), "\n"]
3805
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3806
+ id: "metafile",
3807
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3808
+ className: "header-anchor",
3809
+ "aria-hidden": "true",
3810
+ href: "#metafile",
3811
+ children: "#"
3812
+ }), "metafile"]
3813
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3814
+ children: ["esbuild to produce some metadata about the build in JSON format, which can be visualized by tools such as ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3815
+ href: "https://bundle-buddy.com/esbuild",
3816
+ target: "_blank",
3817
+ rel: "nofollow",
3818
+ children: "bundle-buddy"
3819
+ })]
3820
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
3821
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
3822
+ children: ["type: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3823
+ children: "boolean"
3824
+ })]
3825
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
3826
+ children: ["default: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3827
+ children: "false"
3828
+ })]
3829
+ }), "\n"]
3795
3830
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3796
3831
  id: "minify",
3797
3832
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
@@ -3802,7 +3837,9 @@ function _createMdxContent(props) {
3802
3837
  }), "minify"]
3803
3838
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3804
3839
  children: ["Use esbuild or terser to compress code, also pass ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3805
- href: "https://github.com/terser/terser#minify-options",
3840
+ href: "https://github.com/terser/terser#minify-options-1",
3841
+ target: "_blank",
3842
+ rel: "nofollow",
3806
3843
  children: "terserOptions"
3807
3844
  })]
3808
3845
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
@@ -4223,7 +4260,9 @@ function _createMdxContent(props) {
4223
4260
  }), "lessOptions"]
4224
4261
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4225
4262
  children: ["Refer to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4226
- href: "https://less.bootcss.com/usage/#less-options",
4263
+ href: "https://less.bootcss.com/usage/#less-options-1",
4264
+ target: "_blank",
4265
+ rel: "nofollow",
4227
4266
  children: "less"
4228
4267
  }), " for detailed configuration"]
4229
4268
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
@@ -5228,7 +5267,9 @@ function _createMdxContent(props) {
5228
5267
  }), "sassOptions"]
5229
5268
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
5230
5269
  children: ["Refer to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
5231
- href: "https://github.com/sass/node-sass#options",
5270
+ href: "https://github.com/sass/node-sass#options-3",
5271
+ target: "_blank",
5272
+ rel: "nofollow",
5232
5273
  children: "node-sass"
5233
5274
  }), " for detailed configuration"]
5234
5275
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
@@ -6238,7 +6279,9 @@ function _createMdxContent(props) {
6238
6279
  }), "\n"]
6239
6280
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
6240
6281
  children: ["See ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
6241
- href: "https://github.com/postcss/postcss#options",
6282
+ href: "https://github.com/postcss/postcss#options-4",
6283
+ target: "_blank",
6284
+ rel: "nofollow",
6242
6285
  children: "postcss"
6243
6286
  }), " for detailed configuration"]
6244
6287
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
@@ -6278,7 +6321,7 @@ function _createMdxContent(props) {
6278
6321
  })]
6279
6322
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
6280
6323
  children: ["default: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
6281
- children: "true "
6324
+ children: "true"
6282
6325
  })]
6283
6326
  }), "\n"]
6284
6327
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
@@ -6711,7 +6754,9 @@ function _createMdxContent(props) {
6711
6754
  }), " to access"]
6712
6755
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
6713
6756
  children: ["For detailed configuration see ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
6714
- href: "https://github.com/madyankin/postcss-modules#usage",
6757
+ href: "https://github.com/madyankin/postcss-modules#usage-1",
6758
+ target: "_blank",
6759
+ rel: "nofollow",
6715
6760
  children: "postcss-modules"
6716
6761
  })]
6717
6762
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
@@ -7175,7 +7220,7 @@ function _createMdxContent(props) {
7175
7220
  children: ["The ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
7176
7221
  children: "theme"
7177
7222
  }), " property is not allowed, otherwise the build will fail, using ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
7178
- href: "/en/api/config/design-system.html",
7223
+ href: "/module-tools/en/api/config/design-system.html",
7179
7224
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
7180
7225
  children: "designSystem"
7181
7226
  })
@@ -7185,6 +7230,8 @@ function _createMdxContent(props) {
7185
7230
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
7186
7231
  children: ["The rest of the usage is the same as Tailwind CSS: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
7187
7232
  href: "https://tailwindcss.com/docs/configuration",
7233
+ target: "_blank",
7234
+ rel: "nofollow",
7188
7235
  children: "Quick Portal"
7189
7236
  }), "."]
7190
7237
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
@@ -7204,7 +7251,7 @@ function _createMdxContent(props) {
7204
7251
  })]
7205
7252
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
7206
7253
  children: ["default: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
7207
- children: "'es2015'"
7254
+ children: "'es6'"
7208
7255
  })]
7209
7256
  }), "\n"]
7210
7257
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
@@ -7812,7 +7859,7 @@ function _createMdxContent(props) {
7812
7859
  className: "modern-directive-title",
7813
7860
  children: "TIP"
7814
7861
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
7815
- className: "island-directive-content",
7862
+ className: "modern-directive-content",
7816
7863
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
7817
7864
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
7818
7865
  children: "The module name of the umd product must not conflict with the global variable name."
@@ -8341,21 +8388,17 @@ function _createMdxContent(props) {
8341
8388
  })]
8342
8389
  });
8343
8390
  }
8344
- function MDXContent() {
8345
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8346
- var _ref = props.components || {},
8347
- MDXLayout = _ref.wrapper;
8391
+ function MDXContent(props = {}) {
8392
+ const {wrapper: MDXLayout} = props.components || ({});
8348
8393
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
8349
8394
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
8350
8395
  })) : _createMdxContent(props);
8351
8396
  }
8352
- _c = MDXContent;
8353
8397
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
8354
8398
  function _missingMdxReference(id, component, place) {
8355
- 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/api/config/build-config.md`" : ""));
8399
+ 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/api/config/build-config.md`" : ""));
8356
8400
  }
8357
- var _c;
8358
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
8401
+
8359
8402
 
8360
8403
  /***/ })
8361
8404
 
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/async/en_api_config_build-config.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA;;AAAA;;AAAA;;AAEA;;AAAA;;AAAA;;AAEA;;AAAA;;;;;AAAA;;AAAA;;AAEA;;AAAA;AAAA;;;;;;;;AAEA;;AAEA;;;AAEA;;;;AACA;;;;;;;;;;;AAEA;;AAEA;;;AAEA;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;;AAAA;;AAAA;;AAAA;;;;;;;;;;AAEA;;AAEA;;;AAEA;;AAAA;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;AAGA;;AACA;;AAAA;;AAAA;;AAAA;;;;;AAGA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/api/config/build-config.md"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/async/en_api_config_build-config.js","mappings":";;;;;;;;;;;;;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;;;AAEA;;AAEA;;;AAEA;;;;AACA;;;;;;;;;;;AAEA;;AAEA;;;AAEA;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;;AAAA;;AAAA;;AAAA;;;;;;;;;;AAEA;;AAEA;;;AAEA;;AAAA;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;AAIA;;AACA;;AAAA;;AAAA;;AAAA;;;;;AAIA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/api/config/build-config.md"],"names":[],"sourceRoot":""}
@@ -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/api/config/build-preset.md"
1188
+ "filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/api/config/build-preset.md"
1189
1189
  };
1190
- var frontmatter = {
1190
+ const frontmatter = {
1191
1191
  "sidebar_position": 2
1192
1192
  };
1193
- var toc = [{
1193
+ const toc = [{
1194
1194
  "id": "string",
1195
1195
  "text": "string",
1196
1196
  "depth": 2
@@ -1219,10 +1219,10 @@ var toc = [{
1219
1219
  "text": "Function",
1220
1220
  "depth": 2
1221
1221
  }];
1222
- var title = "BuildPreset";
1223
- var content = "\"---\\nsidebar_position: 2\\n---\\n\\n# BuildPreset\\n\\nA build preset string or preset function. Provides out-of-the-box build configuration\\n\\n- type: `string | Function`\\n- default: `undefined`\\n\\n## string\\n\\nThe string form allows you to use the built-in presets directly\\n\\n```js modern.config.ts\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset: 'npm-library',\\n});\\n```\\n\\n### ``npm-library'`\\n\\nLibrary generic schema used under class [NPM](https://www.npmjs.com/) package manager, contains `esm` and `cjs` Bundle products, and includes a type file.\\n\\n:::info\\nAbout the class [NPM](https://www.npmjs.com/) Package Manager\\n\\n- [npm](https://www.npmjs.com)\\n- [yarn](https://yarnpkg.com/)\\n- [pnpm](https://pnpm.io/)\\n :::\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\",\\n \\\"module\\\": \\\". /dist/es/index.js\\\",\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\"\\n}\\n```\\n\\nThe build configuration corresponding to the preset string.\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /es',\\n },\\n {\\n buildType: 'bundle',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### `npm-library-with-umd'`\\n\\nUsed under class [NPM](https://www.npmjs.com/) package manager, and Library supports a similar pattern to [unpkg](https://unpkg.com/). Additional `umd` products are provided on top of the pre-defined `npm-library`.\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\",\\n \\\"module\\\": \\\". /dist/es/index.js\\\",\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\",\\n \\\"unpkg\\\": \\\". /dist/umd/index.js\\\",\\n};\\n```\\n\\nThe build configuration corresponding to the preset string.\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /es',\\n },\\n {\\n format: 'umd',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /umd',\\n },\\n {\\n buildType: 'bundle',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### `'npm-component'`\\n\\nA generic pattern for components (libraries) used under the class [NPM](https://www.npmjs.com/) package manager. Contains both `esm` and `cjs` Bundleless products (for easy _[Tree shaking](https://developer.mozilla.org/zh-CN/docs/Glossary/Tree_shaking)_ optimization), as well as including a copy of the type file.\\n\\nFor style files included in the source code, the products provide the compiled product of the style and the source file of the style.\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\", // bundleless type\\n \\\"module\\\": \\\". /dist/es/index.js\\\", // bundleless type\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\",\\n};\\n```\\n\\nThe pre-defined strings correspond to the build configuration.\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /es',\\n },\\n {\\n buildType: 'bundleless',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### `'npm-component-with-umd'`\\n\\nComponent (library) used under class [NPM](https://www.npmjs.com/) package manager, with support for class [unpkg](https://unpkg.com/) schema. Additional `umd` products are provided on top of the pre-defined `npm-component`.\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\", // bundleless type\\n \\\"module\\\": \\\". /dist/es/index.js\\\", // bundleless type\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\",\\n \\\"unpkg\\\": \\\". /dist/umd/index.js\\\",\\n};\\n```\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /es',\\n },\\n {\\n format: 'umd',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /umd',\\n },\\n {\\n buildType: 'bundleless',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### About the ECMAScript versions supported by the presets and `{es5.... .esnext}`\\n\\nWhen you want to use a `buildPreset` preset that supports other ECMAScript versions, you can directly add the supported versions to the `'npm-library'`, `'npm-library-with-umd'`, `'npm-component'`, `'npm-component-with-umd'` presets.\\n\\nFor example, if you want the `` npm-library'` preset to support ``es2017``, you can configure it as follows.\\n\\n```js modern.config.ts\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset: 'npm-library-es2017',\\n});\\n```\\n\\n## Function\\n\\nThe way the function is configured, you can get the preset value from the `preset` parameter and then modify the build configuration inside to customize your build configuration.\\nThe following is an example of how a function can be configured to compress a build product.\\n\\n```js modern.config.ts\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset({ preset }) {\\n const { NPM_LIBRARY } = preset;\\n return NPM_LIBRARY.map(config => {\\n config.minify = {\\n compress: {\\n drop_console: true,\\n },\\n };\\n return config;\\n });\\n },\\n});\\n```\\n\"";
1222
+ const title = `BuildPreset`;
1223
+ const content = "\"---\\nsidebar_position: 2\\n---\\n\\n# BuildPreset\\n\\nA build preset string or preset function. Provides out-of-the-box build configuration\\n\\n- type: `string | Function`\\n- default: `undefined`\\n\\n## string\\n\\nThe string form allows you to use the built-in presets directly\\n\\n```js modern.config.ts\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset: 'npm-library',\\n});\\n```\\n\\n### ``npm-library'`\\n\\nLibrary generic schema used under class [NPM](https://www.npmjs.com/) package manager, contains `esm` and `cjs` Bundle products, and includes a type file.\\n\\n:::info\\nAbout the class [NPM](https://www.npmjs.com/) Package Manager\\n\\n- [npm](https://www.npmjs.com)\\n- [yarn](https://yarnpkg.com/)\\n- [pnpm](https://pnpm.io/)\\n\\n:::\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\",\\n \\\"module\\\": \\\". /dist/es/index.js\\\",\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\"\\n}\\n```\\n\\nThe build configuration corresponding to the preset string.\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /es',\\n },\\n {\\n buildType: 'bundle',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### `npm-library-with-umd'`\\n\\nUsed under class [NPM](https://www.npmjs.com/) package manager, and Library supports a similar pattern to [unpkg](https://unpkg.com/). Additional `umd` products are provided on top of the pre-defined `npm-library`.\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\",\\n \\\"module\\\": \\\". /dist/es/index.js\\\",\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\",\\n \\\"unpkg\\\": \\\". /dist/umd/index.js\\\",\\n};\\n```\\n\\nThe build configuration corresponding to the preset string.\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /es',\\n },\\n {\\n format: 'umd',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /umd',\\n },\\n {\\n buildType: 'bundle',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### `'npm-component'`\\n\\nA generic pattern for components (libraries) used under the class [NPM](https://www.npmjs.com/) package manager. Contains both `esm` and `cjs` Bundleless products (for easy _[Tree shaking](https://developer.mozilla.org/zh-CN/docs/Glossary/Tree_shaking)_ optimization), as well as including a copy of the type file.\\n\\nFor style files included in the source code, the products provide the compiled product of the style and the source file of the style.\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\", // bundleless type\\n \\\"module\\\": \\\". /dist/es/index.js\\\", // bundleless type\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\",\\n};\\n```\\n\\nThe pre-defined strings correspond to the build configuration.\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /es',\\n },\\n {\\n buildType: 'bundleless',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### `'npm-component-with-umd'`\\n\\nComponent (library) used under class [NPM](https://www.npmjs.com/) package manager, with support for class [unpkg](https://unpkg.com/) schema. Additional `umd` products are provided on top of the pre-defined `npm-component`.\\n\\n```json package.json\\n{\\n \\\"main\\\": \\\". /dist/lib/index.js\\\", // bundleless type\\n \\\"module\\\": \\\". /dist/es/index.js\\\", // bundleless type\\n \\\"types\\\": \\\". /dist/types/index.d.ts\\\",\\n \\\"unpkg\\\": \\\". /dist/umd/index.js\\\",\\n};\\n```\\n\\n```js\\nexport const buildConfig = [\\n {\\n format: 'cjs',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /lib',\\n },\\n {\\n format: 'esm',\\n target: 'es6',\\n buildType: 'bundleless',\\n outDir: '. /es',\\n },\\n {\\n format: 'umd',\\n target: 'es6',\\n buildType: 'bundle',\\n outDir: '. /umd',\\n },\\n {\\n buildType: 'bundleless',\\n outDir: '. /types',\\n dts: {\\n only: true,\\n },\\n },\\n];\\n```\\n\\n### About the ECMAScript versions supported by the presets and `{es5.... .esnext}`\\n\\nWhen you want to use a `buildPreset` preset that supports other ECMAScript versions, you can directly add the supported versions to the `'npm-library'`, `'npm-library-with-umd'`, `'npm-component'`, `'npm-component-with-umd'` presets.\\n\\nFor example, if you want the `'npm-library'` preset to support `'es2017'`, you can configure it as follows.\\n\\n```js modern.config.ts\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset: 'npm-library-es2017',\\n});\\n```\\n\\n## Function\\n\\nThe way the function is configured, you can get the preset value from the `preset` parameter and then modify the build configuration inside to customize your build configuration.\\nThe following is an example of how a function can be configured to compress a build product.\\n\\n```js modern.config.ts\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset({ preset }) {\\n const { NPM_LIBRARY } = preset;\\n return NPM_LIBRARY.map(config => {\\n config.minify = {\\n compress: {\\n drop_console: true,\\n },\\n };\\n return config;\\n });\\n },\\n});\\n```\\n\"";
1224
1224
  function _createMdxContent(props) {
1225
- var _components = Object.assign({
1225
+ const _components = Object.assign({
1226
1226
  h1: "h1",
1227
1227
  a: "a",
1228
1228
  p: "p",
@@ -1528,6 +1528,8 @@ function _createMdxContent(props) {
1528
1528
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1529
1529
  children: ["Library generic schema used under class ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1530
1530
  href: "https://www.npmjs.com/",
1531
+ target: "_blank",
1532
+ rel: "nofollow",
1531
1533
  children: "NPM"
1532
1534
  }), " package manager, contains ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1533
1535
  children: "esm"
@@ -1540,26 +1542,34 @@ function _createMdxContent(props) {
1540
1542
  className: "modern-directive-title",
1541
1543
  children: "INFO"
1542
1544
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
1543
- className: "island-directive-content",
1545
+ className: "modern-directive-content",
1544
1546
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1545
- children: ["About the class ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1547
+ children: ["\nAbout the class ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1546
1548
  href: "https://www.npmjs.com/",
1549
+ target: "_blank",
1550
+ rel: "nofollow",
1547
1551
  children: "NPM"
1548
1552
  }), " Package Manager"]
1549
1553
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1550
1554
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1551
1555
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1552
1556
  href: "https://www.npmjs.com",
1557
+ target: "_blank",
1558
+ rel: "nofollow",
1553
1559
  children: "npm"
1554
1560
  })
1555
1561
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1556
1562
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1557
1563
  href: "https://yarnpkg.com/",
1564
+ target: "_blank",
1565
+ rel: "nofollow",
1558
1566
  children: "yarn"
1559
1567
  })
1560
1568
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1561
1569
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1562
1570
  href: "https://pnpm.io/",
1571
+ target: "_blank",
1572
+ rel: "nofollow",
1563
1573
  children: "pnpm"
1564
1574
  })
1565
1575
  }), "\n"]
@@ -2686,9 +2696,13 @@ function _createMdxContent(props) {
2686
2696
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2687
2697
  children: ["Used under class ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2688
2698
  href: "https://www.npmjs.com/",
2699
+ target: "_blank",
2700
+ rel: "nofollow",
2689
2701
  children: "NPM"
2690
2702
  }), " package manager, and Library supports a similar pattern to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2691
2703
  href: "https://unpkg.com/",
2704
+ target: "_blank",
2705
+ rel: "nofollow",
2692
2706
  children: "unpkg"
2693
2707
  }), ". Additional ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2694
2708
  children: "umd"
@@ -4166,6 +4180,8 @@ function _createMdxContent(props) {
4166
4180
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4167
4181
  children: ["A generic pattern for components (libraries) used under the class ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4168
4182
  href: "https://www.npmjs.com/",
4183
+ target: "_blank",
4184
+ rel: "nofollow",
4169
4185
  children: "NPM"
4170
4186
  }), " package manager. Contains both ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4171
4187
  children: "esm"
@@ -4174,6 +4190,8 @@ function _createMdxContent(props) {
4174
4190
  }), " Bundleless products (for easy ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.em, {
4175
4191
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4176
4192
  href: "https://developer.mozilla.org/zh-CN/docs/Glossary/Tree_shaking",
4193
+ target: "_blank",
4194
+ rel: "nofollow",
4177
4195
  children: "Tree shaking"
4178
4196
  })
4179
4197
  }), " optimization), as well as including a copy of the type file."]
@@ -5342,9 +5360,13 @@ function _createMdxContent(props) {
5342
5360
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
5343
5361
  children: ["Component (library) used under class ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
5344
5362
  href: "https://www.npmjs.com/",
5363
+ target: "_blank",
5364
+ rel: "nofollow",
5345
5365
  children: "NPM"
5346
5366
  }), " package manager, with support for class ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
5347
5367
  href: "https://unpkg.com/",
5368
+ target: "_blank",
5369
+ rel: "nofollow",
5348
5370
  children: "unpkg"
5349
5371
  }), " schema. Additional ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
5350
5372
  children: "umd"
@@ -6859,8 +6881,10 @@ function _createMdxContent(props) {
6859
6881
  }), " presets."]
6860
6882
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
6861
6883
  children: ["For example, if you want the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
6862
- children: "npm-library'` preset to support "
6863
- }), "es2017``, you can configure it as follows."]
6884
+ children: "'npm-library'"
6885
+ }), " preset to support ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
6886
+ children: "'es2017'"
6887
+ }), ", you can configure it as follows."]
6864
6888
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
6865
6889
  codeConfig: chCodeConfig,
6866
6890
  northPanel: {
@@ -7823,21 +7847,17 @@ function _createMdxContent(props) {
7823
7847
  })]
7824
7848
  });
7825
7849
  }
7826
- function MDXContent() {
7827
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7828
- var _ref = props.components || {},
7829
- MDXLayout = _ref.wrapper;
7850
+ function MDXContent(props = {}) {
7851
+ const {wrapper: MDXLayout} = props.components || ({});
7830
7852
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
7831
7853
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
7832
7854
  })) : _createMdxContent(props);
7833
7855
  }
7834
- _c = MDXContent;
7835
7856
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
7836
7857
  function _missingMdxReference(id, component, place) {
7837
- 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/api/config/build-preset.md`" : ""));
7858
+ 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/api/config/build-preset.md`" : ""));
7838
7859
  }
7839
- var _c;
7840
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
7860
+
7841
7861
 
7842
7862
  /***/ })
7843
7863