@modern-js/module-tools-docs 2.0.1 → 2.0.3-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 (330) hide show
  1. package/doc_build/html/main/index.html +16 -0
  2. package/doc_build/route.json +10 -0
  3. package/doc_build/static/css/main.css +2966 -0
  4. package/doc_build/static/css/main.css.map +1 -0
  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 +68 -0
  6. 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 -0
  7. package/doc_build/static/js/async/en_api_config_build-config.js +8406 -0
  8. package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -0
  9. package/doc_build/static/js/async/en_api_config_build-preset.js +7865 -0
  10. package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -0
  11. package/doc_build/static/js/async/en_api_config_design-system.js +47805 -0
  12. package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -0
  13. package/doc_build/static/js/async/en_api_config_plugins.js +1488 -0
  14. package/doc_build/static/js/async/en_api_config_plugins.js.map +1 -0
  15. package/doc_build/static/js/async/en_api_config_testing.js +2139 -0
  16. package/doc_build/static/js/async/en_api_config_testing.js.map +1 -0
  17. package/doc_build/static/js/async/en_api_index.js +51 -0
  18. package/doc_build/static/js/async/en_api_index.js.map +1 -0
  19. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +14360 -0
  20. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -0
  21. package/doc_build/static/js/async/en_guide_advance_asset.js +3972 -0
  22. package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -0
  23. package/doc_build/static/js/async/en_guide_advance_build-umd.js +9857 -0
  24. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +1 -0
  25. package/doc_build/static/js/async/en_guide_advance_copy.js +6541 -0
  26. package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -0
  27. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +3806 -0
  28. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +1 -0
  29. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +5304 -0
  30. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -0
  31. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +146 -0
  32. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -0
  33. package/doc_build/static/js/async/en_guide_advance_theme-config.js +2486 -0
  34. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -0
  35. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +3858 -0
  36. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -0
  37. package/doc_build/static/js/async/en_guide_basic_command-preview.js +3973 -0
  38. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -0
  39. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +3048 -0
  40. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -0
  41. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +2180 -0
  42. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -0
  43. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +3887 -0
  44. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -0
  45. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +186 -0
  46. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -0
  47. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +4723 -0
  48. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -0
  49. package/doc_build/static/js/async/en_guide_best-practices_components.js +21400 -0
  50. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -0
  51. package/doc_build/static/js/async/en_guide_intro_getting-started.js +1904 -0
  52. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -0
  53. package/doc_build/static/js/async/en_guide_intro_welcome.js +162 -0
  54. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -0
  55. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +96 -0
  56. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -0
  57. package/doc_build/static/js/async/en_index.js +81 -0
  58. package/doc_build/static/js/async/en_index.js.map +1 -0
  59. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +2556 -0
  60. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +1 -0
  61. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +4173 -0
  62. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +1 -0
  63. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +3815 -0
  64. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -0
  65. package/doc_build/static/js/async/en_plugins_official-list_overview.js +66 -0
  66. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +1 -0
  67. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +246 -0
  68. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -0
  69. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js +6656 -0
  70. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js.map +1 -0
  71. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +54 -0
  72. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js.map +1 -0
  73. package/doc_build/static/js/async/zh_api_config_build-config.js +11354 -0
  74. package/doc_build/static/js/async/zh_api_config_build-config.js.map +1 -0
  75. package/doc_build/static/js/async/zh_api_config_build-preset.js +7867 -0
  76. package/doc_build/static/js/async/zh_api_config_build-preset.js.map +1 -0
  77. package/doc_build/static/js/async/zh_api_config_design-system.js +48712 -0
  78. package/doc_build/static/js/async/zh_api_config_design-system.js.map +1 -0
  79. package/doc_build/static/js/async/zh_api_config_plugins.js +1488 -0
  80. package/doc_build/static/js/async/zh_api_config_plugins.js.map +1 -0
  81. package/doc_build/static/js/async/zh_api_config_testing.js +2132 -0
  82. package/doc_build/static/js/async/zh_api_config_testing.js.map +1 -0
  83. package/doc_build/static/js/async/zh_api_index.js +52 -0
  84. package/doc_build/static/js/async/zh_api_index.js.map +1 -0
  85. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js +14392 -0
  86. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js.map +1 -0
  87. package/doc_build/static/js/async/zh_guide_advance_asset.js +3972 -0
  88. package/doc_build/static/js/async/zh_guide_advance_asset.js.map +1 -0
  89. package/doc_build/static/js/async/zh_guide_advance_build-umd.js +9859 -0
  90. package/doc_build/static/js/async/zh_guide_advance_build-umd.js.map +1 -0
  91. package/doc_build/static/js/async/zh_guide_advance_copy.js +6541 -0
  92. package/doc_build/static/js/async/zh_guide_advance_copy.js.map +1 -0
  93. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js +3808 -0
  94. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js.map +1 -0
  95. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js +5304 -0
  96. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js.map +1 -0
  97. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js +150 -0
  98. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +1 -0
  99. package/doc_build/static/js/async/zh_guide_advance_theme-config.js +2477 -0
  100. package/doc_build/static/js/async/zh_guide_advance_theme-config.js.map +1 -0
  101. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js +3849 -0
  102. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +1 -0
  103. package/doc_build/static/js/async/zh_guide_basic_command-preview.js +3805 -0
  104. package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +1 -0
  105. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js +3064 -0
  106. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +1 -0
  107. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js +2241 -0
  108. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js.map +1 -0
  109. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js +3887 -0
  110. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js.map +1 -0
  111. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js +192 -0
  112. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +1 -0
  113. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js +4669 -0
  114. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js.map +1 -0
  115. package/doc_build/static/js/async/zh_guide_best-practices_components.js +21100 -0
  116. package/doc_build/static/js/async/zh_guide_best-practices_components.js.map +1 -0
  117. package/doc_build/static/js/async/zh_guide_intro_getting-started.js +1780 -0
  118. package/doc_build/static/js/async/zh_guide_intro_getting-started.js.map +1 -0
  119. package/doc_build/static/js/async/zh_guide_intro_welcome.js +162 -0
  120. package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +1 -0
  121. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js +96 -0
  122. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +1 -0
  123. package/doc_build/static/js/async/zh_index.js +81 -0
  124. package/doc_build/static/js/async/zh_index.js.map +1 -0
  125. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js +2604 -0
  126. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js.map +1 -0
  127. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js +4169 -0
  128. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js.map +1 -0
  129. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js +3815 -0
  130. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js.map +1 -0
  131. package/doc_build/static/js/async/zh_plugins_official-list_overview.js +66 -0
  132. package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +1 -0
  133. package/doc_build/static/js/builder-runtime.js +1375 -0
  134. package/doc_build/static/js/builder-runtime.js.map +1 -0
  135. package/doc_build/static/js/lib-lodash.js +4907 -0
  136. package/doc_build/static/js/lib-lodash.js.map +1 -0
  137. package/doc_build/static/js/lib-polyfill.js +11847 -0
  138. package/doc_build/static/js/lib-polyfill.js.map +1 -0
  139. package/doc_build/static/js/lib-react.js +39510 -0
  140. package/doc_build/static/js/lib-react.js.map +1 -0
  141. package/doc_build/static/js/main.js +8563 -0
  142. package/doc_build/static/js/main.js.map +1 -0
  143. 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 +7328 -0
  144. 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 -0
  145. package/doc_build/static/search_index.json +1 -0
  146. package/docs/.island/dist/404.html +41 -0
  147. package/docs/.island/dist/assets/asset.26aea654.js +160 -0
  148. package/docs/.island/dist/assets/asset.36e3d3c9.js +160 -0
  149. package/docs/.island/dist/assets/before-getting-started.0e863740.js +87 -0
  150. package/docs/.island/dist/assets/before-getting-started.2c6e6b8a.js +87 -0
  151. package/docs/.island/dist/assets/build-config.460d11d9.js +804 -0
  152. package/docs/.island/dist/assets/build-config.e155e534.js +854 -0
  153. package/docs/.island/dist/assets/build-preset.6c2c6c62.js +256 -0
  154. package/docs/.island/dist/assets/build-preset.d3da921d.js +256 -0
  155. package/docs/.island/dist/assets/build-umd.ba00f028.js +264 -0
  156. package/docs/.island/dist/assets/build-umd.edb9d163.js +273 -0
  157. package/docs/.island/dist/assets/command-preview.1dc93921.js +264 -0
  158. package/docs/.island/dist/assets/command-preview.ef7a9d01.js +264 -0
  159. package/docs/.island/dist/assets/components.esm.03560353.js +9 -0
  160. package/docs/.island/dist/assets/copy.28dc4d5f.js +277 -0
  161. package/docs/.island/dist/assets/copy.f4625565.js +277 -0
  162. package/docs/.island/dist/assets/design-system.8993234c.js +1254 -0
  163. package/docs/.island/dist/assets/design-system.b0ba163f.js +639 -0
  164. package/docs/.island/dist/assets/dev.b373b152.js +37 -0
  165. package/docs/.island/dist/assets/dev.b39fd42a.js +37 -0
  166. package/docs/.island/dist/assets/down.f35427d3.svg +1 -0
  167. package/docs/.island/dist/assets/extension.4bf3526b.js +1 -0
  168. package/docs/.island/dist/assets/extension.d64ed0b8.js +469 -0
  169. package/docs/.island/dist/assets/external-dependency.2ede7532.js +156 -0
  170. package/docs/.island/dist/assets/external-dependency.92ca89e0.js +156 -0
  171. package/docs/.island/dist/assets/getting-started.822cf0b2.js +117 -0
  172. package/docs/.island/dist/assets/getting-started.e2764829.js +114 -0
  173. package/docs/.island/dist/assets/github.3bf8ccee.svg +1 -0
  174. package/docs/.island/dist/assets/in-depth-about-build.94cc902d.js +375 -0
  175. package/docs/.island/dist/assets/in-depth-about-build.aa74de10.js +374 -0
  176. package/docs/.island/dist/assets/in-depth-about-dev-command.877bdb83.js +33 -0
  177. package/docs/.island/dist/assets/in-depth-about-dev-command.9736befd.js +39 -0
  178. package/docs/.island/dist/assets/index.01786ba7.js +30 -0
  179. package/docs/.island/dist/assets/index.6cef6f5f.js +4 -0
  180. package/docs/.island/dist/assets/index.cb118238.js +36 -0
  181. package/docs/.island/dist/assets/index.ccb6ce27.js +4 -0
  182. package/docs/.island/dist/assets/island_inject.69495876.js +1 -0
  183. package/docs/.island/dist/assets/island_inject.cdfb22d9.js +1 -0
  184. package/docs/.island/dist/assets/loading.8c9bb911.svg +1 -0
  185. package/docs/.island/dist/assets/modify-output-product.9e2394d7.js +100 -0
  186. package/docs/.island/dist/assets/modify-output-product.f363845a.js +100 -0
  187. package/docs/.island/dist/assets/moon.6b705924.svg +3 -0
  188. package/docs/.island/dist/assets/plugin.70a61997.js +42 -0
  189. package/docs/.island/dist/assets/plugin.80b12ee2.js +42 -0
  190. package/docs/.island/dist/assets/publish-your-project.7321c10e.js +164 -0
  191. package/docs/.island/dist/assets/publish-your-project.7326359f.js +166 -0
  192. package/docs/.island/dist/assets/right.89674cd7.svg +1 -0
  193. package/docs/.island/dist/assets/search.0aea6901.svg +1 -0
  194. package/docs/.island/dist/assets/search.11353245.js +222 -0
  195. package/docs/.island/dist/assets/search.a1b1cff3.js +3 -0
  196. package/docs/.island/dist/assets/search.f9025ced.js +3 -0
  197. package/docs/.island/dist/assets/style.09015a4b.css +1 -0
  198. package/docs/.island/dist/assets/style.2e5f7bc2.css +1970 -0
  199. package/docs/.island/dist/assets/sun.841dac10.svg +11 -0
  200. package/docs/.island/dist/assets/test-your-project.8ab2809e.js +190 -0
  201. package/docs/.island/dist/assets/test-your-project.9ae2a49e.js +190 -0
  202. package/docs/.island/dist/assets/test.2bfe276b.js +66 -0
  203. package/docs/.island/dist/assets/test.a2c00a3f.js +67 -0
  204. package/docs/.island/dist/assets/translator.b1077c44.svg +1 -0
  205. package/docs/.island/dist/assets/use-micro-generator.13c1a09f.js +60 -0
  206. package/docs/.island/dist/assets/use-micro-generator.dfe877f6.js +60 -0
  207. package/docs/.island/dist/assets/using-storybook.adb88cb8.js +260 -0
  208. package/docs/.island/dist/assets/using-storybook.b8e7dd04.js +260 -0
  209. package/docs/.island/dist/assets/welcome.94880043.js +13 -0
  210. package/docs/.island/dist/assets/welcome.b2140e7e.js +13 -0
  211. package/docs/.island/dist/assets/why-module-engineering-solution.bfe7981a.js +26 -0
  212. package/docs/.island/dist/assets/why-module-engineering-solution.e31cd19f.js +26 -0
  213. package/docs/.island/dist/chunk-COLCRJ2V.js +1 -0
  214. package/docs/.island/dist/chunk-K5FMOYDC.js +10 -0
  215. package/docs/.island/dist/chunk-WE42KMYS.js +26 -0
  216. package/docs/.island/dist/client-entry.js +3 -0
  217. package/docs/.island/dist/en/api/build-config.html +344 -0
  218. package/docs/.island/dist/en/api/build-preset.html +82 -0
  219. package/docs/.island/dist/en/api/design-system.html +155 -0
  220. package/docs/.island/dist/en/api/dev.html +45 -0
  221. package/docs/.island/dist/en/api/index.html +41 -0
  222. package/docs/.island/dist/en/api/plugin.html +48 -0
  223. package/docs/.island/dist/en/api/test.html +58 -0
  224. package/docs/.island/dist/en/guide/advance/asset.html +68 -0
  225. package/docs/.island/dist/en/guide/advance/build-umd.html +72 -0
  226. package/docs/.island/dist/en/guide/advance/copy.html +82 -0
  227. package/docs/.island/dist/en/guide/advance/extension.html +41 -0
  228. package/docs/.island/dist/en/guide/advance/external-dependency.html +71 -0
  229. package/docs/.island/dist/en/guide/advance/in-depth-about-build.html +148 -0
  230. package/docs/.island/dist/en/guide/advance/in-depth-about-dev-command.html +51 -0
  231. package/docs/.island/dist/en/guide/basic/before-getting-started.html +127 -0
  232. package/docs/.island/dist/en/guide/basic/command-preview.html +100 -0
  233. package/docs/.island/dist/en/guide/basic/modify-output-product.html +140 -0
  234. package/docs/.island/dist/en/guide/basic/publish-your-project.html +91 -0
  235. package/docs/.island/dist/en/guide/basic/test-your-project.html +72 -0
  236. package/docs/.island/dist/en/guide/basic/use-micro-generator.html +65 -0
  237. package/docs/.island/dist/en/guide/basic/using-storybook.html +113 -0
  238. package/docs/.island/dist/en/guide/intro/getting-started.html +76 -0
  239. package/docs/.island/dist/en/guide/intro/welcome.html +53 -0
  240. package/docs/.island/dist/en/guide/intro/why-module-engineering-solution.html +49 -0
  241. package/docs/.island/dist/en/index.html +42 -0
  242. package/docs/.island/dist/react-dom.js +1 -0
  243. package/docs/.island/dist/react-dom_client.js +1 -0
  244. package/docs/.island/dist/react.js +1 -0
  245. package/docs/.island/dist/react_jsx-runtime.js +10 -0
  246. package/docs/.island/dist/ssr-manifest.json +57 -0
  247. package/docs/.island/dist/test-result.png +0 -0
  248. package/docs/.island/dist/why-module-solution.png +0 -0
  249. package/docs/.island/dist/zh/api/build-config.html +361 -0
  250. package/docs/.island/dist/zh/api/build-preset.html +82 -0
  251. package/docs/.island/dist/zh/api/design-system.html +149 -0
  252. package/docs/.island/dist/zh/api/dev.html +46 -0
  253. package/docs/.island/dist/zh/api/index.html +41 -0
  254. package/docs/.island/dist/zh/api/plugin.html +48 -0
  255. package/docs/.island/dist/zh/api/test.html +59 -0
  256. package/docs/.island/dist/zh/guide/advance/asset.html +68 -0
  257. package/docs/.island/dist/zh/guide/advance/build-umd.html +72 -0
  258. package/docs/.island/dist/zh/guide/advance/copy.html +82 -0
  259. package/docs/.island/dist/zh/guide/advance/extension.html +127 -0
  260. package/docs/.island/dist/zh/guide/advance/external-dependency.html +71 -0
  261. package/docs/.island/dist/zh/guide/advance/in-depth-about-build.html +148 -0
  262. package/docs/.island/dist/zh/guide/advance/in-depth-about-dev-command.html +53 -0
  263. package/docs/.island/dist/zh/guide/basic/before-getting-started.html +127 -0
  264. package/docs/.island/dist/zh/guide/basic/command-preview.html +100 -0
  265. package/docs/.island/dist/zh/guide/basic/modify-output-product.html +140 -0
  266. package/docs/.island/dist/zh/guide/basic/publish-your-project.html +92 -0
  267. package/docs/.island/dist/zh/guide/basic/test-your-project.html +72 -0
  268. package/docs/.island/dist/zh/guide/basic/use-micro-generator.html +65 -0
  269. package/docs/.island/dist/zh/guide/basic/using-storybook.html +114 -0
  270. package/docs/.island/dist/zh/guide/intro/getting-started.html +79 -0
  271. package/docs/.island/dist/zh/guide/intro/welcome.html +53 -0
  272. package/docs/.island/dist/zh/guide/intro/why-module-engineering-solution.html +49 -0
  273. package/docs/.island/dist/zh/index.html +42 -0
  274. package/docs/en/api/config/build-config.md +20 -10
  275. package/docs/en/api/config/build-preset.md +3 -2
  276. package/docs/en/api/config/design-system.md +623 -615
  277. package/docs/en/api/config/plugins.md +2 -2
  278. package/docs/en/api/config/testing.md +2 -1
  279. package/docs/en/api/plugin-api/plugin-hooks.md +1 -1
  280. package/docs/en/guide/advance/asset.mdx +1 -5
  281. package/docs/en/guide/advance/build-umd.mdx +6 -6
  282. package/docs/en/guide/advance/copy.md +5 -5
  283. package/docs/en/guide/advance/external-dependency.mdx +2 -2
  284. package/docs/en/guide/advance/in-depth-about-build.md +21 -20
  285. package/docs/en/guide/advance/in-depth-about-dev-command.md +3 -2
  286. package/docs/en/guide/advance/theme-config.mdx +2 -2
  287. package/docs/en/guide/basic/before-getting-started.md +17 -10
  288. package/docs/en/guide/basic/command-preview.md +4 -4
  289. package/docs/en/guide/basic/modify-output-product.md +65 -68
  290. package/docs/en/guide/basic/publish-your-project.md +4 -4
  291. package/docs/en/guide/basic/test-your-project.mdx +6 -6
  292. package/docs/en/guide/basic/use-micro-generator.md +13 -5
  293. package/docs/en/guide/basic/using-storybook.mdx +4 -14
  294. package/docs/en/guide/best-practices/components.mdx +103 -97
  295. package/docs/en/guide/intro/getting-started.md +3 -3
  296. package/docs/en/index.md +14 -17
  297. package/docs/en/plugins/guide/getting-started.mdx +4 -4
  298. package/docs/en/plugins/guide/plugin-object.mdx +5 -5
  299. package/docs/en/plugins/guide/setup-function.mdx +2 -2
  300. package/docs/zh/api/config/_category_.json +1 -1
  301. package/docs/zh/api/config/build-config.md +33 -10
  302. package/docs/zh/api/config/build-preset.md +3 -2
  303. package/docs/zh/api/config/design-system.md +2 -2
  304. package/docs/zh/api/config/plugins.md +3 -3
  305. package/docs/zh/api/config/testing.md +3 -2
  306. package/docs/zh/api/index.md +1 -0
  307. package/docs/zh/api/plugin-api/_category_.json +1 -1
  308. package/docs/zh/api/plugin-api/plugin-hooks.md +56 -55
  309. package/docs/zh/guide/advance/asset.mdx +1 -6
  310. package/docs/zh/guide/advance/build-umd.mdx +6 -6
  311. package/docs/zh/guide/advance/copy.md +5 -5
  312. package/docs/zh/guide/advance/external-dependency.mdx +3 -3
  313. package/docs/zh/guide/advance/in-depth-about-build.md +21 -20
  314. package/docs/zh/guide/advance/in-depth-about-dev-command.md +3 -2
  315. package/docs/zh/guide/advance/theme-config.mdx +2 -2
  316. package/docs/zh/guide/basic/before-getting-started.md +16 -9
  317. package/docs/zh/guide/basic/command-preview.md +4 -4
  318. package/docs/zh/guide/basic/modify-output-product.md +45 -47
  319. package/docs/zh/guide/basic/publish-your-project.md +4 -4
  320. package/docs/zh/guide/basic/test-your-project.mdx +6 -6
  321. package/docs/zh/guide/basic/use-micro-generator.md +10 -6
  322. package/docs/zh/guide/basic/using-storybook.mdx +12 -20
  323. package/docs/zh/guide/best-practices/components.mdx +10 -10
  324. package/docs/zh/guide/intro/getting-started.md +3 -3
  325. package/docs/zh/index.md +1 -1
  326. package/docs/zh/plugins/guide/getting-started.mdx +5 -5
  327. package/docs/zh/plugins/guide/plugin-object.mdx +5 -5
  328. package/docs/zh/plugins/guide/setup-function.mdx +2 -2
  329. package/modern.config.ts +15 -8
  330. package/package.json +4 -4
@@ -0,0 +1,3064 @@
1
+ "use strict";
2
+ (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["zh_guide_basic_modify-output-product"],{
3
+
4
+ /***/ "./docs/zh/guide/basic/modify-output-product.md":
5
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
+
7
+ __webpack_require__.r(__webpack_exports__);
8
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
+ /* harmony export */ "CH": function() { return /* binding */ CH; },
10
+ /* harmony export */ "chCodeConfig": function() { return /* binding */ chCodeConfig; },
11
+ /* harmony export */ "content": function() { return /* binding */ content; },
12
+ /* harmony export */ "frontmatter": function() { return /* binding */ frontmatter; },
13
+ /* harmony export */ "title": function() { return /* binding */ title; },
14
+ /* harmony export */ "toc": function() { return /* binding */ toc; }
15
+ /* harmony export */ });
16
+ /* 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");
17
+ /* harmony import */ var _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@code-hike+mdx@0.7.4_react@18.2.0/node_modules/@code-hike/mdx/dist/components.esm.mjs");
18
+ /*@jsxRuntime automatic @jsxImportSource react*/
19
+
20
+
21
+ const CH = {
22
+ annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
23
+ Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code
24
+ };
25
+ const chCodeConfig = {
26
+ "staticMediaQuery": "not screen, (max-width: 768px)",
27
+ "theme": {
28
+ "name": "nord",
29
+ "type": "dark",
30
+ "semanticHighlighting": true,
31
+ "colors": {
32
+ "focusBorder": "#3b4252",
33
+ "foreground": "#d8dee9",
34
+ "activityBar.background": "#2e3440",
35
+ "activityBar.dropBackground": "#3b4252",
36
+ "activityBar.foreground": "#d8dee9",
37
+ "activityBar.activeBorder": "#88c0d0",
38
+ "activityBar.activeBackground": "#3b4252",
39
+ "activityBarBadge.background": "#88c0d0",
40
+ "activityBarBadge.foreground": "#2e3440",
41
+ "badge.foreground": "#2e3440",
42
+ "badge.background": "#88c0d0",
43
+ "button.background": "#88c0d0ee",
44
+ "button.foreground": "#2e3440",
45
+ "button.hoverBackground": "#88c0d0",
46
+ "button.secondaryBackground": "#434c5e",
47
+ "button.secondaryForeground": "#d8dee9",
48
+ "button.secondaryHoverBackground": "#4c566a",
49
+ "charts.red": "#bf616a",
50
+ "charts.blue": "#81a1c1",
51
+ "charts.yellow": "#ebcb8b",
52
+ "charts.orange": "#d08770",
53
+ "charts.green": "#a3be8c",
54
+ "charts.purple": "#b48ead",
55
+ "charts.foreground": "#d8dee9",
56
+ "charts.lines": "#88c0d0",
57
+ "debugConsole.infoForeground": "#88c0d0",
58
+ "debugConsole.warningForeground": "#ebcb8b",
59
+ "debugConsole.errorForeground": "#bf616a",
60
+ "debugConsole.sourceForeground": "#616e88",
61
+ "debugConsoleInputIcon.foreground": "#81a1c1",
62
+ "debugExceptionWidget.background": "#4c566a",
63
+ "debugExceptionWidget.border": "#2e3440",
64
+ "debugToolBar.background": "#3b4252",
65
+ "descriptionForeground": "#d8dee9e6",
66
+ "diffEditor.insertedTextBackground": "#81a1c133",
67
+ "diffEditor.removedTextBackground": "#bf616a4d",
68
+ "dropdown.background": "#3b4252",
69
+ "dropdown.border": "#3b4252",
70
+ "dropdown.foreground": "#d8dee9",
71
+ "editorActiveLineNumber.foreground": "#d8dee9cc",
72
+ "editorCursor.foreground": "#d8dee9",
73
+ "editorHint.border": "#ebcb8b00",
74
+ "editorHint.foreground": "#ebcb8b",
75
+ "editorIndentGuide.background": "#434c5eb3",
76
+ "editorIndentGuide.activeBackground": "#4c566a",
77
+ "editorInlayHint.background": "#434c5e",
78
+ "editorInlayHint.foreground": "#d8dee9",
79
+ "editorLineNumber.foreground": "#4c566a",
80
+ "editorLineNumber.activeForeground": "#d8dee9",
81
+ "editorWhitespace.foreground": "#4c566ab3",
82
+ "editorWidget.background": "#2e3440",
83
+ "editorWidget.border": "#3b4252",
84
+ "editor.background": "#2e3440",
85
+ "editor.foreground": "#d8dee9",
86
+ "editor.hoverHighlightBackground": "#3b4252",
87
+ "editor.findMatchBackground": "#88c0d066",
88
+ "editor.findMatchHighlightBackground": "#88c0d033",
89
+ "editor.findRangeHighlightBackground": "#88c0d033",
90
+ "editor.lineHighlightBackground": "#3b4252",
91
+ "editor.lineHighlightBorder": "#3b4252",
92
+ "editor.inactiveSelectionBackground": "#434c5ecc",
93
+ "editor.inlineValuesBackground": "#4c566a",
94
+ "editor.inlineValuesForeground": "#eceff4",
95
+ "editor.selectionBackground": "#434c5ecc",
96
+ "editor.selectionHighlightBackground": "#434c5ecc",
97
+ "editor.rangeHighlightBackground": "#434c5e52",
98
+ "editor.wordHighlightBackground": "#81a1c166",
99
+ "editor.wordHighlightStrongBackground": "#81a1c199",
100
+ "editor.stackFrameHighlightBackground": "#5e81ac",
101
+ "editor.focusedStackFrameHighlightBackground": "#5e81ac",
102
+ "editorError.foreground": "#bf616a",
103
+ "editorError.border": "#bf616a00",
104
+ "editorWarning.foreground": "#ebcb8b",
105
+ "editorWarning.border": "#ebcb8b00",
106
+ "editorBracketMatch.background": "#2e344000",
107
+ "editorBracketMatch.border": "#88c0d0",
108
+ "editorBracketHighlight.foreground1": "#8fbcbb",
109
+ "editorBracketHighlight.foreground2": "#88c0d0",
110
+ "editorBracketHighlight.foreground3": "#81a1c1",
111
+ "editorBracketHighlight.foreground4": "#5e81ac",
112
+ "editorBracketHighlight.foreground5": "#8fbcbb",
113
+ "editorBracketHighlight.foreground6": "#88c0d0",
114
+ "editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
115
+ "editorCodeLens.foreground": "#4c566a",
116
+ "editorGroup.background": "#2e3440",
117
+ "editorGroup.border": "#3b425201",
118
+ "editorGroup.dropBackground": "#3b425299",
119
+ "editorGroupHeader.border": "#3b425200",
120
+ "editorGroupHeader.noTabsBackground": "#2e3440",
121
+ "editorGroupHeader.tabsBackground": "#2e3440",
122
+ "editorGroupHeader.tabsBorder": "#3b425200",
123
+ "editorGutter.background": "#2e3440",
124
+ "editorGutter.modifiedBackground": "#ebcb8b",
125
+ "editorGutter.addedBackground": "#a3be8c",
126
+ "editorGutter.deletedBackground": "#bf616a",
127
+ "editorHoverWidget.background": "#3b4252",
128
+ "editorHoverWidget.border": "#3b4252",
129
+ "editorLink.activeForeground": "#88c0d0",
130
+ "editorMarkerNavigation.background": "#5e81acc0",
131
+ "editorMarkerNavigationError.background": "#bf616ac0",
132
+ "editorMarkerNavigationWarning.background": "#ebcb8bc0",
133
+ "editorOverviewRuler.border": "#3b4252",
134
+ "editorOverviewRuler.currentContentForeground": "#3b4252",
135
+ "editorOverviewRuler.incomingContentForeground": "#3b4252",
136
+ "editorOverviewRuler.findMatchForeground": "#88c0d066",
137
+ "editorOverviewRuler.rangeHighlightForeground": "#88c0d066",
138
+ "editorOverviewRuler.selectionHighlightForeground": "#88c0d066",
139
+ "editorOverviewRuler.wordHighlightForeground": "#88c0d066",
140
+ "editorOverviewRuler.wordHighlightStrongForeground": "#88c0d066",
141
+ "editorOverviewRuler.modifiedForeground": "#ebcb8b",
142
+ "editorOverviewRuler.addedForeground": "#a3be8c",
143
+ "editorOverviewRuler.deletedForeground": "#bf616a",
144
+ "editorOverviewRuler.errorForeground": "#bf616a",
145
+ "editorOverviewRuler.warningForeground": "#ebcb8b",
146
+ "editorOverviewRuler.infoForeground": "#81a1c1",
147
+ "editorRuler.foreground": "#434c5e",
148
+ "editorSuggestWidget.background": "#2e3440",
149
+ "editorSuggestWidget.border": "#3b4252",
150
+ "editorSuggestWidget.foreground": "#d8dee9",
151
+ "editorSuggestWidget.focusHighlightForeground": "#88c0d0",
152
+ "editorSuggestWidget.highlightForeground": "#88c0d0",
153
+ "editorSuggestWidget.selectedBackground": "#434c5e",
154
+ "editorSuggestWidget.selectedForeground": "#d8dee9",
155
+ "extensionButton.prominentForeground": "#d8dee9",
156
+ "extensionButton.prominentBackground": "#434c5e",
157
+ "extensionButton.prominentHoverBackground": "#4c566a",
158
+ "errorForeground": "#bf616a",
159
+ "gitDecoration.modifiedResourceForeground": "#ebcb8b",
160
+ "gitDecoration.deletedResourceForeground": "#bf616a",
161
+ "gitDecoration.untrackedResourceForeground": "#a3be8c",
162
+ "gitDecoration.ignoredResourceForeground": "#d8dee966",
163
+ "gitDecoration.conflictingResourceForeground": "#5e81ac",
164
+ "gitDecoration.submoduleResourceForeground": "#8fbcbb",
165
+ "gitDecoration.stageDeletedResourceForeground": "#bf616a",
166
+ "gitDecoration.stageModifiedResourceForeground": "#ebcb8b",
167
+ "input.background": "#3b4252",
168
+ "input.foreground": "#d8dee9",
169
+ "input.placeholderForeground": "#d8dee999",
170
+ "input.border": "#3b4252",
171
+ "inputOption.activeBackground": "#5e81ac",
172
+ "inputOption.activeBorder": "#5e81ac",
173
+ "inputOption.activeForeground": "#eceff4",
174
+ "inputValidation.errorBackground": "#bf616a",
175
+ "inputValidation.errorBorder": "#bf616a",
176
+ "inputValidation.infoBackground": "#81a1c1",
177
+ "inputValidation.infoBorder": "#81a1c1",
178
+ "inputValidation.warningBackground": "#d08770",
179
+ "inputValidation.warningBorder": "#d08770",
180
+ "keybindingLabel.background": "#4c566a",
181
+ "keybindingLabel.border": "#4c566a",
182
+ "keybindingLabel.bottomBorder": "#4c566a",
183
+ "keybindingLabel.foreground": "#d8dee9",
184
+ "list.activeSelectionBackground": "#88c0d0",
185
+ "list.activeSelectionForeground": "#2e3440",
186
+ "list.inactiveSelectionBackground": "#434c5e",
187
+ "list.inactiveSelectionForeground": "#d8dee9",
188
+ "list.inactiveFocusBackground": "#434c5ecc",
189
+ "list.hoverForeground": "#eceff4",
190
+ "list.focusForeground": "#d8dee9",
191
+ "list.focusBackground": "#88c0d099",
192
+ "list.focusHighlightForeground": "#eceff4",
193
+ "list.hoverBackground": "#3b4252",
194
+ "list.dropBackground": "#88c0d099",
195
+ "list.highlightForeground": "#88c0d0",
196
+ "list.errorForeground": "#bf616a",
197
+ "list.warningForeground": "#ebcb8b",
198
+ "merge.currentHeaderBackground": "#81a1c166",
199
+ "merge.currentContentBackground": "#81a1c14d",
200
+ "merge.incomingHeaderBackground": "#8fbcbb66",
201
+ "merge.incomingContentBackground": "#8fbcbb4d",
202
+ "merge.border": "#3b425200",
203
+ "minimap.background": "#2e3440",
204
+ "minimap.errorHighlight": "#bf616acc",
205
+ "minimap.findMatchHighlight": "#88c0d0",
206
+ "minimap.selectionHighlight": "#88c0d0cc",
207
+ "minimap.warningHighlight": "#ebcb8bcc",
208
+ "minimapGutter.addedBackground": "#a3be8c",
209
+ "minimapGutter.deletedBackground": "#bf616a",
210
+ "minimapGutter.modifiedBackground": "#ebcb8b",
211
+ "minimapSlider.activeBackground": "#434c5eaa",
212
+ "minimapSlider.background": "#434c5e99",
213
+ "minimapSlider.hoverBackground": "#434c5eaa",
214
+ "notification.background": "#3b4252",
215
+ "notification.buttonBackground": "#434c5e",
216
+ "notification.buttonForeground": "#d8dee9",
217
+ "notification.buttonHoverBackground": "#4c566a",
218
+ "notification.errorBackground": "#bf616a",
219
+ "notification.errorForeground": "#2e3440",
220
+ "notification.foreground": "#d8dee9",
221
+ "notification.infoBackground": "#88c0d0",
222
+ "notification.infoForeground": "#2e3440",
223
+ "notification.warningBackground": "#ebcb8b",
224
+ "notification.warningForeground": "#2e3440",
225
+ "notificationCenter.border": "#3b425200",
226
+ "notificationCenterHeader.background": "#2e3440",
227
+ "notificationCenterHeader.foreground": "#88c0d0",
228
+ "notificationLink.foreground": "#88c0d0",
229
+ "notifications.background": "#3b4252",
230
+ "notifications.border": "#2e3440",
231
+ "notifications.foreground": "#d8dee9",
232
+ "notificationToast.border": "#3b425200",
233
+ "panel.background": "#2e3440",
234
+ "panel.border": "#3b4252",
235
+ "panelTitle.activeBorder": "#88c0d000",
236
+ "panelTitle.activeForeground": "#88c0d0",
237
+ "panelTitle.inactiveForeground": "#d8dee9",
238
+ "peekView.border": "#4c566a",
239
+ "peekViewEditor.background": "#2e3440",
240
+ "peekViewEditorGutter.background": "#2e3440",
241
+ "peekViewEditor.matchHighlightBackground": "#88c0d04d",
242
+ "peekViewResult.background": "#2e3440",
243
+ "peekViewResult.fileForeground": "#88c0d0",
244
+ "peekViewResult.lineForeground": "#d8dee966",
245
+ "peekViewResult.matchHighlightBackground": "#88c0d0cc",
246
+ "peekViewResult.selectionBackground": "#434c5e",
247
+ "peekViewResult.selectionForeground": "#d8dee9",
248
+ "peekViewTitle.background": "#3b4252",
249
+ "peekViewTitleDescription.foreground": "#d8dee9",
250
+ "peekViewTitleLabel.foreground": "#88c0d0",
251
+ "pickerGroup.border": "#3b4252",
252
+ "pickerGroup.foreground": "#88c0d0",
253
+ "progressBar.background": "#88c0d0",
254
+ "quickInputList.focusBackground": "#88c0d0",
255
+ "quickInputList.focusForeground": "#2e3440",
256
+ "sash.hoverBorder": "#88c0d0",
257
+ "scrollbar.shadow": "#00000066",
258
+ "scrollbarSlider.activeBackground": "#434c5eaa",
259
+ "scrollbarSlider.background": "#434c5e99",
260
+ "scrollbarSlider.hoverBackground": "#434c5eaa",
261
+ "selection.background": "#88c0d099",
262
+ "sideBar.background": "#2e3440",
263
+ "sideBar.foreground": "#d8dee9",
264
+ "sideBar.border": "#3b4252",
265
+ "sideBarSectionHeader.background": "#3b4252",
266
+ "sideBarSectionHeader.foreground": "#d8dee9",
267
+ "sideBarTitle.foreground": "#d8dee9",
268
+ "statusBar.background": "#3b4252",
269
+ "statusBar.debuggingBackground": "#5e81ac",
270
+ "statusBar.debuggingForeground": "#d8dee9",
271
+ "statusBar.noFolderForeground": "#d8dee9",
272
+ "statusBar.noFolderBackground": "#3b4252",
273
+ "statusBar.foreground": "#d8dee9",
274
+ "statusBarItem.activeBackground": "#4c566a",
275
+ "statusBarItem.hoverBackground": "#434c5e",
276
+ "statusBarItem.prominentBackground": "#3b4252",
277
+ "statusBarItem.prominentHoverBackground": "#434c5e",
278
+ "statusBarItem.errorBackground": "#3b4252",
279
+ "statusBarItem.errorForeground": "#bf616a",
280
+ "statusBarItem.warningBackground": "#ebcb8b",
281
+ "statusBarItem.warningForeground": "#2e3440",
282
+ "statusBar.border": "#3b425200",
283
+ "tab.activeBackground": "#3b4252",
284
+ "tab.activeForeground": "#d8dee9",
285
+ "tab.border": "#3b425200",
286
+ "tab.activeBorder": "#88c0d000",
287
+ "tab.unfocusedActiveBorder": "#88c0d000",
288
+ "tab.inactiveBackground": "#2e3440",
289
+ "tab.inactiveForeground": "#d8dee966",
290
+ "tab.unfocusedActiveForeground": "#d8dee999",
291
+ "tab.unfocusedInactiveForeground": "#d8dee966",
292
+ "tab.hoverBackground": "#3b4252cc",
293
+ "tab.unfocusedHoverBackground": "#3b4252b3",
294
+ "tab.hoverBorder": "#88c0d000",
295
+ "tab.unfocusedHoverBorder": "#88c0d000",
296
+ "tab.activeBorderTop": "#88c0d000",
297
+ "tab.unfocusedActiveBorderTop": "#88c0d000",
298
+ "tab.lastPinnedBorder": "#4c566a",
299
+ "terminal.background": "#2e3440",
300
+ "terminal.foreground": "#d8dee9",
301
+ "terminal.ansiBlack": "#3b4252",
302
+ "terminal.ansiRed": "#bf616a",
303
+ "terminal.ansiGreen": "#a3be8c",
304
+ "terminal.ansiYellow": "#ebcb8b",
305
+ "terminal.ansiBlue": "#81a1c1",
306
+ "terminal.ansiMagenta": "#b48ead",
307
+ "terminal.ansiCyan": "#88c0d0",
308
+ "terminal.ansiWhite": "#e5e9f0",
309
+ "terminal.ansiBrightBlack": "#4c566a",
310
+ "terminal.ansiBrightRed": "#bf616a",
311
+ "terminal.ansiBrightGreen": "#a3be8c",
312
+ "terminal.ansiBrightYellow": "#ebcb8b",
313
+ "terminal.ansiBrightBlue": "#81a1c1",
314
+ "terminal.ansiBrightMagenta": "#b48ead",
315
+ "terminal.ansiBrightCyan": "#8fbcbb",
316
+ "terminal.ansiBrightWhite": "#eceff4",
317
+ "terminal.tab.activeBorder": "#88c0d0",
318
+ "textBlockQuote.background": "#3b4252",
319
+ "textBlockQuote.border": "#81a1c1",
320
+ "textCodeBlock.background": "#4c566a",
321
+ "textLink.activeForeground": "#88c0d0",
322
+ "textLink.foreground": "#88c0d0",
323
+ "textPreformat.foreground": "#8fbcbb",
324
+ "textSeparator.foreground": "#eceff4",
325
+ "titleBar.activeBackground": "#2e3440",
326
+ "titleBar.activeForeground": "#d8dee9",
327
+ "titleBar.border": "#2e344000",
328
+ "titleBar.inactiveBackground": "#2e3440",
329
+ "titleBar.inactiveForeground": "#d8dee966",
330
+ "tree.indentGuidesStroke": "#616e88",
331
+ "walkThrough.embeddedEditorBackground": "#2e3440",
332
+ "welcomePage.buttonBackground": "#434c5e",
333
+ "welcomePage.buttonHoverBackground": "#4c566a",
334
+ "widget.shadow": "#00000066"
335
+ },
336
+ "tokenColors": [{
337
+ "settings": {
338
+ "foreground": "#d8dee9ff",
339
+ "background": "#2e3440ff"
340
+ }
341
+ }, {
342
+ "scope": "emphasis",
343
+ "settings": {
344
+ "fontStyle": "italic"
345
+ }
346
+ }, {
347
+ "scope": "strong",
348
+ "settings": {
349
+ "fontStyle": "bold"
350
+ }
351
+ }, {
352
+ "name": "Comment",
353
+ "scope": "comment",
354
+ "settings": {
355
+ "foreground": "#616E88"
356
+ }
357
+ }, {
358
+ "name": "Constant Character",
359
+ "scope": "constant.character",
360
+ "settings": {
361
+ "foreground": "#EBCB8B"
362
+ }
363
+ }, {
364
+ "name": "Constant Character Escape",
365
+ "scope": "constant.character.escape",
366
+ "settings": {
367
+ "foreground": "#EBCB8B"
368
+ }
369
+ }, {
370
+ "name": "Constant Language",
371
+ "scope": "constant.language",
372
+ "settings": {
373
+ "foreground": "#81A1C1"
374
+ }
375
+ }, {
376
+ "name": "Constant Numeric",
377
+ "scope": "constant.numeric",
378
+ "settings": {
379
+ "foreground": "#B48EAD"
380
+ }
381
+ }, {
382
+ "name": "Constant Regexp",
383
+ "scope": "constant.regexp",
384
+ "settings": {
385
+ "foreground": "#EBCB8B"
386
+ }
387
+ }, {
388
+ "name": "Entity Name Class/Type",
389
+ "scope": ["entity.name.class", "entity.name.type.class"],
390
+ "settings": {
391
+ "foreground": "#8FBCBB"
392
+ }
393
+ }, {
394
+ "name": "Entity Name Function",
395
+ "scope": "entity.name.function",
396
+ "settings": {
397
+ "foreground": "#88C0D0"
398
+ }
399
+ }, {
400
+ "name": "Entity Name Tag",
401
+ "scope": "entity.name.tag",
402
+ "settings": {
403
+ "foreground": "#81A1C1"
404
+ }
405
+ }, {
406
+ "name": "Entity Other Attribute Name",
407
+ "scope": "entity.other.attribute-name",
408
+ "settings": {
409
+ "foreground": "#8FBCBB"
410
+ }
411
+ }, {
412
+ "name": "Entity Other Inherited Class",
413
+ "scope": "entity.other.inherited-class",
414
+ "settings": {
415
+ "fontStyle": "bold",
416
+ "foreground": "#8FBCBB"
417
+ }
418
+ }, {
419
+ "name": "Invalid Deprecated",
420
+ "scope": "invalid.deprecated",
421
+ "settings": {
422
+ "foreground": "#D8DEE9",
423
+ "background": "#EBCB8B"
424
+ }
425
+ }, {
426
+ "name": "Invalid Illegal",
427
+ "scope": "invalid.illegal",
428
+ "settings": {
429
+ "foreground": "#D8DEE9",
430
+ "background": "#BF616A"
431
+ }
432
+ }, {
433
+ "name": "Keyword",
434
+ "scope": "keyword",
435
+ "settings": {
436
+ "foreground": "#81A1C1"
437
+ }
438
+ }, {
439
+ "name": "Keyword Operator",
440
+ "scope": "keyword.operator",
441
+ "settings": {
442
+ "foreground": "#81A1C1"
443
+ }
444
+ }, {
445
+ "name": "Keyword Other New",
446
+ "scope": "keyword.other.new",
447
+ "settings": {
448
+ "foreground": "#81A1C1"
449
+ }
450
+ }, {
451
+ "name": "Markup Bold",
452
+ "scope": "markup.bold",
453
+ "settings": {
454
+ "fontStyle": "bold"
455
+ }
456
+ }, {
457
+ "name": "Markup Changed",
458
+ "scope": "markup.changed",
459
+ "settings": {
460
+ "foreground": "#EBCB8B"
461
+ }
462
+ }, {
463
+ "name": "Markup Deleted",
464
+ "scope": "markup.deleted",
465
+ "settings": {
466
+ "foreground": "#BF616A"
467
+ }
468
+ }, {
469
+ "name": "Markup Inserted",
470
+ "scope": "markup.inserted",
471
+ "settings": {
472
+ "foreground": "#A3BE8C"
473
+ }
474
+ }, {
475
+ "name": "Meta Preprocessor",
476
+ "scope": "meta.preprocessor",
477
+ "settings": {
478
+ "foreground": "#5E81AC"
479
+ }
480
+ }, {
481
+ "name": "Punctuation",
482
+ "scope": "punctuation",
483
+ "settings": {
484
+ "foreground": "#ECEFF4"
485
+ }
486
+ }, {
487
+ "name": "Punctuation Definition Parameters",
488
+ "scope": ["punctuation.definition.method-parameters", "punctuation.definition.function-parameters", "punctuation.definition.parameters"],
489
+ "settings": {
490
+ "foreground": "#ECEFF4"
491
+ }
492
+ }, {
493
+ "name": "Punctuation Definition Tag",
494
+ "scope": "punctuation.definition.tag",
495
+ "settings": {
496
+ "foreground": "#81A1C1"
497
+ }
498
+ }, {
499
+ "name": "Punctuation Definition Comment",
500
+ "scope": ["punctuation.definition.comment", "punctuation.end.definition.comment", "punctuation.start.definition.comment"],
501
+ "settings": {
502
+ "foreground": "#616E88"
503
+ }
504
+ }, {
505
+ "name": "Punctuation Section",
506
+ "scope": "punctuation.section",
507
+ "settings": {
508
+ "foreground": "#ECEFF4"
509
+ }
510
+ }, {
511
+ "name": "Punctuation Section Embedded",
512
+ "scope": ["punctuation.section.embedded.begin", "punctuation.section.embedded.end"],
513
+ "settings": {
514
+ "foreground": "#81A1C1"
515
+ }
516
+ }, {
517
+ "name": "Punctuation Terminator",
518
+ "scope": "punctuation.terminator",
519
+ "settings": {
520
+ "foreground": "#81A1C1"
521
+ }
522
+ }, {
523
+ "name": "Punctuation Variable",
524
+ "scope": "punctuation.definition.variable",
525
+ "settings": {
526
+ "foreground": "#81A1C1"
527
+ }
528
+ }, {
529
+ "name": "Storage",
530
+ "scope": "storage",
531
+ "settings": {
532
+ "foreground": "#81A1C1"
533
+ }
534
+ }, {
535
+ "name": "String",
536
+ "scope": "string",
537
+ "settings": {
538
+ "foreground": "#A3BE8C"
539
+ }
540
+ }, {
541
+ "name": "String Regexp",
542
+ "scope": "string.regexp",
543
+ "settings": {
544
+ "foreground": "#EBCB8B"
545
+ }
546
+ }, {
547
+ "name": "Support Class",
548
+ "scope": "support.class",
549
+ "settings": {
550
+ "foreground": "#8FBCBB"
551
+ }
552
+ }, {
553
+ "name": "Support Constant",
554
+ "scope": "support.constant",
555
+ "settings": {
556
+ "foreground": "#81A1C1"
557
+ }
558
+ }, {
559
+ "name": "Support Function",
560
+ "scope": "support.function",
561
+ "settings": {
562
+ "foreground": "#88C0D0"
563
+ }
564
+ }, {
565
+ "name": "Support Function Construct",
566
+ "scope": "support.function.construct",
567
+ "settings": {
568
+ "foreground": "#81A1C1"
569
+ }
570
+ }, {
571
+ "name": "Support Type",
572
+ "scope": "support.type",
573
+ "settings": {
574
+ "foreground": "#8FBCBB"
575
+ }
576
+ }, {
577
+ "name": "Support Type Exception",
578
+ "scope": "support.type.exception",
579
+ "settings": {
580
+ "foreground": "#8FBCBB"
581
+ }
582
+ }, {
583
+ "name": "Token Debug",
584
+ "scope": "token.debug-token",
585
+ "settings": {
586
+ "foreground": "#b48ead"
587
+ }
588
+ }, {
589
+ "name": "Token Error",
590
+ "scope": "token.error-token",
591
+ "settings": {
592
+ "foreground": "#bf616a"
593
+ }
594
+ }, {
595
+ "name": "Token Info",
596
+ "scope": "token.info-token",
597
+ "settings": {
598
+ "foreground": "#88c0d0"
599
+ }
600
+ }, {
601
+ "name": "Token Warning",
602
+ "scope": "token.warn-token",
603
+ "settings": {
604
+ "foreground": "#ebcb8b"
605
+ }
606
+ }, {
607
+ "name": "Variable",
608
+ "scope": "variable.other",
609
+ "settings": {
610
+ "foreground": "#D8DEE9"
611
+ }
612
+ }, {
613
+ "name": "Variable Language",
614
+ "scope": "variable.language",
615
+ "settings": {
616
+ "foreground": "#81A1C1"
617
+ }
618
+ }, {
619
+ "name": "Variable Parameter",
620
+ "scope": "variable.parameter",
621
+ "settings": {
622
+ "foreground": "#D8DEE9"
623
+ }
624
+ }, {
625
+ "name": "[C/CPP] Punctuation Separator Pointer-Access",
626
+ "scope": "punctuation.separator.pointer-access.c",
627
+ "settings": {
628
+ "foreground": "#81A1C1"
629
+ }
630
+ }, {
631
+ "name": "[C/CPP] Meta Preprocessor Include",
632
+ "scope": ["source.c meta.preprocessor.include", "source.c string.quoted.other.lt-gt.include"],
633
+ "settings": {
634
+ "foreground": "#8FBCBB"
635
+ }
636
+ }, {
637
+ "name": "[C/CPP] Conditional Directive",
638
+ "scope": ["source.cpp keyword.control.directive.conditional", "source.cpp punctuation.definition.directive", "source.c keyword.control.directive.conditional", "source.c punctuation.definition.directive"],
639
+ "settings": {
640
+ "foreground": "#5E81AC",
641
+ "fontStyle": "bold"
642
+ }
643
+ }, {
644
+ "name": "[CSS] Constant Other Color RGB Value",
645
+ "scope": "source.css constant.other.color.rgb-value",
646
+ "settings": {
647
+ "foreground": "#B48EAD"
648
+ }
649
+ }, {
650
+ "name": "[CSS](Function) Meta Property-Value",
651
+ "scope": "source.css meta.property-value",
652
+ "settings": {
653
+ "foreground": "#88C0D0"
654
+ }
655
+ }, {
656
+ "name": "[CSS] Media Queries",
657
+ "scope": ["source.css keyword.control.at-rule.media", "source.css keyword.control.at-rule.media punctuation.definition.keyword"],
658
+ "settings": {
659
+ "foreground": "#D08770"
660
+ }
661
+ }, {
662
+ "name": "[CSS] Punctuation Definition Keyword",
663
+ "scope": "source.css punctuation.definition.keyword",
664
+ "settings": {
665
+ "foreground": "#81A1C1"
666
+ }
667
+ }, {
668
+ "name": "[CSS] Support Type Property Name",
669
+ "scope": "source.css support.type.property-name",
670
+ "settings": {
671
+ "foreground": "#D8DEE9"
672
+ }
673
+ }, {
674
+ "name": "[diff] Meta Range Context",
675
+ "scope": "source.diff meta.diff.range.context",
676
+ "settings": {
677
+ "foreground": "#8FBCBB"
678
+ }
679
+ }, {
680
+ "name": "[diff] Meta Header From-File",
681
+ "scope": "source.diff meta.diff.header.from-file",
682
+ "settings": {
683
+ "foreground": "#8FBCBB"
684
+ }
685
+ }, {
686
+ "name": "[diff] Punctuation Definition From-File",
687
+ "scope": "source.diff punctuation.definition.from-file",
688
+ "settings": {
689
+ "foreground": "#8FBCBB"
690
+ }
691
+ }, {
692
+ "name": "[diff] Punctuation Definition Range",
693
+ "scope": "source.diff punctuation.definition.range",
694
+ "settings": {
695
+ "foreground": "#8FBCBB"
696
+ }
697
+ }, {
698
+ "name": "[diff] Punctuation Definition Separator",
699
+ "scope": "source.diff punctuation.definition.separator",
700
+ "settings": {
701
+ "foreground": "#81A1C1"
702
+ }
703
+ }, {
704
+ "name": "[Elixir](JakeBecker.elixir-ls) module names",
705
+ "scope": "entity.name.type.module.elixir",
706
+ "settings": {
707
+ "foreground": "#8FBCBB"
708
+ }
709
+ }, {
710
+ "name": "[Elixir](JakeBecker.elixir-ls) module attributes",
711
+ "scope": "variable.other.readwrite.module.elixir",
712
+ "settings": {
713
+ "foreground": "#D8DEE9",
714
+ "fontStyle": "bold"
715
+ }
716
+ }, {
717
+ "name": "[Elixir](JakeBecker.elixir-ls) atoms",
718
+ "scope": "constant.other.symbol.elixir",
719
+ "settings": {
720
+ "foreground": "#D8DEE9",
721
+ "fontStyle": "bold"
722
+ }
723
+ }, {
724
+ "name": "[Elixir](JakeBecker.elixir-ls) modules",
725
+ "scope": "variable.other.constant.elixir",
726
+ "settings": {
727
+ "foreground": "#8FBCBB"
728
+ }
729
+ }, {
730
+ "name": "[Go] String Format Placeholder",
731
+ "scope": "source.go constant.other.placeholder.go",
732
+ "settings": {
733
+ "foreground": "#EBCB8B"
734
+ }
735
+ }, {
736
+ "name": "[Java](JavaDoc) Comment Block Documentation HTML Entities",
737
+ "scope": "source.java comment.block.documentation.javadoc punctuation.definition.entity.html",
738
+ "settings": {
739
+ "foreground": "#81A1C1"
740
+ }
741
+ }, {
742
+ "name": "[Java](JavaDoc) Constant Other",
743
+ "scope": "source.java constant.other",
744
+ "settings": {
745
+ "foreground": "#D8DEE9"
746
+ }
747
+ }, {
748
+ "name": "[Java](JavaDoc) Keyword Other Documentation",
749
+ "scope": "source.java keyword.other.documentation",
750
+ "settings": {
751
+ "foreground": "#8FBCBB"
752
+ }
753
+ }, {
754
+ "name": "[Java](JavaDoc) Keyword Other Documentation Author",
755
+ "scope": "source.java keyword.other.documentation.author.javadoc",
756
+ "settings": {
757
+ "foreground": "#8FBCBB"
758
+ }
759
+ }, {
760
+ "name": "[Java](JavaDoc) Keyword Other Documentation Directive/Custom",
761
+ "scope": ["source.java keyword.other.documentation.directive", "source.java keyword.other.documentation.custom"],
762
+ "settings": {
763
+ "foreground": "#8FBCBB"
764
+ }
765
+ }, {
766
+ "name": "[Java](JavaDoc) Keyword Other Documentation See",
767
+ "scope": "source.java keyword.other.documentation.see.javadoc",
768
+ "settings": {
769
+ "foreground": "#8FBCBB"
770
+ }
771
+ }, {
772
+ "name": "[Java] Meta Method-Call",
773
+ "scope": "source.java meta.method-call meta.method",
774
+ "settings": {
775
+ "foreground": "#88C0D0"
776
+ }
777
+ }, {
778
+ "name": "[Java](JavaDoc) Meta Tag Template Link",
779
+ "scope": ["source.java meta.tag.template.link.javadoc", "source.java string.other.link.title.javadoc"],
780
+ "settings": {
781
+ "foreground": "#8FBCBB"
782
+ }
783
+ }, {
784
+ "name": "[Java](JavaDoc) Meta Tag Template Value",
785
+ "scope": "source.java meta.tag.template.value.javadoc",
786
+ "settings": {
787
+ "foreground": "#88C0D0"
788
+ }
789
+ }, {
790
+ "name": "[Java](JavaDoc) Punctuation Definition Keyword",
791
+ "scope": "source.java punctuation.definition.keyword.javadoc",
792
+ "settings": {
793
+ "foreground": "#8FBCBB"
794
+ }
795
+ }, {
796
+ "name": "[Java](JavaDoc) Punctuation Definition Tag",
797
+ "scope": ["source.java punctuation.definition.tag.begin.javadoc", "source.java punctuation.definition.tag.end.javadoc"],
798
+ "settings": {
799
+ "foreground": "#616E88"
800
+ }
801
+ }, {
802
+ "name": "[Java] Storage Modifier Import",
803
+ "scope": "source.java storage.modifier.import",
804
+ "settings": {
805
+ "foreground": "#8FBCBB"
806
+ }
807
+ }, {
808
+ "name": "[Java] Storage Modifier Package",
809
+ "scope": "source.java storage.modifier.package",
810
+ "settings": {
811
+ "foreground": "#8FBCBB"
812
+ }
813
+ }, {
814
+ "name": "[Java] Storage Type",
815
+ "scope": "source.java storage.type",
816
+ "settings": {
817
+ "foreground": "#8FBCBB"
818
+ }
819
+ }, {
820
+ "name": "[Java] Storage Type Annotation",
821
+ "scope": "source.java storage.type.annotation",
822
+ "settings": {
823
+ "foreground": "#D08770"
824
+ }
825
+ }, {
826
+ "name": "[Java] Storage Type Generic",
827
+ "scope": "source.java storage.type.generic",
828
+ "settings": {
829
+ "foreground": "#8FBCBB"
830
+ }
831
+ }, {
832
+ "name": "[Java] Storage Type Primitive",
833
+ "scope": "source.java storage.type.primitive",
834
+ "settings": {
835
+ "foreground": "#81A1C1"
836
+ }
837
+ }, {
838
+ "name": "[JavaScript] Decorator",
839
+ "scope": ["source.js punctuation.decorator", "source.js meta.decorator variable.other.readwrite", "source.js meta.decorator entity.name.function"],
840
+ "settings": {
841
+ "foreground": "#D08770"
842
+ }
843
+ }, {
844
+ "name": "[JavaScript] Meta Object-Literal Key",
845
+ "scope": "source.js meta.object-literal.key",
846
+ "settings": {
847
+ "foreground": "#88C0D0"
848
+ }
849
+ }, {
850
+ "name": "[JavaScript](JSDoc) Storage Type Class",
851
+ "scope": "source.js storage.type.class.jsdoc",
852
+ "settings": {
853
+ "foreground": "#8FBCBB"
854
+ }
855
+ }, {
856
+ "name": "[JavaScript] String Template Literals Punctuation",
857
+ "scope": ["source.js string.quoted.template punctuation.quasi.element.begin", "source.js string.quoted.template punctuation.quasi.element.end", "source.js string.template punctuation.definition.template-expression"],
858
+ "settings": {
859
+ "foreground": "#81A1C1"
860
+ }
861
+ }, {
862
+ "name": "[JavaScript] Interpolated String Template Punctuation Functions",
863
+ "scope": "source.js string.quoted.template meta.method-call.with-arguments",
864
+ "settings": {
865
+ "foreground": "#ECEFF4"
866
+ }
867
+ }, {
868
+ "name": "[JavaScript] String Template Literal Variable",
869
+ "scope": ["source.js string.template meta.template.expression support.variable.property", "source.js string.template meta.template.expression variable.other.object"],
870
+ "settings": {
871
+ "foreground": "#D8DEE9"
872
+ }
873
+ }, {
874
+ "name": "[JavaScript] Support Type Primitive",
875
+ "scope": "source.js support.type.primitive",
876
+ "settings": {
877
+ "foreground": "#81A1C1"
878
+ }
879
+ }, {
880
+ "name": "[JavaScript] Variable Other Object",
881
+ "scope": "source.js variable.other.object",
882
+ "settings": {
883
+ "foreground": "#D8DEE9"
884
+ }
885
+ }, {
886
+ "name": "[JavaScript] Variable Other Read-Write Alias",
887
+ "scope": "source.js variable.other.readwrite.alias",
888
+ "settings": {
889
+ "foreground": "#8FBCBB"
890
+ }
891
+ }, {
892
+ "name": "[JavaScript] Parentheses in Template Strings",
893
+ "scope": ["source.js meta.embedded.line meta.brace.square", "source.js meta.embedded.line meta.brace.round", "source.js string.quoted.template meta.brace.square", "source.js string.quoted.template meta.brace.round"],
894
+ "settings": {
895
+ "foreground": "#ECEFF4"
896
+ }
897
+ }, {
898
+ "name": "[HTML] Constant Character Entity",
899
+ "scope": "text.html.basic constant.character.entity.html",
900
+ "settings": {
901
+ "foreground": "#EBCB8B"
902
+ }
903
+ }, {
904
+ "name": "[HTML] Constant Other Inline-Data",
905
+ "scope": "text.html.basic constant.other.inline-data",
906
+ "settings": {
907
+ "foreground": "#D08770",
908
+ "fontStyle": "italic"
909
+ }
910
+ }, {
911
+ "name": "[HTML] Meta Tag SGML Doctype",
912
+ "scope": "text.html.basic meta.tag.sgml.doctype",
913
+ "settings": {
914
+ "foreground": "#5E81AC"
915
+ }
916
+ }, {
917
+ "name": "[HTML] Punctuation Definition Entity",
918
+ "scope": "text.html.basic punctuation.definition.entity",
919
+ "settings": {
920
+ "foreground": "#81A1C1"
921
+ }
922
+ }, {
923
+ "name": "[INI] Entity Name Section Group-Title",
924
+ "scope": "source.properties entity.name.section.group-title.ini",
925
+ "settings": {
926
+ "foreground": "#88C0D0"
927
+ }
928
+ }, {
929
+ "name": "[INI] Punctuation Separator Key-Value",
930
+ "scope": "source.properties punctuation.separator.key-value.ini",
931
+ "settings": {
932
+ "foreground": "#81A1C1"
933
+ }
934
+ }, {
935
+ "name": "[Markdown] Markup Fenced Code Block",
936
+ "scope": ["text.html.markdown markup.fenced_code.block", "text.html.markdown markup.fenced_code.block punctuation.definition"],
937
+ "settings": {
938
+ "foreground": "#8FBCBB"
939
+ }
940
+ }, {
941
+ "name": "[Markdown] Markup Heading",
942
+ "scope": "markup.heading",
943
+ "settings": {
944
+ "foreground": "#88C0D0"
945
+ }
946
+ }, {
947
+ "name": "[Markdown] Markup Inline",
948
+ "scope": ["text.html.markdown markup.inline.raw", "text.html.markdown markup.inline.raw punctuation.definition.raw"],
949
+ "settings": {
950
+ "foreground": "#8FBCBB"
951
+ }
952
+ }, {
953
+ "name": "[Markdown] Markup Italic",
954
+ "scope": "text.html.markdown markup.italic",
955
+ "settings": {
956
+ "fontStyle": "italic"
957
+ }
958
+ }, {
959
+ "name": "[Markdown] Markup Link",
960
+ "scope": "text.html.markdown markup.underline.link",
961
+ "settings": {
962
+ "fontStyle": "underline"
963
+ }
964
+ }, {
965
+ "name": "[Markdown] Markup List Numbered/Unnumbered",
966
+ "scope": "text.html.markdown beginning.punctuation.definition.list",
967
+ "settings": {
968
+ "foreground": "#81A1C1"
969
+ }
970
+ }, {
971
+ "name": "[Markdown] Markup Quote Punctuation Definition",
972
+ "scope": "text.html.markdown beginning.punctuation.definition.quote",
973
+ "settings": {
974
+ "foreground": "#8FBCBB"
975
+ }
976
+ }, {
977
+ "name": "[Markdown] Markup Quote Punctuation Definition",
978
+ "scope": "text.html.markdown markup.quote",
979
+ "settings": {
980
+ "foreground": "#616E88"
981
+ }
982
+ }, {
983
+ "name": "[Markdown] Markup Math Constant",
984
+ "scope": "text.html.markdown constant.character.math.tex",
985
+ "settings": {
986
+ "foreground": "#81A1C1"
987
+ }
988
+ }, {
989
+ "name": "[Markdown] Markup Math Definition Marker",
990
+ "scope": ["text.html.markdown punctuation.definition.math.begin", "text.html.markdown punctuation.definition.math.end"],
991
+ "settings": {
992
+ "foreground": "#5E81AC"
993
+ }
994
+ }, {
995
+ "name": "[Markdown] Markup Math Function Definition Marker",
996
+ "scope": "text.html.markdown punctuation.definition.function.math.tex",
997
+ "settings": {
998
+ "foreground": "#88C0D0"
999
+ }
1000
+ }, {
1001
+ "name": "[Markdown] Markup Math Operator",
1002
+ "scope": "text.html.markdown punctuation.math.operator.latex",
1003
+ "settings": {
1004
+ "foreground": "#81A1C1"
1005
+ }
1006
+ }, {
1007
+ "name": "[Markdown] Punctuation Definition Heading",
1008
+ "scope": "text.html.markdown punctuation.definition.heading",
1009
+ "settings": {
1010
+ "foreground": "#81A1C1"
1011
+ }
1012
+ }, {
1013
+ "name": "[Markdown] Punctuation Definition Constant/String",
1014
+ "scope": ["text.html.markdown punctuation.definition.constant", "text.html.markdown punctuation.definition.string"],
1015
+ "settings": {
1016
+ "foreground": "#81A1C1"
1017
+ }
1018
+ }, {
1019
+ "name": "[Markdown] String Other Link Description/Title",
1020
+ "scope": ["text.html.markdown constant.other.reference.link", "text.html.markdown string.other.link.description", "text.html.markdown string.other.link.title"],
1021
+ "settings": {
1022
+ "foreground": "#88C0D0"
1023
+ }
1024
+ }, {
1025
+ "name": "[Perl] Perl Sigils",
1026
+ "scope": "source.perl punctuation.definition.variable",
1027
+ "settings": {
1028
+ "foreground": "#D8DEE9"
1029
+ }
1030
+ }, {
1031
+ "name": "[PHP] Meta Function-Call Object",
1032
+ "scope": ["source.php meta.function-call", "source.php meta.function-call.object"],
1033
+ "settings": {
1034
+ "foreground": "#88C0D0"
1035
+ }
1036
+ }, {
1037
+ "name": "[Python] Decorator",
1038
+ "scope": ["source.python entity.name.function.decorator", "source.python meta.function.decorator support.type"],
1039
+ "settings": {
1040
+ "foreground": "#D08770"
1041
+ }
1042
+ }, {
1043
+ "name": "[Python] Function Call",
1044
+ "scope": "source.python meta.function-call.generic",
1045
+ "settings": {
1046
+ "foreground": "#88C0D0"
1047
+ }
1048
+ }, {
1049
+ "name": "[Python] Support Type",
1050
+ "scope": "source.python support.type",
1051
+ "settings": {
1052
+ "foreground": "#88C0D0"
1053
+ }
1054
+ }, {
1055
+ "name": "[Python] Function Parameter",
1056
+ "scope": ["source.python variable.parameter.function.language"],
1057
+ "settings": {
1058
+ "foreground": "#D8DEE9"
1059
+ }
1060
+ }, {
1061
+ "name": "[Python] Function Parameter Special",
1062
+ "scope": ["source.python meta.function.parameters variable.parameter.function.language.special.self"],
1063
+ "settings": {
1064
+ "foreground": "#81A1C1"
1065
+ }
1066
+ }, {
1067
+ "name": "[Rust] Entity types",
1068
+ "scope": "source.rust entity.name.type",
1069
+ "settings": {
1070
+ "foreground": "#8FBCBB"
1071
+ }
1072
+ }, {
1073
+ "name": "[Rust] Macro",
1074
+ "scope": "source.rust meta.macro entity.name.function",
1075
+ "settings": {
1076
+ "fontStyle": "bold",
1077
+ "foreground": "#88C0D0"
1078
+ }
1079
+ }, {
1080
+ "name": "[Rust] Attributes",
1081
+ "scope": ["source.rust meta.attribute", "source.rust meta.attribute punctuation", "source.rust meta.attribute keyword.operator"],
1082
+ "settings": {
1083
+ "foreground": "#5E81AC"
1084
+ }
1085
+ }, {
1086
+ "name": "[Rust] Traits",
1087
+ "scope": "source.rust entity.name.type.trait",
1088
+ "settings": {
1089
+ "fontStyle": "bold"
1090
+ }
1091
+ }, {
1092
+ "name": "[Rust] Interpolation Bracket Curly",
1093
+ "scope": "source.rust punctuation.definition.interpolation",
1094
+ "settings": {
1095
+ "foreground": "#EBCB8B"
1096
+ }
1097
+ }, {
1098
+ "name": "[SCSS] Punctuation Definition Interpolation Bracket Curly",
1099
+ "scope": ["source.css.scss punctuation.definition.interpolation.begin.bracket.curly", "source.css.scss punctuation.definition.interpolation.end.bracket.curly"],
1100
+ "settings": {
1101
+ "foreground": "#81A1C1"
1102
+ }
1103
+ }, {
1104
+ "name": "[SCSS] Variable Interpolation",
1105
+ "scope": "source.css.scss variable.interpolation",
1106
+ "settings": {
1107
+ "foreground": "#D8DEE9",
1108
+ "fontStyle": "italic"
1109
+ }
1110
+ }, {
1111
+ "name": "[TypeScript] Decorators",
1112
+ "scope": ["source.ts punctuation.decorator", "source.ts meta.decorator variable.other.readwrite", "source.ts meta.decorator entity.name.function", "source.tsx punctuation.decorator", "source.tsx meta.decorator variable.other.readwrite", "source.tsx meta.decorator entity.name.function"],
1113
+ "settings": {
1114
+ "foreground": "#D08770"
1115
+ }
1116
+ }, {
1117
+ "name": "[TypeScript] Object-literal keys",
1118
+ "scope": ["source.ts meta.object-literal.key", "source.tsx meta.object-literal.key"],
1119
+ "settings": {
1120
+ "foreground": "#D8DEE9"
1121
+ }
1122
+ }, {
1123
+ "name": "[TypeScript] Object-literal functions",
1124
+ "scope": ["source.ts meta.object-literal.key entity.name.function", "source.tsx meta.object-literal.key entity.name.function"],
1125
+ "settings": {
1126
+ "foreground": "#88C0D0"
1127
+ }
1128
+ }, {
1129
+ "name": "[TypeScript] Type/Class",
1130
+ "scope": ["source.ts support.class", "source.ts support.type", "source.ts entity.name.type", "source.ts entity.name.class", "source.tsx support.class", "source.tsx support.type", "source.tsx entity.name.type", "source.tsx entity.name.class"],
1131
+ "settings": {
1132
+ "foreground": "#8FBCBB"
1133
+ }
1134
+ }, {
1135
+ "name": "[TypeScript] Static Class Support",
1136
+ "scope": ["source.ts support.constant.math", "source.ts support.constant.dom", "source.ts support.constant.json", "source.tsx support.constant.math", "source.tsx support.constant.dom", "source.tsx support.constant.json"],
1137
+ "settings": {
1138
+ "foreground": "#8FBCBB"
1139
+ }
1140
+ }, {
1141
+ "name": "[TypeScript] Variables",
1142
+ "scope": ["source.ts support.variable", "source.tsx support.variable"],
1143
+ "settings": {
1144
+ "foreground": "#D8DEE9"
1145
+ }
1146
+ }, {
1147
+ "name": "[TypeScript] Parentheses in Template Strings",
1148
+ "scope": ["source.ts meta.embedded.line meta.brace.square", "source.ts meta.embedded.line meta.brace.round", "source.tsx meta.embedded.line meta.brace.square", "source.tsx meta.embedded.line meta.brace.round"],
1149
+ "settings": {
1150
+ "foreground": "#ECEFF4"
1151
+ }
1152
+ }, {
1153
+ "name": "[XML] Entity Name Tag Namespace",
1154
+ "scope": "text.xml entity.name.tag.namespace",
1155
+ "settings": {
1156
+ "foreground": "#8FBCBB"
1157
+ }
1158
+ }, {
1159
+ "name": "[XML] Keyword Other Doctype",
1160
+ "scope": "text.xml keyword.other.doctype",
1161
+ "settings": {
1162
+ "foreground": "#5E81AC"
1163
+ }
1164
+ }, {
1165
+ "name": "[XML] Meta Tag Preprocessor",
1166
+ "scope": "text.xml meta.tag.preprocessor entity.name.tag",
1167
+ "settings": {
1168
+ "foreground": "#5E81AC"
1169
+ }
1170
+ }, {
1171
+ "name": "[XML] Entity Name Tag Namespace",
1172
+ "scope": ["text.xml string.unquoted.cdata", "text.xml string.unquoted.cdata punctuation.definition.string"],
1173
+ "settings": {
1174
+ "foreground": "#D08770",
1175
+ "fontStyle": "italic"
1176
+ }
1177
+ }, {
1178
+ "name": "[YAML] Entity Name Tag",
1179
+ "scope": "source.yaml entity.name.tag",
1180
+ "settings": {
1181
+ "foreground": "#8FBCBB"
1182
+ }
1183
+ }]
1184
+ },
1185
+ "autoImport": true,
1186
+ "showCopyButton": true,
1187
+ "skipLanguages": [],
1188
+ "filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/zh/guide/basic/modify-output-product.md"
1189
+ };
1190
+ const frontmatter = {
1191
+ "sidebar_position": 3
1192
+ };
1193
+ const toc = [{
1194
+ "id": "默认输出产物",
1195
+ "text": "默认输出产物",
1196
+ "depth": 2
1197
+ }, {
1198
+ "id": "构建预设",
1199
+ "text": "构建预设",
1200
+ "depth": 2
1201
+ }, {
1202
+ "id": "构建预设的字符串形式",
1203
+ "text": "构建预设的字符串形式",
1204
+ "depth": 3
1205
+ }, {
1206
+ "id": "构建预设的函数形式",
1207
+ "text": "构建预设的函数形式",
1208
+ "depth": 3
1209
+ }, {
1210
+ "id": "构建配置对象",
1211
+ "text": "构建配置(对象)",
1212
+ "depth": 2
1213
+ }, {
1214
+ "id": "什么时候使用-buildconfig",
1215
+ "text": "什么时候使用 buildConfig",
1216
+ "depth": 2
1217
+ }];
1218
+ const title = `修改输出产物`;
1219
+ const content = "\"---\\nsidebar_position: 3\\n---\\n\\n# 修改输出产物\\n\\n## 默认输出产物\\n\\n当在初始化的项目里使用 `modern build` 命令的时候,会根据 Module Tools 默认支持的配置生成相应的产物。默认支持的配置具体如下:\\n\\n```typescript\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n plugins: [moduleTools()],\\n buildPreset: 'npm-library',\\n});\\n```\\n\\n**默认生成产物具有以下特点**:\\n\\n- 会生成[CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-modules)和[ESM](https://nodejs.org/api/esm.html#modules-ecmascript-modules)两份产物。\\n- 代码语法支持到 `ES6` ,更高级的语法将会被转换。\\n- 所有的代码经过打包变成了一个文件,即进行了 **bundle** 处理。\\n- 产物输出根目录为项目下的 `dist` 目录,类型文件输出的目录为 `dist/types`。\\n\\n看到这里你可能会有以下疑问:\\n\\n1. `buildPreset` 是什么?\\n2. 产物的这些特点是由什么决定的?\\n\\n那么接下来首先解释一下 `buildPreset`。\\n\\n## 构建预设\\n\\n`buildPreset` 代表着提前准备好的一组或者多组构建相关的配置,只需要使用 `buildPreset` 对应的预设值,就可以省去麻烦且复杂的配置工作,得到符合预期的产物。\\n\\n### 构建预设的字符串形式\\n\\n**构建预设的值可以是字符串形式**,因此这样形式的构建预设叫做预设字符串。\\n\\n模块工程解决方案根据 npm 包使用的通用场景,提供了通用的构建预设字符串以及相应的变体。目前支持的所有预设字符串可以通过 [BuildPreset API](/api/config/build-preset) 查看。这里讲解一下关于**通用的预设字符串与变体之间的关系**。\\n\\n在通用的预设字符串中,`\\\"npm-library\\\"` 可以用于在开发库类型的 npm 包的场景下使用,它适合大多数普通的模块类型项目。当设置 `\\\"npm-library\\\"` 的时候,项目的输出产物会有以下特点:\\n\\n- 在 `dist/lib` 目录下会得到代码格式为 `cjs`、语法支持到 `es6` 且经过打包处理后的产物。\\n- 在 `dist/es` 目录下会得到代码格式为 `esm`、语法支持为 `es6` 且经过打包处理后的产物。\\n- 在 `dist/types` 目录下会得到类型文件。如果不是 TypeScript 项目,则没有该目录。\\n\\n而预设字符串 `\\\"npm-library\\\"` 对应的变体则是在原本产物的基础上修改了**代码语法支持**这一特点,同时在字符串命名上也变为了 `\\\"npm-library-[es5 | es2016...es2020 | esnext]\\\"` 这样的形式。\\n\\n例如,如果在预设字符串 `\\\"npm-library\\\"` 对应的输出产物基础上,让产物代码支持的语法变为 `es5` 的话,那么只需要将 `\\\"npm-library\\\"` 改变为 `\\\"npm-library-es5\\\"` 就可以了。\\n\\n### 构建预设的函数形式\\n\\n**除了字符串形式以外,构建预设的值也可以是函数形式,在函数中可以打印或者修改某个预设值对应的具体配置**。\\n\\n例如,如果使用预设函数的形式达到预设字符串 `\\\"npm-library-es5\\\"` 同样的效果,可以按照如下的方式:\\n\\n```typescript\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildPreset({ preset }) {\\n return preset.NPM_LIBRARY.map(config => {\\n return { ...config, target: 'es5' };\\n });\\n },\\n});\\n```\\n\\n在上面的代码实现中,`preset.NPM_LIBRARY` 与预设字符串 `\\\"npm-library\\\"` 是相对应的,它代表着 `\\\"npm-library\\\"` 等价的多组构建相关的配置。我们通过 `map` 方法遍历了 `NPM_LIBRARY` 这个数组,在这个数组中包含了多个 `buildConfig` 对象。我们将原本的 `buildConfig` 对象进行了浅拷贝并修改了浅拷贝后得到 `buildConfig.target`,将它指定为 `es5`。\\n\\n> 关于 `preset.NPM_LIBRARY` 具体对应的值,可以通过 [BuildPreset API](/api/config/build-preset) 查看。在 `preset` 对象下不仅包含了 `NPM_LIBRARY`,还包含了其他类似的常量。\\n\\n那么这里的 `buildConfig` 对象是什么呢?之前提到的构建产物特点又是根据什么呢?\\n\\n接下来我们解释一下。\\n\\n## 构建配置(对象)\\n\\n**`buildConfig` 是一个用来描述如何编译、生成构建产物的配置对象**。在最开始提到的关于“_构建产物的特点_”,其实都是 `buildConfig` 所支持的属性。目前所支持的属性覆盖了大部分模块类型项目在构建产物时的需求,`buildConfig` 不仅包含一些产物所具备的属性,也包含了构建产物所需要的一些特性功能。接下来从分类的角度简单罗列一下:\\n\\n**构建产物的基本属性包括:**\\n\\n- 产物是否被打包:对应的 API 是 [`buildConfig.buildType`](/api/config/build-config#buildtype)。\\n- 产物对于语法的支持:对应的 API 是 [`buildConfig.target`](/api/config/build-config#target)。\\n- 产物格式:对应的 API 是 [`buildConfig.format`](/api/config/build-config#format)。\\n- 产物类型文件如何处理,对应的 API 是 [`buildConfig.dts`](/api/config/build-config#dts)。\\n- 产物的 sourceMap 如何处理:对应的 API 是 [`buildConfig.sourceMap`](/api/config/build-config#sourcemap)。\\n- 产物对应的输入(或者是源文件):对应的 API 是 [`buildConfig.input`](/api/config/build-config#input)。\\n- 产物输出的目录:对应的 API 是 [`buildConfig.outDir`](/api/config/build-config#outDir)。\\n- 构建的源码目录:对应的 API 是 [`buildConfig.sourceDir`](/api/config/build-config#sourcedir)。\\n\\n**构建产物所需的常用功能包括:**\\n\\n- 别名:对应的 API 是 [`buildConfig.alias`](/api/config/build-config#alias)。\\n- 静态资源处理:对应的 API 是 [`buildConfig.asset`](/api/config/build-config#asset)。\\n- 第三方依赖处理:对应的 API 有:\\n - [`buildConfig.autoExternal`](/api/config/build-config#autoexternal)。\\n - [`buildConfig.externals`](/api/config/build-config#externals)。\\n- 拷贝:对应的 API 是 [`buildConfig.copy`](/api/config/build-config#copy)。\\n- 全局变量替换:对应的 API 是 [`buildConfig.define`](/api/config/build-config#define)。\\n- 指定 [JSX](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) 编译方式,对应的 API 是 [`buildConfig.jsx`](/api/config/build-config#jsx)。\\n\\n**一些高级属性或者使用频率不高的功能:**\\n\\n- 产物代码压缩:对应的 API 是 [`buildConfig.minify`](/api/config/build-config#minify)。\\n- 代码分割:[`buildConfig.spitting`](/api/config/build-config#splitting)\\n- 指定构建产物用于 NodeJS 环境还是浏览器环境:对应的 API 是 [`buildConfig.platform`](/api/config/build-config#platform)。\\n- umd 产物相关:\\n - 指定 umd 产物外部导入的全局变量:对应的 API 是 [`buildConfig.umdGlobals`](/api/config/build-config#umdglobals)。\\n - 指定 umd 产物的模块名:对应的 API 是 [`buildConfig.umdModuleName`](/api/config/build-config#umdmodulename)。\\n\\n除了以上分类以外,关于这些 API 的常见问题和最佳实践可以通过下面的链接来了解\\n\\n- [什么是 `bundle` 和 `bundleless`?](/guide/advance/in-depth-about-build#bundle-和-bundleless)\\n- [`input` 与 `sourceDir` 的关系](/guide/advance/in-depth-about-build#input-与-sourcedir-的关系)。\\n- [产物中类型文件的多种生成方式](/guide/advance/in-depth-about-build#类型文件)。\\n- [`buildConfig.define` 不同场景的使用方式。](/guide/advance/in-depth-about-build#buildconfigdefine-不同场景的使用方式)\\n- [如何处理第三方依赖?](/guide/advance/external-dependency)\\n- [如何使用拷贝?](/guide/advance/copy)\\n- [如何构建 umd 产物?](/guide/advance/build-umd#设置项目的全局变量名称)\\n- [静态资源目前所支持的能力。](/guide/advance/asset)\\n\\n## 什么时候使用 `buildConfig`\\n\\n`buildConfig` 是用于修改产物的方式之一,**当与 `buildPreset` 配置同时存在的时候,只有 `buildConfig` 才会生效**。因此如果按照如下方式配置:\\n\\n```typescript\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n },\\n buildPreset: 'npm-library',\\n});\\n```\\n\\n那么此时就会看到如下提示:\\n\\n```bash\\n因为同时出现 'buildConfig' 和 'buildPreset' 配置,因此仅 'buildConfig' 配置生效\\n```\\n\\n`buildPreset` 代表的一组或者多组构建相关的配置都是由 `buildConfig` 组成,**当使用 `buildPreset` 无法满足当前项目需求的时候,就可以使用 `buildConfig` 来自定义输出产物**。\\n\\n在使用 `buildConfig` 的过程,就是对**获得怎样的构建产物**的思考过程。\\n\"";
1220
+ function _createMdxContent(props) {
1221
+ const _components = Object.assign({
1222
+ h1: "h1",
1223
+ a: "a",
1224
+ h2: "h2",
1225
+ p: "p",
1226
+ code: "code",
1227
+ strong: "strong",
1228
+ ul: "ul",
1229
+ li: "li",
1230
+ ol: "ol",
1231
+ h3: "h3",
1232
+ blockquote: "blockquote",
1233
+ em: "em"
1234
+ }, props.components);
1235
+ if (!CH) _missingMdxReference("CH", false, "11:1-18:4");
1236
+ if (!CH.Code) _missingMdxReference("CH.Code", true, "11:1-18:4");
1237
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1238
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1239
+ id: "修改输出产物",
1240
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1241
+ className: "header-anchor",
1242
+ "aria-hidden": "true",
1243
+ href: "#修改输出产物",
1244
+ children: "#"
1245
+ }), "修改输出产物"]
1246
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1247
+ id: "默认输出产物",
1248
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1249
+ className: "header-anchor",
1250
+ "aria-hidden": "true",
1251
+ href: "#默认输出产物",
1252
+ children: "#"
1253
+ }), "默认输出产物"]
1254
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1255
+ children: ["当在初始化的项目里使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1256
+ children: "modern build"
1257
+ }), " 命令的时候,会根据 Module Tools 默认支持的配置生成相应的产物。默认支持的配置具体如下:"]
1258
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1259
+ codeConfig: chCodeConfig,
1260
+ northPanel: {
1261
+ "tabs": [""],
1262
+ "active": "",
1263
+ "heightRatio": 1
1264
+ },
1265
+ files: [{
1266
+ "name": "",
1267
+ "focus": "",
1268
+ "code": {
1269
+ "lines": [{
1270
+ "tokens": [{
1271
+ "content": "import",
1272
+ "props": {
1273
+ "style": {
1274
+ "color": "#81A1C1"
1275
+ }
1276
+ }
1277
+ }, {
1278
+ "content": " ",
1279
+ "props": {
1280
+ "style": {
1281
+ "color": "#D8DEE9FF"
1282
+ }
1283
+ }
1284
+ }, {
1285
+ "content": "moduleTools",
1286
+ "props": {
1287
+ "style": {
1288
+ "color": "#D8DEE9"
1289
+ }
1290
+ }
1291
+ }, {
1292
+ "content": ",",
1293
+ "props": {
1294
+ "style": {
1295
+ "color": "#ECEFF4"
1296
+ }
1297
+ }
1298
+ }, {
1299
+ "content": " ",
1300
+ "props": {
1301
+ "style": {
1302
+ "color": "#D8DEE9FF"
1303
+ }
1304
+ }
1305
+ }, {
1306
+ "content": "{",
1307
+ "props": {
1308
+ "style": {
1309
+ "color": "#ECEFF4"
1310
+ }
1311
+ }
1312
+ }, {
1313
+ "content": " ",
1314
+ "props": {
1315
+ "style": {
1316
+ "color": "#D8DEE9FF"
1317
+ }
1318
+ }
1319
+ }, {
1320
+ "content": "defineConfig",
1321
+ "props": {
1322
+ "style": {
1323
+ "color": "#D8DEE9"
1324
+ }
1325
+ }
1326
+ }, {
1327
+ "content": " ",
1328
+ "props": {
1329
+ "style": {
1330
+ "color": "#D8DEE9FF"
1331
+ }
1332
+ }
1333
+ }, {
1334
+ "content": "}",
1335
+ "props": {
1336
+ "style": {
1337
+ "color": "#ECEFF4"
1338
+ }
1339
+ }
1340
+ }, {
1341
+ "content": " ",
1342
+ "props": {
1343
+ "style": {
1344
+ "color": "#D8DEE9FF"
1345
+ }
1346
+ }
1347
+ }, {
1348
+ "content": "from",
1349
+ "props": {
1350
+ "style": {
1351
+ "color": "#81A1C1"
1352
+ }
1353
+ }
1354
+ }, {
1355
+ "content": " ",
1356
+ "props": {
1357
+ "style": {
1358
+ "color": "#D8DEE9FF"
1359
+ }
1360
+ }
1361
+ }, {
1362
+ "content": "'",
1363
+ "props": {
1364
+ "style": {
1365
+ "color": "#ECEFF4"
1366
+ }
1367
+ }
1368
+ }, {
1369
+ "content": "@modern-js/module-tools",
1370
+ "props": {
1371
+ "style": {
1372
+ "color": "#A3BE8C"
1373
+ }
1374
+ }
1375
+ }, {
1376
+ "content": "'",
1377
+ "props": {
1378
+ "style": {
1379
+ "color": "#ECEFF4"
1380
+ }
1381
+ }
1382
+ }, {
1383
+ "content": ";",
1384
+ "props": {
1385
+ "style": {
1386
+ "color": "#81A1C1"
1387
+ }
1388
+ }
1389
+ }]
1390
+ }, {
1391
+ "tokens": []
1392
+ }, {
1393
+ "tokens": [{
1394
+ "content": "export",
1395
+ "props": {
1396
+ "style": {
1397
+ "color": "#81A1C1"
1398
+ }
1399
+ }
1400
+ }, {
1401
+ "content": " ",
1402
+ "props": {
1403
+ "style": {
1404
+ "color": "#D8DEE9FF"
1405
+ }
1406
+ }
1407
+ }, {
1408
+ "content": "default",
1409
+ "props": {
1410
+ "style": {
1411
+ "color": "#81A1C1"
1412
+ }
1413
+ }
1414
+ }, {
1415
+ "content": " ",
1416
+ "props": {
1417
+ "style": {
1418
+ "color": "#D8DEE9FF"
1419
+ }
1420
+ }
1421
+ }, {
1422
+ "content": "defineConfig",
1423
+ "props": {
1424
+ "style": {
1425
+ "color": "#88C0D0"
1426
+ }
1427
+ }
1428
+ }, {
1429
+ "content": "(",
1430
+ "props": {
1431
+ "style": {
1432
+ "color": "#D8DEE9FF"
1433
+ }
1434
+ }
1435
+ }, {
1436
+ "content": "{",
1437
+ "props": {
1438
+ "style": {
1439
+ "color": "#ECEFF4"
1440
+ }
1441
+ }
1442
+ }]
1443
+ }, {
1444
+ "tokens": [{
1445
+ "content": " ",
1446
+ "props": {
1447
+ "style": {
1448
+ "color": "#D8DEE9FF"
1449
+ }
1450
+ }
1451
+ }, {
1452
+ "content": "plugins",
1453
+ "props": {
1454
+ "style": {
1455
+ "color": "#D8DEE9"
1456
+ }
1457
+ }
1458
+ }, {
1459
+ "content": ":",
1460
+ "props": {
1461
+ "style": {
1462
+ "color": "#ECEFF4"
1463
+ }
1464
+ }
1465
+ }, {
1466
+ "content": " [",
1467
+ "props": {
1468
+ "style": {
1469
+ "color": "#D8DEE9FF"
1470
+ }
1471
+ }
1472
+ }, {
1473
+ "content": "moduleTools",
1474
+ "props": {
1475
+ "style": {
1476
+ "color": "#88C0D0"
1477
+ }
1478
+ }
1479
+ }, {
1480
+ "content": "()]",
1481
+ "props": {
1482
+ "style": {
1483
+ "color": "#D8DEE9FF"
1484
+ }
1485
+ }
1486
+ }, {
1487
+ "content": ",",
1488
+ "props": {
1489
+ "style": {
1490
+ "color": "#ECEFF4"
1491
+ }
1492
+ }
1493
+ }]
1494
+ }, {
1495
+ "tokens": [{
1496
+ "content": " ",
1497
+ "props": {
1498
+ "style": {
1499
+ "color": "#D8DEE9FF"
1500
+ }
1501
+ }
1502
+ }, {
1503
+ "content": "buildPreset",
1504
+ "props": {
1505
+ "style": {
1506
+ "color": "#D8DEE9"
1507
+ }
1508
+ }
1509
+ }, {
1510
+ "content": ":",
1511
+ "props": {
1512
+ "style": {
1513
+ "color": "#ECEFF4"
1514
+ }
1515
+ }
1516
+ }, {
1517
+ "content": " ",
1518
+ "props": {
1519
+ "style": {
1520
+ "color": "#D8DEE9FF"
1521
+ }
1522
+ }
1523
+ }, {
1524
+ "content": "'",
1525
+ "props": {
1526
+ "style": {
1527
+ "color": "#ECEFF4"
1528
+ }
1529
+ }
1530
+ }, {
1531
+ "content": "npm-library",
1532
+ "props": {
1533
+ "style": {
1534
+ "color": "#A3BE8C"
1535
+ }
1536
+ }
1537
+ }, {
1538
+ "content": "'",
1539
+ "props": {
1540
+ "style": {
1541
+ "color": "#ECEFF4"
1542
+ }
1543
+ }
1544
+ }, {
1545
+ "content": ",",
1546
+ "props": {
1547
+ "style": {
1548
+ "color": "#ECEFF4"
1549
+ }
1550
+ }
1551
+ }]
1552
+ }, {
1553
+ "tokens": [{
1554
+ "content": "}",
1555
+ "props": {
1556
+ "style": {
1557
+ "color": "#ECEFF4"
1558
+ }
1559
+ }
1560
+ }, {
1561
+ "content": ")",
1562
+ "props": {
1563
+ "style": {
1564
+ "color": "#D8DEE9FF"
1565
+ }
1566
+ }
1567
+ }, {
1568
+ "content": ";",
1569
+ "props": {
1570
+ "style": {
1571
+ "color": "#81A1C1"
1572
+ }
1573
+ }
1574
+ }]
1575
+ }],
1576
+ "lang": "typescript"
1577
+ },
1578
+ "annotations": []
1579
+ }]
1580
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1581
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1582
+ children: "默认生成产物具有以下特点"
1583
+ }), ":"]
1584
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1585
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1586
+ children: ["会生成", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1587
+ href: "https://nodejs.org/api/modules.html#modules-commonjs-modules-2",
1588
+ target: "_blank",
1589
+ rel: "nofollow",
1590
+ children: "CommonJS"
1591
+ }), "和", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1592
+ href: "https://nodejs.org/api/esm.html#modules-ecmascript-modules",
1593
+ target: "_blank",
1594
+ rel: "nofollow",
1595
+ children: "ESM"
1596
+ }), "两份产物。"]
1597
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1598
+ children: ["代码语法支持到 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1599
+ children: "ES6"
1600
+ }), " ,更高级的语法将会被转换。"]
1601
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1602
+ children: ["所有的代码经过打包变成了一个文件,即进行了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1603
+ children: "bundle"
1604
+ }), " 处理。"]
1605
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1606
+ children: ["产物输出根目录为项目下的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1607
+ children: "dist"
1608
+ }), " 目录,类型文件输出的目录为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1609
+ children: "dist/types"
1610
+ }), "。"]
1611
+ }), "\n"]
1612
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1613
+ children: "看到这里你可能会有以下疑问:"
1614
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ol, {
1615
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1616
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1617
+ children: "buildPreset"
1618
+ }), " 是什么?"]
1619
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1620
+ children: "产物的这些特点是由什么决定的?"
1621
+ }), "\n"]
1622
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1623
+ children: ["那么接下来首先解释一下 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1624
+ children: "buildPreset"
1625
+ }), "。"]
1626
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1627
+ id: "构建预设",
1628
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1629
+ className: "header-anchor",
1630
+ "aria-hidden": "true",
1631
+ href: "#构建预设",
1632
+ children: "#"
1633
+ }), "构建预设"]
1634
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1635
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1636
+ children: "buildPreset"
1637
+ }), " 代表着提前准备好的一组或者多组构建相关的配置,只需要使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1638
+ children: "buildPreset"
1639
+ }), " 对应的预设值,就可以省去麻烦且复杂的配置工作,得到符合预期的产物。"]
1640
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
1641
+ id: "构建预设的字符串形式",
1642
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1643
+ className: "header-anchor",
1644
+ "aria-hidden": "true",
1645
+ href: "#构建预设的字符串形式",
1646
+ children: "#"
1647
+ }), "构建预设的字符串形式"]
1648
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1649
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1650
+ children: "构建预设的值可以是字符串形式"
1651
+ }), ",因此这样形式的构建预设叫做预设字符串。"]
1652
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1653
+ children: ["模块工程解决方案根据 npm 包使用的通用场景,提供了通用的构建预设字符串以及相应的变体。目前支持的所有预设字符串可以通过 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1654
+ href: "/api/config/build-preset.html",
1655
+ children: "BuildPreset API"
1656
+ }), " 查看。这里讲解一下关于", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1657
+ children: "通用的预设字符串与变体之间的关系"
1658
+ }), "。"]
1659
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1660
+ children: ["在通用的预设字符串中,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1661
+ children: "\"npm-library\""
1662
+ }), " 可以用于在开发库类型的 npm 包的场景下使用,它适合大多数普通的模块类型项目。当设置 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1663
+ children: "\"npm-library\""
1664
+ }), " 的时候,项目的输出产物会有以下特点:"]
1665
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1666
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1667
+ children: ["在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1668
+ children: "dist/lib"
1669
+ }), " 目录下会得到代码格式为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1670
+ children: "cjs"
1671
+ }), "、语法支持到 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1672
+ children: "es6"
1673
+ }), " 且经过打包处理后的产物。"]
1674
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1675
+ children: ["在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1676
+ children: "dist/es"
1677
+ }), " 目录下会得到代码格式为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1678
+ children: "esm"
1679
+ }), "、语法支持为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1680
+ children: "es6"
1681
+ }), " 且经过打包处理后的产物。"]
1682
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1683
+ children: ["在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1684
+ children: "dist/types"
1685
+ }), " 目录下会得到类型文件。如果不是 TypeScript 项目,则没有该目录。"]
1686
+ }), "\n"]
1687
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1688
+ children: ["而预设字符串 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1689
+ children: "\"npm-library\""
1690
+ }), " 对应的变体则是在原本产物的基础上修改了", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1691
+ children: "代码语法支持"
1692
+ }), "这一特点,同时在字符串命名上也变为了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1693
+ children: "\"npm-library-[es5 | es2016...es2020 | esnext]\""
1694
+ }), " 这样的形式。"]
1695
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1696
+ children: ["例如,如果在预设字符串 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1697
+ children: "\"npm-library\""
1698
+ }), " 对应的输出产物基础上,让产物代码支持的语法变为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1699
+ children: "es5"
1700
+ }), " 的话,那么只需要将 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1701
+ children: "\"npm-library\""
1702
+ }), " 改变为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1703
+ children: "\"npm-library-es5\""
1704
+ }), " 就可以了。"]
1705
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
1706
+ id: "构建预设的函数形式",
1707
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1708
+ className: "header-anchor",
1709
+ "aria-hidden": "true",
1710
+ href: "#构建预设的函数形式",
1711
+ children: "#"
1712
+ }), "构建预设的函数形式"]
1713
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1714
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1715
+ children: "除了字符串形式以外,构建预设的值也可以是函数形式,在函数中可以打印或者修改某个预设值对应的具体配置"
1716
+ }), "。"]
1717
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1718
+ children: ["例如,如果使用预设函数的形式达到预设字符串 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1719
+ children: "\"npm-library-es5\""
1720
+ }), " 同样的效果,可以按照如下的方式:"]
1721
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1722
+ codeConfig: chCodeConfig,
1723
+ northPanel: {
1724
+ "tabs": [""],
1725
+ "active": "",
1726
+ "heightRatio": 1
1727
+ },
1728
+ files: [{
1729
+ "name": "",
1730
+ "focus": "",
1731
+ "code": {
1732
+ "lines": [{
1733
+ "tokens": [{
1734
+ "content": "import",
1735
+ "props": {
1736
+ "style": {
1737
+ "color": "#81A1C1"
1738
+ }
1739
+ }
1740
+ }, {
1741
+ "content": " ",
1742
+ "props": {
1743
+ "style": {
1744
+ "color": "#D8DEE9FF"
1745
+ }
1746
+ }
1747
+ }, {
1748
+ "content": "{",
1749
+ "props": {
1750
+ "style": {
1751
+ "color": "#ECEFF4"
1752
+ }
1753
+ }
1754
+ }, {
1755
+ "content": " ",
1756
+ "props": {
1757
+ "style": {
1758
+ "color": "#D8DEE9FF"
1759
+ }
1760
+ }
1761
+ }, {
1762
+ "content": "defineConfig",
1763
+ "props": {
1764
+ "style": {
1765
+ "color": "#D8DEE9"
1766
+ }
1767
+ }
1768
+ }, {
1769
+ "content": " ",
1770
+ "props": {
1771
+ "style": {
1772
+ "color": "#D8DEE9FF"
1773
+ }
1774
+ }
1775
+ }, {
1776
+ "content": "}",
1777
+ "props": {
1778
+ "style": {
1779
+ "color": "#ECEFF4"
1780
+ }
1781
+ }
1782
+ }, {
1783
+ "content": " ",
1784
+ "props": {
1785
+ "style": {
1786
+ "color": "#D8DEE9FF"
1787
+ }
1788
+ }
1789
+ }, {
1790
+ "content": "from",
1791
+ "props": {
1792
+ "style": {
1793
+ "color": "#81A1C1"
1794
+ }
1795
+ }
1796
+ }, {
1797
+ "content": " ",
1798
+ "props": {
1799
+ "style": {
1800
+ "color": "#D8DEE9FF"
1801
+ }
1802
+ }
1803
+ }, {
1804
+ "content": "'",
1805
+ "props": {
1806
+ "style": {
1807
+ "color": "#ECEFF4"
1808
+ }
1809
+ }
1810
+ }, {
1811
+ "content": "@modern-js/module-tools",
1812
+ "props": {
1813
+ "style": {
1814
+ "color": "#A3BE8C"
1815
+ }
1816
+ }
1817
+ }, {
1818
+ "content": "'",
1819
+ "props": {
1820
+ "style": {
1821
+ "color": "#ECEFF4"
1822
+ }
1823
+ }
1824
+ }, {
1825
+ "content": ";",
1826
+ "props": {
1827
+ "style": {
1828
+ "color": "#81A1C1"
1829
+ }
1830
+ }
1831
+ }]
1832
+ }, {
1833
+ "tokens": []
1834
+ }, {
1835
+ "tokens": [{
1836
+ "content": "export",
1837
+ "props": {
1838
+ "style": {
1839
+ "color": "#81A1C1"
1840
+ }
1841
+ }
1842
+ }, {
1843
+ "content": " ",
1844
+ "props": {
1845
+ "style": {
1846
+ "color": "#D8DEE9FF"
1847
+ }
1848
+ }
1849
+ }, {
1850
+ "content": "default",
1851
+ "props": {
1852
+ "style": {
1853
+ "color": "#81A1C1"
1854
+ }
1855
+ }
1856
+ }, {
1857
+ "content": " ",
1858
+ "props": {
1859
+ "style": {
1860
+ "color": "#D8DEE9FF"
1861
+ }
1862
+ }
1863
+ }, {
1864
+ "content": "defineConfig",
1865
+ "props": {
1866
+ "style": {
1867
+ "color": "#88C0D0"
1868
+ }
1869
+ }
1870
+ }, {
1871
+ "content": "(",
1872
+ "props": {
1873
+ "style": {
1874
+ "color": "#D8DEE9FF"
1875
+ }
1876
+ }
1877
+ }, {
1878
+ "content": "{",
1879
+ "props": {
1880
+ "style": {
1881
+ "color": "#ECEFF4"
1882
+ }
1883
+ }
1884
+ }]
1885
+ }, {
1886
+ "tokens": [{
1887
+ "content": " ",
1888
+ "props": {
1889
+ "style": {
1890
+ "color": "#D8DEE9FF"
1891
+ }
1892
+ }
1893
+ }, {
1894
+ "content": "buildPreset",
1895
+ "props": {
1896
+ "style": {
1897
+ "color": "#88C0D0"
1898
+ }
1899
+ }
1900
+ }, {
1901
+ "content": "({",
1902
+ "props": {
1903
+ "style": {
1904
+ "color": "#ECEFF4"
1905
+ }
1906
+ }
1907
+ }, {
1908
+ "content": " ",
1909
+ "props": {
1910
+ "style": {
1911
+ "color": "#D8DEE9FF"
1912
+ }
1913
+ }
1914
+ }, {
1915
+ "content": "preset",
1916
+ "props": {
1917
+ "style": {
1918
+ "color": "#D8DEE9"
1919
+ }
1920
+ }
1921
+ }, {
1922
+ "content": " ",
1923
+ "props": {
1924
+ "style": {
1925
+ "color": "#D8DEE9FF"
1926
+ }
1927
+ }
1928
+ }, {
1929
+ "content": "})",
1930
+ "props": {
1931
+ "style": {
1932
+ "color": "#ECEFF4"
1933
+ }
1934
+ }
1935
+ }, {
1936
+ "content": " ",
1937
+ "props": {
1938
+ "style": {
1939
+ "color": "#D8DEE9FF"
1940
+ }
1941
+ }
1942
+ }, {
1943
+ "content": "{",
1944
+ "props": {
1945
+ "style": {
1946
+ "color": "#ECEFF4"
1947
+ }
1948
+ }
1949
+ }]
1950
+ }, {
1951
+ "tokens": [{
1952
+ "content": " ",
1953
+ "props": {
1954
+ "style": {
1955
+ "color": "#D8DEE9FF"
1956
+ }
1957
+ }
1958
+ }, {
1959
+ "content": "return",
1960
+ "props": {
1961
+ "style": {
1962
+ "color": "#81A1C1"
1963
+ }
1964
+ }
1965
+ }, {
1966
+ "content": " ",
1967
+ "props": {
1968
+ "style": {
1969
+ "color": "#D8DEE9FF"
1970
+ }
1971
+ }
1972
+ }, {
1973
+ "content": "preset",
1974
+ "props": {
1975
+ "style": {
1976
+ "color": "#D8DEE9"
1977
+ }
1978
+ }
1979
+ }, {
1980
+ "content": ".",
1981
+ "props": {
1982
+ "style": {
1983
+ "color": "#ECEFF4"
1984
+ }
1985
+ }
1986
+ }, {
1987
+ "content": "NPM_LIBRARY",
1988
+ "props": {
1989
+ "style": {
1990
+ "color": "#D8DEE9"
1991
+ }
1992
+ }
1993
+ }, {
1994
+ "content": ".",
1995
+ "props": {
1996
+ "style": {
1997
+ "color": "#ECEFF4"
1998
+ }
1999
+ }
2000
+ }, {
2001
+ "content": "map",
2002
+ "props": {
2003
+ "style": {
2004
+ "color": "#88C0D0"
2005
+ }
2006
+ }
2007
+ }, {
2008
+ "content": "(",
2009
+ "props": {
2010
+ "style": {
2011
+ "color": "#D8DEE9FF"
2012
+ }
2013
+ }
2014
+ }, {
2015
+ "content": "config",
2016
+ "props": {
2017
+ "style": {
2018
+ "color": "#D8DEE9"
2019
+ }
2020
+ }
2021
+ }, {
2022
+ "content": " ",
2023
+ "props": {
2024
+ "style": {
2025
+ "color": "#D8DEE9FF"
2026
+ }
2027
+ }
2028
+ }, {
2029
+ "content": "=>",
2030
+ "props": {
2031
+ "style": {
2032
+ "color": "#81A1C1"
2033
+ }
2034
+ }
2035
+ }, {
2036
+ "content": " ",
2037
+ "props": {
2038
+ "style": {
2039
+ "color": "#D8DEE9FF"
2040
+ }
2041
+ }
2042
+ }, {
2043
+ "content": "{",
2044
+ "props": {
2045
+ "style": {
2046
+ "color": "#ECEFF4"
2047
+ }
2048
+ }
2049
+ }]
2050
+ }, {
2051
+ "tokens": [{
2052
+ "content": " ",
2053
+ "props": {
2054
+ "style": {
2055
+ "color": "#D8DEE9FF"
2056
+ }
2057
+ }
2058
+ }, {
2059
+ "content": "return",
2060
+ "props": {
2061
+ "style": {
2062
+ "color": "#81A1C1"
2063
+ }
2064
+ }
2065
+ }, {
2066
+ "content": " ",
2067
+ "props": {
2068
+ "style": {
2069
+ "color": "#D8DEE9FF"
2070
+ }
2071
+ }
2072
+ }, {
2073
+ "content": "{",
2074
+ "props": {
2075
+ "style": {
2076
+ "color": "#ECEFF4"
2077
+ }
2078
+ }
2079
+ }, {
2080
+ "content": " ",
2081
+ "props": {
2082
+ "style": {
2083
+ "color": "#D8DEE9FF"
2084
+ }
2085
+ }
2086
+ }, {
2087
+ "content": "...",
2088
+ "props": {
2089
+ "style": {
2090
+ "color": "#81A1C1"
2091
+ }
2092
+ }
2093
+ }, {
2094
+ "content": "config",
2095
+ "props": {
2096
+ "style": {
2097
+ "color": "#D8DEE9"
2098
+ }
2099
+ }
2100
+ }, {
2101
+ "content": ",",
2102
+ "props": {
2103
+ "style": {
2104
+ "color": "#ECEFF4"
2105
+ }
2106
+ }
2107
+ }, {
2108
+ "content": " ",
2109
+ "props": {
2110
+ "style": {
2111
+ "color": "#D8DEE9FF"
2112
+ }
2113
+ }
2114
+ }, {
2115
+ "content": "target",
2116
+ "props": {
2117
+ "style": {
2118
+ "color": "#D8DEE9"
2119
+ }
2120
+ }
2121
+ }, {
2122
+ "content": ":",
2123
+ "props": {
2124
+ "style": {
2125
+ "color": "#ECEFF4"
2126
+ }
2127
+ }
2128
+ }, {
2129
+ "content": " ",
2130
+ "props": {
2131
+ "style": {
2132
+ "color": "#D8DEE9FF"
2133
+ }
2134
+ }
2135
+ }, {
2136
+ "content": "'",
2137
+ "props": {
2138
+ "style": {
2139
+ "color": "#ECEFF4"
2140
+ }
2141
+ }
2142
+ }, {
2143
+ "content": "es5",
2144
+ "props": {
2145
+ "style": {
2146
+ "color": "#A3BE8C"
2147
+ }
2148
+ }
2149
+ }, {
2150
+ "content": "'",
2151
+ "props": {
2152
+ "style": {
2153
+ "color": "#ECEFF4"
2154
+ }
2155
+ }
2156
+ }, {
2157
+ "content": " ",
2158
+ "props": {
2159
+ "style": {
2160
+ "color": "#D8DEE9FF"
2161
+ }
2162
+ }
2163
+ }, {
2164
+ "content": "}",
2165
+ "props": {
2166
+ "style": {
2167
+ "color": "#ECEFF4"
2168
+ }
2169
+ }
2170
+ }, {
2171
+ "content": ";",
2172
+ "props": {
2173
+ "style": {
2174
+ "color": "#81A1C1"
2175
+ }
2176
+ }
2177
+ }]
2178
+ }, {
2179
+ "tokens": [{
2180
+ "content": " ",
2181
+ "props": {
2182
+ "style": {
2183
+ "color": "#D8DEE9FF"
2184
+ }
2185
+ }
2186
+ }, {
2187
+ "content": "}",
2188
+ "props": {
2189
+ "style": {
2190
+ "color": "#ECEFF4"
2191
+ }
2192
+ }
2193
+ }, {
2194
+ "content": ")",
2195
+ "props": {
2196
+ "style": {
2197
+ "color": "#D8DEE9FF"
2198
+ }
2199
+ }
2200
+ }, {
2201
+ "content": ";",
2202
+ "props": {
2203
+ "style": {
2204
+ "color": "#81A1C1"
2205
+ }
2206
+ }
2207
+ }]
2208
+ }, {
2209
+ "tokens": [{
2210
+ "content": " ",
2211
+ "props": {
2212
+ "style": {
2213
+ "color": "#D8DEE9FF"
2214
+ }
2215
+ }
2216
+ }, {
2217
+ "content": "},",
2218
+ "props": {
2219
+ "style": {
2220
+ "color": "#ECEFF4"
2221
+ }
2222
+ }
2223
+ }]
2224
+ }, {
2225
+ "tokens": [{
2226
+ "content": "}",
2227
+ "props": {
2228
+ "style": {
2229
+ "color": "#ECEFF4"
2230
+ }
2231
+ }
2232
+ }, {
2233
+ "content": ")",
2234
+ "props": {
2235
+ "style": {
2236
+ "color": "#D8DEE9FF"
2237
+ }
2238
+ }
2239
+ }, {
2240
+ "content": ";",
2241
+ "props": {
2242
+ "style": {
2243
+ "color": "#81A1C1"
2244
+ }
2245
+ }
2246
+ }]
2247
+ }],
2248
+ "lang": "typescript"
2249
+ },
2250
+ "annotations": []
2251
+ }]
2252
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2253
+ children: ["在上面的代码实现中,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2254
+ children: "preset.NPM_LIBRARY"
2255
+ }), " 与预设字符串 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2256
+ children: "\"npm-library\""
2257
+ }), " 是相对应的,它代表着 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2258
+ children: "\"npm-library\""
2259
+ }), " 等价的多组构建相关的配置。我们通过 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2260
+ children: "map"
2261
+ }), " 方法遍历了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2262
+ children: "NPM_LIBRARY"
2263
+ }), " 这个数组,在这个数组中包含了多个 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2264
+ children: "buildConfig"
2265
+ }), " 对象。我们将原本的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2266
+ children: "buildConfig"
2267
+ }), " 对象进行了浅拷贝并修改了浅拷贝后得到 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2268
+ children: "buildConfig.target"
2269
+ }), ",将它指定为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2270
+ children: "es5"
2271
+ }), "。"]
2272
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.blockquote, {
2273
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2274
+ children: ["关于 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2275
+ children: "preset.NPM_LIBRARY"
2276
+ }), " 具体对应的值,可以通过 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2277
+ href: "/api/config/build-preset.html",
2278
+ children: "BuildPreset API"
2279
+ }), " 查看。在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2280
+ children: "preset"
2281
+ }), " 对象下不仅包含了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2282
+ children: "NPM_LIBRARY"
2283
+ }), ",还包含了其他类似的常量。"]
2284
+ }), "\n"]
2285
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2286
+ children: ["那么这里的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2287
+ children: "buildConfig"
2288
+ }), " 对象是什么呢?之前提到的构建产物特点又是根据什么呢?"]
2289
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2290
+ children: "接下来我们解释一下。"
2291
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2292
+ id: "构建配置对象",
2293
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2294
+ className: "header-anchor",
2295
+ "aria-hidden": "true",
2296
+ href: "#构建配置对象",
2297
+ children: "#"
2298
+ }), "构建配置(对象)"]
2299
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2300
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
2301
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2302
+ children: "buildConfig"
2303
+ }), " 是一个用来描述如何编译、生成构建产物的配置对象"]
2304
+ }), "。在最开始提到的关于“", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.em, {
2305
+ children: "构建产物的特点"
2306
+ }), "”,其实都是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2307
+ children: "buildConfig"
2308
+ }), " 所支持的属性。目前所支持的属性覆盖了大部分模块类型项目在构建产物时的需求,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2309
+ children: "buildConfig"
2310
+ }), " 不仅包含一些产物所具备的属性,也包含了构建产物所需要的一些特性功能。接下来从分类的角度简单罗列一下:"]
2311
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2312
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2313
+ children: "构建产物的基本属性包括:"
2314
+ })
2315
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2316
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2317
+ children: ["产物是否被打包:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2318
+ href: "/api/config/build-config.html#buildtype-5",
2319
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2320
+ children: "buildConfig.buildType"
2321
+ })
2322
+ }), "。"]
2323
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2324
+ children: ["产物对于语法的支持:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2325
+ href: "/api/config/build-config.html#target-2",
2326
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2327
+ children: "buildConfig.target"
2328
+ })
2329
+ }), "。"]
2330
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2331
+ children: ["产物格式:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2332
+ href: "/api/config/build-config.html#format-2",
2333
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2334
+ children: "buildConfig.format"
2335
+ })
2336
+ }), "。"]
2337
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2338
+ children: ["产物类型文件如何处理,对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2339
+ href: "/api/config/build-config.html#dts-5",
2340
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2341
+ children: "buildConfig.dts"
2342
+ })
2343
+ }), "。"]
2344
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2345
+ children: ["产物的 sourceMap 如何处理:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2346
+ href: "/api/config/build-config.html#sourcemap-2",
2347
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2348
+ children: "buildConfig.sourceMap"
2349
+ })
2350
+ }), "。"]
2351
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2352
+ children: ["产物对应的输入(或者是源文件):对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2353
+ href: "/api/config/build-config.html#input-5",
2354
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2355
+ children: "buildConfig.input"
2356
+ })
2357
+ }), "。"]
2358
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2359
+ children: ["产物输出的目录:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2360
+ href: "/api/config/build-config.html#outdir-8",
2361
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2362
+ children: "buildConfig.outDir"
2363
+ })
2364
+ }), "。"]
2365
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2366
+ children: ["构建的源码目录:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2367
+ href: "/api/config/build-config.html#sourcedir-7",
2368
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2369
+ children: "buildConfig.sourceDir"
2370
+ })
2371
+ }), "。"]
2372
+ }), "\n"]
2373
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2374
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2375
+ children: "构建产物所需的常用功能包括:"
2376
+ })
2377
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2378
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2379
+ children: ["别名:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2380
+ href: "/api/config/build-config.html#alias-2",
2381
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2382
+ children: "buildConfig.alias"
2383
+ })
2384
+ }), "。"]
2385
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2386
+ children: ["静态资源处理:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2387
+ href: "/api/config/build-config.html#asset-5",
2388
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2389
+ children: "buildConfig.asset"
2390
+ })
2391
+ }), "。"]
2392
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2393
+ children: ["第三方依赖处理:对应的 API 有:", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2394
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2395
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2396
+ href: "/api/config/build-config.html#autoexternal-7",
2397
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2398
+ children: "buildConfig.autoExternal"
2399
+ })
2400
+ }), "。"]
2401
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2402
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2403
+ href: "/api/config/build-config.html#externals-10",
2404
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2405
+ children: "buildConfig.externals"
2406
+ })
2407
+ }), "。"]
2408
+ }), "\n"]
2409
+ }), "\n"]
2410
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2411
+ children: ["拷贝:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2412
+ href: "/api/config/build-config.html#copy-4",
2413
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2414
+ children: "buildConfig.copy"
2415
+ })
2416
+ }), "。"]
2417
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2418
+ children: ["全局变量替换:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2419
+ href: "/api/config/build-config.html#define-5",
2420
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2421
+ children: "buildConfig.define"
2422
+ })
2423
+ }), "。"]
2424
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2425
+ children: ["指定 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2426
+ href: "https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html",
2427
+ target: "_blank",
2428
+ rel: "nofollow",
2429
+ children: "JSX"
2430
+ }), " 编译方式,对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2431
+ href: "/api/config/build-config.html#jsx-2",
2432
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2433
+ children: "buildConfig.jsx"
2434
+ })
2435
+ }), "。"]
2436
+ }), "\n"]
2437
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2438
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2439
+ children: "一些高级属性或者使用频率不高的功能:"
2440
+ })
2441
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2442
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2443
+ children: ["产物代码压缩:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2444
+ href: "/api/config/build-config.html#minify-2",
2445
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2446
+ children: "buildConfig.minify"
2447
+ })
2448
+ }), "。"]
2449
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2450
+ children: ["代码分割:", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2451
+ href: "/api/config/build-config.html#splitting-6",
2452
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2453
+ children: "buildConfig.spitting"
2454
+ })
2455
+ })]
2456
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2457
+ children: ["指定构建产物用于 NodeJS 环境还是浏览器环境:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2458
+ href: "/api/config/build-config.html#platform-2",
2459
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2460
+ children: "buildConfig.platform"
2461
+ })
2462
+ }), "。"]
2463
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2464
+ children: ["umd 产物相关:", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2465
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2466
+ children: ["指定 umd 产物外部导入的全局变量:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2467
+ href: "/api/config/build-config.html#umdglobals-5",
2468
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2469
+ children: "buildConfig.umdGlobals"
2470
+ })
2471
+ }), "。"]
2472
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2473
+ children: ["指定 umd 产物的模块名:对应的 API 是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2474
+ href: "/api/config/build-config.html#umdmodulename-5",
2475
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2476
+ children: "buildConfig.umdModuleName"
2477
+ })
2478
+ }), "。"]
2479
+ }), "\n"]
2480
+ }), "\n"]
2481
+ }), "\n"]
2482
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2483
+ children: "除了以上分类以外,关于这些 API 的常见问题和最佳实践可以通过下面的链接来了解"
2484
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2485
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2486
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2487
+ href: "/guide/advance/in-depth-about-build.html#bundle-%E5%92%8C-bundleless-2",
2488
+ children: ["什么是 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2489
+ children: "bundle"
2490
+ }), " 和 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2491
+ children: "bundleless"
2492
+ }), "?"]
2493
+ })
2494
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2495
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2496
+ href: "/guide/advance/in-depth-about-build.html#input-%E4%B8%8E-sourcedir-%E7%9A%84%E5%85%B3%E7%B3%BB-1",
2497
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2498
+ children: "input"
2499
+ }), " 与 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2500
+ children: "sourceDir"
2501
+ }), " 的关系"]
2502
+ }), "。"]
2503
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2504
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2505
+ href: "/guide/advance/in-depth-about-build.html#%E7%B1%BB%E5%9E%8B%E6%96%87%E4%BB%B6-1",
2506
+ children: "产物中类型文件的多种生成方式"
2507
+ }), "。"]
2508
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2509
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2510
+ href: "/guide/advance/in-depth-about-build.html#buildconfigdefine-%E4%B8%8D%E5%90%8C%E5%9C%BA%E6%99%AF%E7%9A%84%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F-1",
2511
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2512
+ children: "buildConfig.define"
2513
+ }), " 不同场景的使用方式。"]
2514
+ })
2515
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2516
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2517
+ href: "/guide/advance/external-dependency.html",
2518
+ children: "如何处理第三方依赖?"
2519
+ })
2520
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2521
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2522
+ href: "/guide/advance/copy.html",
2523
+ children: "如何使用拷贝?"
2524
+ })
2525
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2526
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2527
+ href: "/guide/advance/build-umd.html#%E8%AE%BE%E7%BD%AE%E9%A1%B9%E7%9B%AE%E7%9A%84%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F%E5%90%8D%E7%A7%B0-1",
2528
+ children: "如何构建 umd 产物?"
2529
+ })
2530
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2531
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2532
+ href: "/guide/advance/asset.html",
2533
+ children: "静态资源目前所支持的能力。"
2534
+ })
2535
+ }), "\n"]
2536
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2537
+ id: "什么时候使用-buildconfig",
2538
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2539
+ className: "header-anchor",
2540
+ "aria-hidden": "true",
2541
+ href: "#什么时候使用-buildconfig",
2542
+ children: "#"
2543
+ }), "什么时候使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2544
+ children: "buildConfig"
2545
+ })]
2546
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2547
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2548
+ children: "buildConfig"
2549
+ }), " 是用于修改产物的方式之一,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
2550
+ children: ["当与 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2551
+ children: "buildPreset"
2552
+ }), " 配置同时存在的时候,只有 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2553
+ children: "buildConfig"
2554
+ }), " 才会生效"]
2555
+ }), "。因此如果按照如下方式配置:"]
2556
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2557
+ codeConfig: chCodeConfig,
2558
+ northPanel: {
2559
+ "tabs": [""],
2560
+ "active": "",
2561
+ "heightRatio": 1
2562
+ },
2563
+ files: [{
2564
+ "name": "",
2565
+ "focus": "",
2566
+ "code": {
2567
+ "lines": [{
2568
+ "tokens": [{
2569
+ "content": "import",
2570
+ "props": {
2571
+ "style": {
2572
+ "color": "#81A1C1"
2573
+ }
2574
+ }
2575
+ }, {
2576
+ "content": " ",
2577
+ "props": {
2578
+ "style": {
2579
+ "color": "#D8DEE9FF"
2580
+ }
2581
+ }
2582
+ }, {
2583
+ "content": "{",
2584
+ "props": {
2585
+ "style": {
2586
+ "color": "#ECEFF4"
2587
+ }
2588
+ }
2589
+ }, {
2590
+ "content": " ",
2591
+ "props": {
2592
+ "style": {
2593
+ "color": "#D8DEE9FF"
2594
+ }
2595
+ }
2596
+ }, {
2597
+ "content": "defineConfig",
2598
+ "props": {
2599
+ "style": {
2600
+ "color": "#D8DEE9"
2601
+ }
2602
+ }
2603
+ }, {
2604
+ "content": " ",
2605
+ "props": {
2606
+ "style": {
2607
+ "color": "#D8DEE9FF"
2608
+ }
2609
+ }
2610
+ }, {
2611
+ "content": "}",
2612
+ "props": {
2613
+ "style": {
2614
+ "color": "#ECEFF4"
2615
+ }
2616
+ }
2617
+ }, {
2618
+ "content": " ",
2619
+ "props": {
2620
+ "style": {
2621
+ "color": "#D8DEE9FF"
2622
+ }
2623
+ }
2624
+ }, {
2625
+ "content": "from",
2626
+ "props": {
2627
+ "style": {
2628
+ "color": "#81A1C1"
2629
+ }
2630
+ }
2631
+ }, {
2632
+ "content": " ",
2633
+ "props": {
2634
+ "style": {
2635
+ "color": "#D8DEE9FF"
2636
+ }
2637
+ }
2638
+ }, {
2639
+ "content": "'",
2640
+ "props": {
2641
+ "style": {
2642
+ "color": "#ECEFF4"
2643
+ }
2644
+ }
2645
+ }, {
2646
+ "content": "@modern-js/module-tools",
2647
+ "props": {
2648
+ "style": {
2649
+ "color": "#A3BE8C"
2650
+ }
2651
+ }
2652
+ }, {
2653
+ "content": "'",
2654
+ "props": {
2655
+ "style": {
2656
+ "color": "#ECEFF4"
2657
+ }
2658
+ }
2659
+ }, {
2660
+ "content": ";",
2661
+ "props": {
2662
+ "style": {
2663
+ "color": "#81A1C1"
2664
+ }
2665
+ }
2666
+ }]
2667
+ }, {
2668
+ "tokens": []
2669
+ }, {
2670
+ "tokens": [{
2671
+ "content": "export",
2672
+ "props": {
2673
+ "style": {
2674
+ "color": "#81A1C1"
2675
+ }
2676
+ }
2677
+ }, {
2678
+ "content": " ",
2679
+ "props": {
2680
+ "style": {
2681
+ "color": "#D8DEE9FF"
2682
+ }
2683
+ }
2684
+ }, {
2685
+ "content": "default",
2686
+ "props": {
2687
+ "style": {
2688
+ "color": "#81A1C1"
2689
+ }
2690
+ }
2691
+ }, {
2692
+ "content": " ",
2693
+ "props": {
2694
+ "style": {
2695
+ "color": "#D8DEE9FF"
2696
+ }
2697
+ }
2698
+ }, {
2699
+ "content": "defineConfig",
2700
+ "props": {
2701
+ "style": {
2702
+ "color": "#88C0D0"
2703
+ }
2704
+ }
2705
+ }, {
2706
+ "content": "(",
2707
+ "props": {
2708
+ "style": {
2709
+ "color": "#D8DEE9FF"
2710
+ }
2711
+ }
2712
+ }, {
2713
+ "content": "{",
2714
+ "props": {
2715
+ "style": {
2716
+ "color": "#ECEFF4"
2717
+ }
2718
+ }
2719
+ }]
2720
+ }, {
2721
+ "tokens": [{
2722
+ "content": " ",
2723
+ "props": {
2724
+ "style": {
2725
+ "color": "#D8DEE9FF"
2726
+ }
2727
+ }
2728
+ }, {
2729
+ "content": "buildConfig",
2730
+ "props": {
2731
+ "style": {
2732
+ "color": "#D8DEE9"
2733
+ }
2734
+ }
2735
+ }, {
2736
+ "content": ":",
2737
+ "props": {
2738
+ "style": {
2739
+ "color": "#ECEFF4"
2740
+ }
2741
+ }
2742
+ }, {
2743
+ "content": " ",
2744
+ "props": {
2745
+ "style": {
2746
+ "color": "#D8DEE9FF"
2747
+ }
2748
+ }
2749
+ }, {
2750
+ "content": "{",
2751
+ "props": {
2752
+ "style": {
2753
+ "color": "#ECEFF4"
2754
+ }
2755
+ }
2756
+ }]
2757
+ }, {
2758
+ "tokens": [{
2759
+ "content": " ",
2760
+ "props": {
2761
+ "style": {
2762
+ "color": "#D8DEE9FF"
2763
+ }
2764
+ }
2765
+ }, {
2766
+ "content": "format",
2767
+ "props": {
2768
+ "style": {
2769
+ "color": "#D8DEE9"
2770
+ }
2771
+ }
2772
+ }, {
2773
+ "content": ":",
2774
+ "props": {
2775
+ "style": {
2776
+ "color": "#ECEFF4"
2777
+ }
2778
+ }
2779
+ }, {
2780
+ "content": " ",
2781
+ "props": {
2782
+ "style": {
2783
+ "color": "#D8DEE9FF"
2784
+ }
2785
+ }
2786
+ }, {
2787
+ "content": "'",
2788
+ "props": {
2789
+ "style": {
2790
+ "color": "#ECEFF4"
2791
+ }
2792
+ }
2793
+ }, {
2794
+ "content": "umd",
2795
+ "props": {
2796
+ "style": {
2797
+ "color": "#A3BE8C"
2798
+ }
2799
+ }
2800
+ }, {
2801
+ "content": "'",
2802
+ "props": {
2803
+ "style": {
2804
+ "color": "#ECEFF4"
2805
+ }
2806
+ }
2807
+ }, {
2808
+ "content": ",",
2809
+ "props": {
2810
+ "style": {
2811
+ "color": "#ECEFF4"
2812
+ }
2813
+ }
2814
+ }]
2815
+ }, {
2816
+ "tokens": [{
2817
+ "content": " ",
2818
+ "props": {
2819
+ "style": {
2820
+ "color": "#D8DEE9FF"
2821
+ }
2822
+ }
2823
+ }, {
2824
+ "content": "},",
2825
+ "props": {
2826
+ "style": {
2827
+ "color": "#ECEFF4"
2828
+ }
2829
+ }
2830
+ }]
2831
+ }, {
2832
+ "tokens": [{
2833
+ "content": " ",
2834
+ "props": {
2835
+ "style": {
2836
+ "color": "#D8DEE9FF"
2837
+ }
2838
+ }
2839
+ }, {
2840
+ "content": "buildPreset",
2841
+ "props": {
2842
+ "style": {
2843
+ "color": "#D8DEE9"
2844
+ }
2845
+ }
2846
+ }, {
2847
+ "content": ":",
2848
+ "props": {
2849
+ "style": {
2850
+ "color": "#ECEFF4"
2851
+ }
2852
+ }
2853
+ }, {
2854
+ "content": " ",
2855
+ "props": {
2856
+ "style": {
2857
+ "color": "#D8DEE9FF"
2858
+ }
2859
+ }
2860
+ }, {
2861
+ "content": "'",
2862
+ "props": {
2863
+ "style": {
2864
+ "color": "#ECEFF4"
2865
+ }
2866
+ }
2867
+ }, {
2868
+ "content": "npm-library",
2869
+ "props": {
2870
+ "style": {
2871
+ "color": "#A3BE8C"
2872
+ }
2873
+ }
2874
+ }, {
2875
+ "content": "'",
2876
+ "props": {
2877
+ "style": {
2878
+ "color": "#ECEFF4"
2879
+ }
2880
+ }
2881
+ }, {
2882
+ "content": ",",
2883
+ "props": {
2884
+ "style": {
2885
+ "color": "#ECEFF4"
2886
+ }
2887
+ }
2888
+ }]
2889
+ }, {
2890
+ "tokens": [{
2891
+ "content": "}",
2892
+ "props": {
2893
+ "style": {
2894
+ "color": "#ECEFF4"
2895
+ }
2896
+ }
2897
+ }, {
2898
+ "content": ")",
2899
+ "props": {
2900
+ "style": {
2901
+ "color": "#D8DEE9FF"
2902
+ }
2903
+ }
2904
+ }, {
2905
+ "content": ";",
2906
+ "props": {
2907
+ "style": {
2908
+ "color": "#81A1C1"
2909
+ }
2910
+ }
2911
+ }]
2912
+ }],
2913
+ "lang": "typescript"
2914
+ },
2915
+ "annotations": []
2916
+ }]
2917
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2918
+ children: "那么此时就会看到如下提示:"
2919
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2920
+ codeConfig: chCodeConfig,
2921
+ northPanel: {
2922
+ "tabs": [""],
2923
+ "active": "",
2924
+ "heightRatio": 1
2925
+ },
2926
+ files: [{
2927
+ "name": "",
2928
+ "focus": "",
2929
+ "code": {
2930
+ "lines": [{
2931
+ "tokens": [{
2932
+ "content": "因为同时出现 ",
2933
+ "props": {
2934
+ "style": {
2935
+ "color": "#D8DEE9FF"
2936
+ }
2937
+ }
2938
+ }, {
2939
+ "content": "'",
2940
+ "props": {
2941
+ "style": {
2942
+ "color": "#ECEFF4"
2943
+ }
2944
+ }
2945
+ }, {
2946
+ "content": "buildConfig",
2947
+ "props": {
2948
+ "style": {
2949
+ "color": "#A3BE8C"
2950
+ }
2951
+ }
2952
+ }, {
2953
+ "content": "'",
2954
+ "props": {
2955
+ "style": {
2956
+ "color": "#ECEFF4"
2957
+ }
2958
+ }
2959
+ }, {
2960
+ "content": " 和 ",
2961
+ "props": {
2962
+ "style": {
2963
+ "color": "#D8DEE9FF"
2964
+ }
2965
+ }
2966
+ }, {
2967
+ "content": "'",
2968
+ "props": {
2969
+ "style": {
2970
+ "color": "#ECEFF4"
2971
+ }
2972
+ }
2973
+ }, {
2974
+ "content": "buildPreset",
2975
+ "props": {
2976
+ "style": {
2977
+ "color": "#A3BE8C"
2978
+ }
2979
+ }
2980
+ }, {
2981
+ "content": "'",
2982
+ "props": {
2983
+ "style": {
2984
+ "color": "#ECEFF4"
2985
+ }
2986
+ }
2987
+ }, {
2988
+ "content": " 配置,因此仅 ",
2989
+ "props": {
2990
+ "style": {
2991
+ "color": "#D8DEE9FF"
2992
+ }
2993
+ }
2994
+ }, {
2995
+ "content": "'",
2996
+ "props": {
2997
+ "style": {
2998
+ "color": "#ECEFF4"
2999
+ }
3000
+ }
3001
+ }, {
3002
+ "content": "buildConfig",
3003
+ "props": {
3004
+ "style": {
3005
+ "color": "#A3BE8C"
3006
+ }
3007
+ }
3008
+ }, {
3009
+ "content": "'",
3010
+ "props": {
3011
+ "style": {
3012
+ "color": "#ECEFF4"
3013
+ }
3014
+ }
3015
+ }, {
3016
+ "content": " 配置生效",
3017
+ "props": {
3018
+ "style": {
3019
+ "color": "#D8DEE9FF"
3020
+ }
3021
+ }
3022
+ }]
3023
+ }],
3024
+ "lang": "bash"
3025
+ },
3026
+ "annotations": []
3027
+ }]
3028
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3029
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3030
+ children: "buildPreset"
3031
+ }), " 代表的一组或者多组构建相关的配置都是由 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3032
+ children: "buildConfig"
3033
+ }), " 组成,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
3034
+ children: ["当使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3035
+ children: "buildPreset"
3036
+ }), " 无法满足当前项目需求的时候,就可以使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3037
+ children: "buildConfig"
3038
+ }), " 来自定义输出产物"]
3039
+ }), "。"]
3040
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3041
+ children: ["在使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3042
+ children: "buildConfig"
3043
+ }), " 的过程,就是对", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
3044
+ children: "获得怎样的构建产物"
3045
+ }), "的思考过程。"]
3046
+ })]
3047
+ });
3048
+ }
3049
+ function MDXContent(props = {}) {
3050
+ const {wrapper: MDXLayout} = props.components || ({});
3051
+ return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
3052
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
3053
+ })) : _createMdxContent(props);
3054
+ }
3055
+ /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
3056
+ function _missingMdxReference(id, component, place) {
3057
+ 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/zh/guide/basic/modify-output-product.md`" : ""));
3058
+ }
3059
+
3060
+
3061
+ /***/ })
3062
+
3063
+ }]);
3064
+ //# sourceMappingURL=zh_guide_basic_modify-output-product.js.map