@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
@@ -14,14 +14,14 @@ __webpack_require__.r(__webpack_exports__);
14
14
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
15
15
  /*@jsxRuntime automatic @jsxImportSource react*/
16
16
 
17
- var frontmatter = {
17
+ const frontmatter = {
18
18
  "sidebar_position": 1
19
19
  };
20
- var toc = [];
21
- var title = "Welcome to Module Tools";
22
- var content = "\"---\\nsidebar_position: 1\\n---\\n\\n# Welcome to Module Tools\\n\\nModule Tools is a modules engineering solution for Modern.js, as well as a core dependency. It allows developers to build, debug, and publish module type project more easily. A module type project can mostly be thought of as an npm package type project, which may be a component, component library or tool library project.\\n\\nIf you are planning to develop a project of the npm package type, then you came to the right place! Modern.js provides a professional module engineering solution. It gives you:\\n\\n- **Simple project initialization**: simply execute the `npx @modern-js/create project-dir` command, followed by a few interactive questions, to create a complete module type project. The created project also supports the choice of two package managers, [**pnpm**](https://pnpm.io/) and [**Yarn**](https://classic.yarnpkg.com/).\\n- **Code formatting**: In a module project, you can execute `modern lint` to format the code. The initialized module project includes the [ESLint](https://eslint.org/docs/latest/user-guide/core-concepts#what-is-eslint) ruleset for Modern.js for most scenarios.\\n- **Comprehensive build capabilities and faster builds**: Module Tools provides high-performance build capabilities based on [esbuild](https://esbuild.github.io/getting-started/) and [SWC](https://swc.rs/), and provides rich configurations for different build scenarios.\\n- **Storybook debugging tools**: Module Tools provides [Storybook](https://storybook.js.org/) debugging tools for debugging module projects. After installing the Storybook plugin for Module Tools, you can start it with the `modern dev storybook` command. You can use Storybook not only for debugging components, but also for other types of modules.\\n- **Testing capabilities with Jest**: When you need to test a module, you can use the `modern test` command of Module Tools, which not only integrates with [Jest](https://jestjs.io/), but also provides an API for configuring [Jest](https://jestjs.io/docs/configuration).\\n- **Versioning based on Changesets**: When you need to record changes to a project, you can use the `modern change` command to generate a Markdown file containing the changes; when you need to upgrade a project, you can use the `modern bump` command to analyze and upgrade the version through the Markdown file; when you need to release a project, you can use the `modern release` command to release the project; Module Tools implements these commands based on [Changesets](https://github.com/changesets/changesets).\\n- **Extensible plug-in mechanism**: Want to integrate additional debugging tools for your project? Or maybe you want to do some extra processing during the build process, Module Tools provides a plugin mechanism and plugin hooks that cover both the `dev` command and the `build` command process. You can use them to extend the capabilities of your project.\\n- **Lots more!** Module Tools will continue to optimize its build and debug features in the future. If there are important issues to be solved in module project building, or if a mainstream module project debugging tool or pattern emerges, then they will probably be supported by Module Tools.\\n\"";
20
+ const toc = [];
21
+ const title = `Welcome to Module Tools`;
22
+ const content = "\"---\\nsidebar_position: 1\\n---\\n\\n# Welcome to Module Tools\\n\\nModule Tools is a modules engineering solution for Modern.js, as well as a core dependency. It allows developers to build, debug, and publish module type project more easily. A module type project can mostly be thought of as an npm package type project, which may be a component, component library or tool library project.\\n\\nIf you are planning to develop a project of the npm package type, then you came to the right place! Modern.js provides a professional module engineering solution. It gives you:\\n\\n- **Simple project initialization**: simply execute the `npx @modern-js/create project-dir` command, followed by a few interactive questions, to create a complete module type project. The created project also supports the choice of two package managers, [**pnpm**](https://pnpm.io/) and [**Yarn**](https://classic.yarnpkg.com/).\\n- **Code formatting**: In a module project, you can execute `modern lint` to format the code. The initialized module project includes the [ESLint](https://eslint.org/docs/latest/user-guide/core-concepts#what-is-eslint) ruleset for Modern.js for most scenarios.\\n- **Comprehensive build capabilities and faster builds**: Module Tools provides high-performance build capabilities based on [esbuild](https://esbuild.github.io/getting-started/) and [SWC](https://swc.rs/), and provides rich configurations for different build scenarios.\\n- **Storybook debugging tools**: Module Tools provides [Storybook](https://storybook.js.org/) debugging tools for debugging module projects. After installing the Storybook plugin for Module Tools, you can start it with the `modern dev storybook` command. You can use Storybook not only for debugging components, but also for other types of modules.\\n- **Testing capabilities with Jest**: When you need to test a module, you can use the `modern test` command of Module Tools, which not only integrates with [Jest](https://jestjs.io/), but also provides an API for configuring [Jest](https://jestjs.io/docs/configuration).\\n- **Versioning based on Changesets**: When you need to record changes to a project, you can use the `modern change` command to generate a Markdown file containing the changes; when you need to upgrade a project, you can use the `modern bump` command to analyze and upgrade the version through the Markdown file; when you need to release a project, you can use the `modern release` command to release the project; Module Tools implements these commands based on [Changesets](https://github.com/changesets/changesets).\\n- **Extensible plug-in mechanism**: Want to integrate additional debugging tools for your project? Or maybe you want to do some extra processing during the build process, Module Tools provides a plugin mechanism and plugin hooks that cover both the `dev` command and the `build` command process. You can use them to extend the capabilities of your project.\\n- **Lots more!** Module Tools will continue to optimize its build and debug features in the future. If there are important issues to be solved in module project building, or if a mainstream module project debugging tool or pattern emerges, then they will probably be supported by Module Tools.\\n\"";
23
23
  function _createMdxContent(props) {
24
- var _components = Object.assign({
24
+ const _components = Object.assign({
25
25
  h1: "h1",
26
26
  a: "a",
27
27
  p: "p",
@@ -51,11 +51,15 @@ function _createMdxContent(props) {
51
51
  children: "npx @modern-js/create project-dir"
52
52
  }), " command, followed by a few interactive questions, to create a complete module type project. The created project also supports the choice of two package managers, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
53
53
  href: "https://pnpm.io/",
54
+ target: "_blank",
55
+ rel: "nofollow",
54
56
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
55
57
  children: "pnpm"
56
58
  })
57
59
  }), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
58
60
  href: "https://classic.yarnpkg.com/",
61
+ target: "_blank",
62
+ rel: "nofollow",
59
63
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
60
64
  children: "Yarn"
61
65
  })
@@ -66,7 +70,9 @@ function _createMdxContent(props) {
66
70
  }), ": In a module project, you can execute ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
67
71
  children: "modern lint"
68
72
  }), " to format the code. The initialized module project includes the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
69
- href: "https://eslint.org/docs/latest/user-guide/core-concepts#what-is-eslint",
73
+ href: "https://eslint.org/docs/latest/user-guide/core-concepts#what-is-eslint-1",
74
+ target: "_blank",
75
+ rel: "nofollow",
70
76
  children: "ESLint"
71
77
  }), " ruleset for Modern.js for most scenarios."]
72
78
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
@@ -74,9 +80,13 @@ function _createMdxContent(props) {
74
80
  children: "Comprehensive build capabilities and faster builds"
75
81
  }), ": Module Tools provides high-performance build capabilities based on ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
76
82
  href: "https://esbuild.github.io/getting-started/",
83
+ target: "_blank",
84
+ rel: "nofollow",
77
85
  children: "esbuild"
78
86
  }), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
79
87
  href: "https://swc.rs/",
88
+ target: "_blank",
89
+ rel: "nofollow",
80
90
  children: "SWC"
81
91
  }), ", and provides rich configurations for different build scenarios."]
82
92
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
@@ -84,6 +94,8 @@ function _createMdxContent(props) {
84
94
  children: "Storybook debugging tools"
85
95
  }), ": Module Tools provides ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
86
96
  href: "https://storybook.js.org/",
97
+ target: "_blank",
98
+ rel: "nofollow",
87
99
  children: "Storybook"
88
100
  }), " debugging tools for debugging module projects. After installing the Storybook plugin for Module Tools, you can start it with the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
89
101
  children: "modern dev storybook"
@@ -95,9 +107,13 @@ function _createMdxContent(props) {
95
107
  children: "modern test"
96
108
  }), " command of Module Tools, which not only integrates with ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
97
109
  href: "https://jestjs.io/",
110
+ target: "_blank",
111
+ rel: "nofollow",
98
112
  children: "Jest"
99
113
  }), ", but also provides an API for configuring ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
100
114
  href: "https://jestjs.io/docs/configuration",
115
+ target: "_blank",
116
+ rel: "nofollow",
101
117
  children: "Jest"
102
118
  }), "."]
103
119
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
@@ -111,6 +127,8 @@ function _createMdxContent(props) {
111
127
  children: "modern release"
112
128
  }), " command to release the project; Module Tools implements these commands based on ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
113
129
  href: "https://github.com/changesets/changesets",
130
+ target: "_blank",
131
+ rel: "nofollow",
114
132
  children: "Changesets"
115
133
  }), "."]
116
134
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
@@ -129,18 +147,14 @@ function _createMdxContent(props) {
129
147
  })]
130
148
  });
131
149
  }
132
- function MDXContent() {
133
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
134
- var _ref = props.components || {},
135
- MDXLayout = _ref.wrapper;
150
+ function MDXContent(props = {}) {
151
+ const {wrapper: MDXLayout} = props.components || ({});
136
152
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
137
153
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
138
154
  })) : _createMdxContent(props);
139
155
  }
140
- _c = MDXContent;
141
156
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
142
- var _c;
143
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
157
+
144
158
 
145
159
  /***/ })
146
160
 
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/async/en_guide_intro_welcome.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEA;;AAEA;;;;AAEA;AAAA;;AAAA;;;AAAA;;AAAA;;;AAAA;;AAAA;;;AACA;AAAA;;AAAA;;AAAA;AAAA;;;AACA;AAAA;;AAAA;AAAA;;AAAA;AAAA;;;AACA;AAAA;;AAAA;AAAA;;AAAA;;;AACA;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;;AACA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;;AACA;AAAA;;AAAA;;AAAA;;;AACA;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/intro/welcome.md"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/async/en_guide_intro_welcome.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEA;;AAEA;;;;AAEA;AAAA;;AAAA;;;;;AAAA;;AAAA;;;;;AAAA;;AAAA;;;AACA;AAAA;;AAAA;;;;AAAA;AAAA;;;AACA;AAAA;;;;AAAA;AAAA;;;;AAAA;AAAA;;;AACA;AAAA;;;;AAAA;AAAA;;AAAA;;;AACA;AAAA;;AAAA;;;;AAAA;AAAA;;;;AAAA;AAAA;;;AACA;AAAA;;AAAA;;AAAA;;AAAA;;;;AAAA;AAAA;;;AACA;AAAA;;AAAA;;AAAA;;;AACA;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/intro/welcome.md"],"names":[],"sourceRoot":""}
@@ -14,14 +14,14 @@ __webpack_require__.r(__webpack_exports__);
14
14
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
15
15
  /*@jsxRuntime automatic @jsxImportSource react*/
16
16
 
17
- var frontmatter = {
17
+ const frontmatter = {
18
18
  "sidebar_position": 2
19
19
  };
20
- var toc = [];
21
- var title = "Why module project solution";
22
- var content = "\"---\\nsidebar_position: 2\\n---\\n\\n# Why module project solution\\n\\nYou've probably all experienced it: when developing a component library or tool library from scratch, we have to consider not only how to write the code logic of the project itself, but also how to build, debug, test, format the code, and other things that have nothing to do with the code logic.\\n\\nFor example, when we consider which builder is used to build the code for a module project, we might previously consider [webpack](https://webpack.js.org/) or [Rollup](https://rollupjs.org/guide/en/), but now we might also consider [esbuild](https://esbuild.github.io/) or [SWC](https://swc.rs/).\\n\\nRegardless of which builder is chosen, this is going to be a costly learning curve for developers who are not skilled in the use of these build tools. Even if you want to use them quickly, it will take a lot of time and effort.\\n\\nIn addition to the build, things like providing debugging tools for projects, supporting testing capabilities, adding code format validation, etc. can take a long time and effort for a novice to understand or master them and actually serve the current project.\\n\\nTo ensure the quality of the code and the integrity of the project, we often need to do these things that are not related to the logical implementation of the code. However, these things are likely to affect the overall project development progress, reduce the developer's development experience, and make the developer feel that the development threshold of the module project is very high.\\n\\nIf you have to go through all this work every time you develop a module type project, you will spend most of your development time in the beginning on these things that are not related to code implementation. If we could provide a module engineering solution that would help developers to solve the project engineering issues and allow them to focus more on code implementation, it would greatly improve the module type project development experience.\\n\\n![Not using engineering solution vs. using engineering solution](https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/module-tools/why-module-solution.png)\\n\\nModern.js, in order to make developing module type projects easier, provides a module engineering solution in order to solve the above mentioned problems and provides the main features using Module Tools. **Module-tools can be understood as a tool dedicated to the development of module type projects**.\\n\"";
20
+ const toc = [];
21
+ const title = `Why module project solution`;
22
+ const content = "\"---\\nsidebar_position: 2\\n---\\n\\n# Why module project solution\\n\\nYou've probably all experienced it: when developing a component library or tool library from scratch, we have to consider not only how to write the code logic of the project itself, but also how to build, debug, test, format the code, and other things that have nothing to do with the code logic.\\n\\nFor example, when we consider which builder is used to build the code for a module project, we might previously consider [webpack](https://webpack.js.org/) or [Rollup](https://rollupjs.org/guide/en/), but now we might also consider [esbuild](https://esbuild.github.io/) or [SWC](https://swc.rs/).\\n\\nRegardless of which builder is chosen, this is going to be a costly learning curve for developers who are not skilled in the use of these build tools. Even if you want to use them quickly, it will take a lot of time and effort.\\n\\nIn addition to the build, things like providing debugging tools for projects, supporting testing capabilities, adding code format validation, etc. can take a long time and effort for a novice to understand or master them and actually serve the current project.\\n\\nTo ensure the quality of the code and the integrity of the project, we often need to do these things that are not related to the logical implementation of the code. However, these things are likely to affect the overall project development progress, reduce the developer's development experience, and make the developer feel that the development threshold of the module project is very high.\\n\\nIf you have to go through all this work every time you develop a module type project, you will spend most of your development time in the beginning on these things that are not related to code implementation. If we could provide a module engineering solution that would help developers to solve the project engineering issues and allow them to focus more on code implementation, it would greatly improve the module type project development experience.\\n\\n![Not using engineering solution vs. using engineering solution](https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/module-tools/why-module-solution.png)\\n\\nModern.js, in order to make developing module type projects easier, provides a module engineering solution in order to solve the above mentioned problems and provides the main features using Module Tools. **Module-tools can be understood as a tool dedicated to the development of module type projects**.\\n\"";
23
23
  function _createMdxContent(props) {
24
- var _components = Object.assign({
24
+ const _components = Object.assign({
25
25
  h1: "h1",
26
26
  a: "a",
27
27
  p: "p",
@@ -42,15 +42,23 @@ function _createMdxContent(props) {
42
42
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
43
43
  children: ["For example, when we consider which builder is used to build the code for a module project, we might previously consider ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
44
44
  href: "https://webpack.js.org/",
45
+ target: "_blank",
46
+ rel: "nofollow",
45
47
  children: "webpack"
46
48
  }), " or ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
47
49
  href: "https://rollupjs.org/guide/en/",
50
+ target: "_blank",
51
+ rel: "nofollow",
48
52
  children: "Rollup"
49
53
  }), ", but now we might also consider ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
50
54
  href: "https://esbuild.github.io/",
55
+ target: "_blank",
56
+ rel: "nofollow",
51
57
  children: "esbuild"
52
58
  }), " or ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
53
59
  href: "https://swc.rs/",
60
+ target: "_blank",
61
+ rel: "nofollow",
54
62
  children: "SWC"
55
63
  }), "."]
56
64
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
@@ -73,18 +81,14 @@ function _createMdxContent(props) {
73
81
  })]
74
82
  });
75
83
  }
76
- function MDXContent() {
77
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
78
- var _ref = props.components || {},
79
- MDXLayout = _ref.wrapper;
84
+ function MDXContent(props = {}) {
85
+ const {wrapper: MDXLayout} = props.components || ({});
80
86
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
81
87
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
82
88
  })) : _createMdxContent(props);
83
89
  }
84
- _c = MDXContent;
85
90
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
86
- var _c;
87
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
91
+
88
92
 
89
93
  /***/ })
90
94
 
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/async/en_guide_intro_why-module-engineering-solution.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEA;;AAEA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAEA;;AAEA;;AAEA;;AAEA;;;;;;;AAIA;AAAA;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/intro/why-module-engineering-solution.md"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/async/en_guide_intro_why-module-engineering-solution.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEA;;AAEA;;;;AAAA;AAAA;;;;AAAA;AAAA;;;;AAAA;AAAA;;;;AAAA;AAAA;;AAEA;;AAEA;;AAEA;;AAEA;;;;;;;AAIA;AAAA;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/intro/why-module-engineering-solution.md"],"names":[],"sourceRoot":""}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["en_"],{
2
+ (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["en_index"],{
3
3
 
4
4
  /***/ "./docs/en/index.md":
5
5
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -14,10 +14,10 @@ __webpack_require__.r(__webpack_exports__);
14
14
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
15
15
  /*@jsxRuntime automatic @jsxImportSource react*/
16
16
 
17
- var frontmatter = {
17
+ const frontmatter = {
18
18
  "pageType": "home",
19
19
  "hero": {
20
- "name": "Module tools",
20
+ "name": "Module Tools",
21
21
  "text": "Module engineering solutions",
22
22
  "tagline": "simple, powerful, high-performance modern npm package development solution",
23
23
  "actions": [{
@@ -44,15 +44,15 @@ var frontmatter = {
44
44
  "icon": "🛠️"
45
45
  }, {
46
46
  "title": "Extensible: Provides a powerful plugin mechanism",
47
- "details": "With its plugin extension mechanism, you can easily extend the capabilities of Module tools.",
47
+ "details": "With its plugin extension mechanism, you can easily extend the capabilities of Module Tools.",
48
48
  "icon": "🎨"
49
49
  }]
50
50
  };
51
- var toc = [];
52
- var title = "index";
53
- var content = "\"---\\npageType: home\\n\\nhero:\\n name: Module tools\\n text: Module engineering solutions\\n tagline: simple, powerful, high-performance modern npm package development solution\\n actions:\\n - theme: brand\\n text: welcome\\n link: /guide/intro/welcome\\n\\nfeatures:\\n - title: 'Esbuild: The High Performance JS Bundler'\\n details: Built on Esbuild, the build is extremely fast and gives you the ultimate development experience.\\n icon: 🚀\\n - title: 'Storybook: The community popular UI development tool'\\n details: Integrated with Storybook, you can use it to debug UI.\\n icon: 📦\\n - title: 'transform + bundle'\\n details: Both bundle and bundleless build modes are supported.\\n icon: ✨\\n - title: 'zero configuration'\\n details: Develop your npm packages without any configuration, with built-in presets covering multiple scenarios.\\n icon: 🛠️\\n - title: 'Extensible: Provides a powerful plugin mechanism'\\n details: With its plugin extension mechanism, you can easily extend the capabilities of Module tools.\\n icon: 🎨\\n---\\n# index\\n\"";
51
+ const toc = [];
52
+ const title = `index`;
53
+ const content = "\"---\\npageType: home\\n\\nhero:\\n name: Module Tools\\n text: Module engineering solutions\\n tagline: simple, powerful, high-performance modern npm package development solution\\n actions:\\n - theme: brand\\n text: welcome\\n link: /guide/intro/welcome\\n\\nfeatures:\\n - title: 'Esbuild: The High Performance JS Bundler'\\n details: Built on Esbuild, the build is extremely fast and gives you the ultimate development experience.\\n icon: 🚀\\n - title: 'Storybook: The community popular UI development tool'\\n details: Integrated with Storybook, you can use it to debug UI.\\n icon: 📦\\n - title: 'transform + bundle'\\n details: Both bundle and bundleless build modes are supported.\\n icon: ✨\\n - title: 'zero configuration'\\n details: Develop your npm packages without any configuration, with built-in presets covering multiple scenarios.\\n icon: 🛠️\\n - title: 'Extensible: Provides a powerful plugin mechanism'\\n details: With its plugin extension mechanism, you can easily extend the capabilities of Module Tools.\\n icon: 🎨\\n---\\n# index\\n\"";
54
54
  function _createMdxContent(props) {
55
- var _components = Object.assign({
55
+ const _components = Object.assign({
56
56
  h1: "h1",
57
57
  a: "a"
58
58
  }, props.components);
@@ -66,20 +66,16 @@ function _createMdxContent(props) {
66
66
  }), "index"]
67
67
  });
68
68
  }
69
- function MDXContent() {
70
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
71
- var _ref = props.components || {},
72
- MDXLayout = _ref.wrapper;
69
+ function MDXContent(props = {}) {
70
+ const {wrapper: MDXLayout} = props.components || ({});
73
71
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
74
72
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
75
73
  })) : _createMdxContent(props);
76
74
  }
77
- _c = MDXContent;
78
75
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
79
- var _c;
80
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
76
+
81
77
 
82
78
  /***/ })
83
79
 
84
80
  }]);
85
- //# sourceMappingURL=en_.js.map
81
+ //# sourceMappingURL=en_index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/async/en_index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/index.md"],"names":[],"sourceRoot":""}
@@ -18,12 +18,12 @@ __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
  Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
24
24
  CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot
25
25
  };
26
- var chCodeConfig = {
26
+ const chCodeConfig = {
27
27
  "staticMediaQuery": "not screen, (max-width: 768px)",
28
28
  "theme": {
29
29
  "name": "nord",
@@ -1186,16 +1186,16 @@ var chCodeConfig = {
1186
1186
  "autoImport": true,
1187
1187
  "showCopyButton": true,
1188
1188
  "skipLanguages": [],
1189
- "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/en/plugins/guide/getting-started.mdx"
1189
+ "filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/plugins/guide/getting-started.mdx"
1190
1190
  };
1191
- var frontmatter = {
1191
+ const frontmatter = {
1192
1192
  "sidebar_position": 1
1193
1193
  };
1194
- var toc = [];
1195
- var title = "Quick Start";
1196
- var content = "\"---\\nsidebar_position: 1\\n---\\n\\n# Quick Start\\n\\nModule engineering solution not only provides a rich set of features, but also supports extending the capabilities of the current project by way of plugins.\\n\\nWe can quickly see how to write a module-tools plugin by using the following example.\\n\\n<CH.Spotlight>\\n\\n```md . /project\\n. /project .\\n├── plugins\\n│ └── example.ts\\n├── src/\\n└── modern.config.ts\\n```\\n\\n---\\n\\nFirst we create `. /plugins/example.ts` file under the initialized project.\\n\\n```md . /project\\n\\n```\\n\\n---\\n\\nNext add the code for the plugin to the `example.ts` file.\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nexport const ExamplePlugin = (): CliPlugin<ModuleTools> => {\\n return {\\n name: 'example',\\n setup() {\\n console.info('this is example plugin');\\n return {\\n // use hooks\\n afterBuild() {\\n console.info('build over');\\n }\\n };\\n };\\n };\\n};\\n```\\n\\n---\\n\\nThen we register the plugin we just wrote via the [`plugins`](/en/api/config/plugins) API.\\n\\n```ts . /modern.config.ts\\nimport { ExamplePlugin } from '. /plugins/example';\\nexport default defineConfig({\\n plugins: [ExamplePlugin()],\\n});\\n```\\n\\n---\\n\\nFinally, run `modern build` and you will see.\\n\\n```bash terminal\\nThis is example plugin\\nBuild succeed: 510.684ms\\nbuild over\\n```\\n\\n</CH.Spotlight>\\n\\nWith the above example, we learned the following things.\\n\\n- The recommended plugin directory structure\\n- The initialization code of the plugin\\n- Plugin registration\\n\\nIn addition to the above, we also need to understand.\\n\\n- [plugin objects, type definitions and recommended configuration items](/en/plugins/guide/plugin-object)\\n- [setup functions, `api` object parameters, lifecycle hooks](/en/plugins/guide/setup-function)\\n\"";
1194
+ const toc = [];
1195
+ const title = `Quick Start`;
1196
+ const content = "\"---\\nsidebar_position: 1\\n---\\n\\n# Quick Start\\n\\nModule engineering solution not only provides a rich set of features, but also supports extending the capabilities of the current project by way of plugins.\\n\\nWe can quickly see how to write a module-tools plugin by using the following example.\\n\\n<CH.Spotlight>\\n\\n```md . /project\\n. /project .\\n├── plugins\\n│ └── example.ts\\n├── src/\\n└── modern.config.ts\\n```\\n\\n---\\n\\nFirst we create `. /plugins/example.ts` file under the initialized project.\\n\\n```md . /project\\n\\n```\\n\\n---\\n\\nNext add the code for the plugin to the `example.ts` file.\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nexport const ExamplePlugin = (): CliPlugin<ModuleTools> => {\\n return {\\n name: 'example',\\n setup() {\\n console.info('this is example plugin');\\n return {\\n // use hooks\\n afterBuild() {\\n console.info('build over');\\n }\\n };\\n };\\n };\\n};\\n```\\n\\n---\\n\\nThen we register the plugin we just wrote via the [`plugins`](/en/api/config/plugins) API.\\n\\n```ts . /modern.config.ts\\nimport { examplePlugin } from '. /plugins/example';\\nexport default defineConfig({\\n plugins: [examplePlugin()],\\n});\\n```\\n\\n---\\n\\nFinally, run `modern build` and you will see.\\n\\n```bash terminal\\nThis is example plugin\\nBuild succeed: 510.684ms\\nbuild over\\n```\\n\\n</CH.Spotlight>\\n\\nWith the above example, we learned the following things.\\n\\n- The recommended plugin directory structure\\n- The initialization code of the plugin\\n- Plugin registration\\n\\nIn addition to the above, we also need to understand.\\n\\n- [plugin objects, type definitions and recommended configuration items](/en/plugins/guide/plugin-object)\\n- [setup functions, `api` object parameters, lifecycle hooks](/en/plugins/guide/setup-function)\\n\"";
1197
1197
  function _createMdxContent(props) {
1198
- var _components = Object.assign({
1198
+ const _components = Object.assign({
1199
1199
  h1: "h1",
1200
1200
  a: "a",
1201
1201
  p: "p",
@@ -2180,7 +2180,7 @@ function _createMdxContent(props) {
2180
2180
  }
2181
2181
  }
2182
2182
  }, {
2183
- "content": "ExamplePlugin",
2183
+ "content": "examplePlugin",
2184
2184
  "props": {
2185
2185
  "style": {
2186
2186
  "color": "#D8DEE9"
@@ -2331,7 +2331,7 @@ function _createMdxContent(props) {
2331
2331
  }
2332
2332
  }
2333
2333
  }, {
2334
- "content": "ExamplePlugin",
2334
+ "content": "examplePlugin",
2335
2335
  "props": {
2336
2336
  "style": {
2337
2337
  "color": "#88C0D0"
@@ -2496,7 +2496,7 @@ function _createMdxContent(props) {
2496
2496
  }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2497
2497
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2498
2498
  children: ["Then we register the plugin we just wrote via the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2499
- href: "/en/api/config/plugins.html",
2499
+ href: "/module-tools/en/api/config/plugins.html",
2500
2500
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2501
2501
  children: "plugins"
2502
2502
  })
@@ -2524,12 +2524,12 @@ function _createMdxContent(props) {
2524
2524
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2525
2525
  children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2526
2526
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2527
- href: "/en/plugins/guide/plugin-object.html",
2527
+ href: "/module-tools/en/plugins/guide/plugin-object.html",
2528
2528
  children: "plugin objects, type definitions and recommended configuration items"
2529
2529
  })
2530
2530
  }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2531
2531
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2532
- href: "/en/plugins/guide/setup-function.html",
2532
+ href: "/module-tools/en/plugins/guide/setup-function.html",
2533
2533
  children: ["setup functions, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2534
2534
  children: "api"
2535
2535
  }), " object parameters, lifecycle hooks"]
@@ -2538,21 +2538,17 @@ function _createMdxContent(props) {
2538
2538
  })]
2539
2539
  });
2540
2540
  }
2541
- function MDXContent() {
2542
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2543
- var _ref = props.components || {},
2544
- MDXLayout = _ref.wrapper;
2541
+ function MDXContent(props = {}) {
2542
+ const {wrapper: MDXLayout} = props.components || ({});
2545
2543
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
2546
2544
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
2547
2545
  })) : _createMdxContent(props);
2548
2546
  }
2549
- _c = MDXContent;
2550
2547
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
2551
2548
  function _missingMdxReference(id, component, place) {
2552
- 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/plugins/guide/getting-started.mdx`" : ""));
2549
+ 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/plugins/guide/getting-started.mdx`" : ""));
2553
2550
  }
2554
- var _c;
2555
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
2551
+
2556
2552
 
2557
2553
  /***/ })
2558
2554
 
@@ -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/plugins/guide/plugin-object.mdx"
1188
+ "filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/plugins/guide/plugin-object.mdx"
1189
1189
  };
1190
- var frontmatter = {
1190
+ const frontmatter = {
1191
1191
  "sidebar_position": 2
1192
1192
  };
1193
- var toc = [{
1193
+ const toc = [{
1194
1194
  "id": "plugin-type-definitions",
1195
1195
  "text": "Plugin type definitions",
1196
1196
  "depth": 2
@@ -1199,10 +1199,10 @@ var toc = [{
1199
1199
  "text": "Plugin configuration items",
1200
1200
  "depth": 2
1201
1201
  }];
1202
- var title = "Plugin Object";
1203
- var content = "\"---\\nsidebar_position: 2\\n---\\n\\n# Plugin Object\\n\\nThe module-tools plugin is an object, and the object contains the following properties.\\n\\n- `name`: The name of the plugin, a unique identifier.\\n- `setup`: plugin initialization function, which will be executed only once. setup function can return a [Hooks object](), and module-tools will execute the function corresponding to the Hook defined on the Hooks object at a specific time.\\n\\nFor example, in the following plugin code example, the `beforeBuild` function is triggered before the project starts the build task and the `build start` log is printed.\\n\\n<CH.Code>\\n\\n```ts . /plugins/demo.tsx\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nconst MyPlugin: CliPlugin<ModuleTools> = {\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n // this is hook\\n beforeBuild: () => {\\n console.info('build start');\\n },\\n };\\n },\\n};\\n```\\n\\n---\\n\\n```ts . /modern.config.ts\\nimport { MyPlugin } from '. /plugins/demo';\\nexport default {\\n plugins: [MyPlugin()],\\n};\\n```\\n\\n</CH.Code>\\n\\n## Plugin type definitions\\n\\nWhen using TypeScript, you can introduce the built-in `CliPlugin` and `ModuleTools` types to provide the correct type derivation for plugins: ``\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nconst MyPlugin: CliPlugin<ModuleTools> = {\\n name: 'my-plugin',\\n\\n setup() {\\n const foo = '1';\\n\\n return {\\n // this is hook\\n afterBuild: () => {\\n //...\\n },\\n };\\n },\\n};\\n```\\n\\n## Plugin configuration items\\n\\n**It is recommended to write the plugin as a function**, so that the plugin can receive configuration items via function entry.\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\ntype MyPluginOptions = {\\n foo: string;\\n};\\n\\nconst MyPlugin = (options: MyPluginOptions): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n console.log(options.foo);\\n },\\n});\\n```\\n\"";
1202
+ const title = `Plugin Object`;
1203
+ const content = "\"---\\nsidebar_position: 2\\n---\\n\\n# Plugin Object\\n\\nThe module-tools plugin is an object, and the object contains the following properties.\\n\\n- `name`: The name of the plugin, a unique identifier.\\n- `setup`: plugin initialization function, which will be executed only once. setup function can return a [Hooks object](), and module-tools will execute the function corresponding to the Hook defined on the Hooks object at a specific time.\\n\\nFor example, in the following plugin code example, the `beforeBuild` function is triggered before the project starts the build task and the `build start` log is printed.\\n\\n<CH.Code>\\n\\n```ts . /plugins/demo.tsx\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nconst myPlugin: CliPlugin<ModuleTools> = {\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n // this is hook\\n beforeBuild: () => {\\n console.info('build start');\\n },\\n };\\n },\\n};\\n```\\n\\n---\\n\\n```ts . /modern.config.ts\\nimport { myPlugin } from '. /plugins/demo';\\nexport default {\\n plugins: [myPlugin()],\\n};\\n```\\n\\n</CH.Code>\\n\\n## Plugin type definitions\\n\\nWhen using TypeScript, you can introduce the built-in `CliPlugin` and `ModuleTools` types to provide the correct type derivation for plugins: ``\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nconst myPlugin: CliPlugin<ModuleTools> = {\\n name: 'my-plugin',\\n\\n setup() {\\n const foo = '1';\\n\\n return {\\n // this is hook\\n afterBuild: () => {\\n //...\\n },\\n };\\n },\\n};\\n```\\n\\n## Plugin configuration items\\n\\n**It is recommended to write the plugin as a function**, so that the plugin can receive configuration items via function entry.\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\ntype MyPluginOptions = {\\n foo: string;\\n};\\n\\nconst myPlugin = (options: MyPluginOptions): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n console.log(options.foo);\\n },\\n});\\n```\\n\"";
1204
1204
  function _createMdxContent(props) {
1205
- var _components = Object.assign({
1205
+ const _components = Object.assign({
1206
1206
  h1: "h1",
1207
1207
  a: "a",
1208
1208
  p: "p",
@@ -1415,7 +1415,7 @@ function _createMdxContent(props) {
1415
1415
  }
1416
1416
  }
1417
1417
  }, {
1418
- "content": "MyPlugin",
1418
+ "content": "myPlugin",
1419
1419
  "props": {
1420
1420
  "style": {
1421
1421
  "color": "#D8DEE9"
@@ -1882,7 +1882,7 @@ function _createMdxContent(props) {
1882
1882
  }
1883
1883
  }
1884
1884
  }, {
1885
- "content": "MyPlugin",
1885
+ "content": "myPlugin",
1886
1886
  "props": {
1887
1887
  "style": {
1888
1888
  "color": "#D8DEE9"
@@ -2019,7 +2019,7 @@ function _createMdxContent(props) {
2019
2019
  }
2020
2020
  }
2021
2021
  }, {
2022
- "content": "MyPlugin",
2022
+ "content": "myPlugin",
2023
2023
  "props": {
2024
2024
  "style": {
2025
2025
  "color": "#88C0D0"
@@ -2226,7 +2226,7 @@ function _createMdxContent(props) {
2226
2226
  }
2227
2227
  }
2228
2228
  }, {
2229
- "content": "MyPlugin",
2229
+ "content": "myPlugin",
2230
2230
  "props": {
2231
2231
  "style": {
2232
2232
  "color": "#D8DEE9"
@@ -2701,7 +2701,7 @@ function _createMdxContent(props) {
2701
2701
  }
2702
2702
  }
2703
2703
  }, {
2704
- "content": "MyPlugin",
2704
+ "content": "myPlugin",
2705
2705
  "props": {
2706
2706
  "style": {
2707
2707
  "color": "#D8DEE9"
@@ -2838,7 +2838,7 @@ function _createMdxContent(props) {
2838
2838
  }
2839
2839
  }
2840
2840
  }, {
2841
- "content": "MyPlugin",
2841
+ "content": "myPlugin",
2842
2842
  "props": {
2843
2843
  "style": {
2844
2844
  "color": "#88C0D0"
@@ -3059,7 +3059,7 @@ function _createMdxContent(props) {
3059
3059
  }
3060
3060
  }
3061
3061
  }, {
3062
- "content": "MyPlugin",
3062
+ "content": "myPlugin",
3063
3063
  "props": {
3064
3064
  "style": {
3065
3065
  "color": "#D8DEE9"
@@ -3799,7 +3799,7 @@ function _createMdxContent(props) {
3799
3799
  }
3800
3800
  }
3801
3801
  }, {
3802
- "content": "MyPlugin",
3802
+ "content": "myPlugin",
3803
3803
  "props": {
3804
3804
  "style": {
3805
3805
  "color": "#88C0D0"
@@ -4155,21 +4155,17 @@ function _createMdxContent(props) {
4155
4155
  })]
4156
4156
  });
4157
4157
  }
4158
- function MDXContent() {
4159
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4160
- var _ref = props.components || {},
4161
- MDXLayout = _ref.wrapper;
4158
+ function MDXContent(props = {}) {
4159
+ const {wrapper: MDXLayout} = props.components || ({});
4162
4160
  return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
4163
4161
  children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
4164
4162
  })) : _createMdxContent(props);
4165
4163
  }
4166
- _c = MDXContent;
4167
4164
  /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
4168
4165
  function _missingMdxReference(id, component, place) {
4169
- 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/plugins/guide/plugin-object.mdx`" : ""));
4166
+ 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/plugins/guide/plugin-object.mdx`" : ""));
4170
4167
  }
4171
- var _c;
4172
- __webpack_require__.$Refresh$.register(_c, "MDXContent");
4168
+
4173
4169
 
4174
4170
  /***/ })
4175
4171