@modern-js/module-tools-docs 2.2.0 → 2.2.1-beta.1
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.
- package/LICENSE +144 -0
- package/doc_build/html/main/index.html +16 -0
- package/doc_build/route.json +10 -0
- package/doc_build/static/css/main.css +2977 -0
- package/doc_build/static/css/main.css.map +1 -0
- 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
- 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
- package/doc_build/static/js/async/en_api_config_build-config.js +8406 -0
- package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -0
- package/doc_build/static/js/async/en_api_config_build-preset.js +7865 -0
- package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -0
- package/doc_build/static/js/async/en_api_config_design-system.js +47805 -0
- package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -0
- package/doc_build/static/js/async/en_api_config_plugins.js +1488 -0
- package/doc_build/static/js/async/en_api_config_plugins.js.map +1 -0
- package/doc_build/static/js/async/en_api_config_testing.js +2139 -0
- package/doc_build/static/js/async/en_api_config_testing.js.map +1 -0
- package/doc_build/static/js/async/en_api_index.js +51 -0
- package/doc_build/static/js/async/en_api_index.js.map +1 -0
- package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +14360 -0
- package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -0
- package/doc_build/static/js/async/en_guide_advance_asset.js +3972 -0
- package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -0
- package/doc_build/static/js/async/en_guide_advance_build-umd.js +9857 -0
- package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +1 -0
- package/doc_build/static/js/async/en_guide_advance_copy.js +6541 -0
- package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -0
- package/doc_build/static/js/async/en_guide_advance_external-dependency.js +3806 -0
- package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +1 -0
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +5304 -0
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -0
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +2526 -0
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -0
- package/doc_build/static/js/async/en_guide_advance_theme-config.js +2486 -0
- package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -0
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +3720 -0
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -0
- package/doc_build/static/js/async/en_guide_basic_command-preview.js +3973 -0
- package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -0
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +3137 -0
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -0
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +2180 -0
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -0
- package/doc_build/static/js/async/en_guide_basic_test-your-project.js +3887 -0
- package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -0
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +2973 -0
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -0
- package/doc_build/static/js/async/en_guide_basic_using-storybook.js +4723 -0
- package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -0
- package/doc_build/static/js/async/en_guide_best-practices_components.js +21400 -0
- package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -0
- package/doc_build/static/js/async/en_guide_intro_getting-started.js +2149 -0
- package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -0
- package/doc_build/static/js/async/en_guide_intro_welcome.js +162 -0
- package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -0
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +96 -0
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -0
- package/doc_build/static/js/async/en_index.js +81 -0
- package/doc_build/static/js/async/en_index.js.map +1 -0
- package/doc_build/static/js/async/en_plugins_guide_getting-started.js +2556 -0
- package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +1 -0
- package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +4173 -0
- package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +1 -0
- package/doc_build/static/js/async/en_plugins_guide_setup-function.js +3815 -0
- package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -0
- package/doc_build/static/js/async/en_plugins_official-list_overview.js +66 -0
- package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +1 -0
- package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +246 -0
- package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -0
- 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
- 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
- package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +54 -0
- 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
- package/doc_build/static/js/async/zh_api_config_build-config.js +11354 -0
- package/doc_build/static/js/async/zh_api_config_build-config.js.map +1 -0
- package/doc_build/static/js/async/zh_api_config_build-preset.js +7867 -0
- package/doc_build/static/js/async/zh_api_config_build-preset.js.map +1 -0
- package/doc_build/static/js/async/zh_api_config_design-system.js +48712 -0
- package/doc_build/static/js/async/zh_api_config_design-system.js.map +1 -0
- package/doc_build/static/js/async/zh_api_config_plugins.js +1488 -0
- package/doc_build/static/js/async/zh_api_config_plugins.js.map +1 -0
- package/doc_build/static/js/async/zh_api_config_testing.js +2132 -0
- package/doc_build/static/js/async/zh_api_config_testing.js.map +1 -0
- package/doc_build/static/js/async/zh_api_index.js +52 -0
- package/doc_build/static/js/async/zh_api_index.js.map +1 -0
- package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js +14392 -0
- package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_advance_asset.js +3972 -0
- package/doc_build/static/js/async/zh_guide_advance_asset.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_advance_build-umd.js +9859 -0
- package/doc_build/static/js/async/zh_guide_advance_build-umd.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_advance_copy.js +6541 -0
- package/doc_build/static/js/async/zh_guide_advance_copy.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_advance_external-dependency.js +3808 -0
- package/doc_build/static/js/async/zh_guide_advance_external-dependency.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js +5304 -0
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js +2526 -0
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_advance_theme-config.js +2477 -0
- package/doc_build/static/js/async/zh_guide_advance_theme-config.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js +3711 -0
- package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_basic_command-preview.js +3805 -0
- package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js +3142 -0
- package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js +2241 -0
- package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_basic_test-your-project.js +4286 -0
- package/doc_build/static/js/async/zh_guide_basic_test-your-project.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js +2979 -0
- package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_basic_using-storybook.js +4760 -0
- package/doc_build/static/js/async/zh_guide_basic_using-storybook.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_best-practices_components.js +21100 -0
- package/doc_build/static/js/async/zh_guide_best-practices_components.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_intro_getting-started.js +2031 -0
- package/doc_build/static/js/async/zh_guide_intro_getting-started.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_intro_welcome.js +162 -0
- package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +1 -0
- package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js +96 -0
- package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +1 -0
- package/doc_build/static/js/async/zh_index.js +81 -0
- package/doc_build/static/js/async/zh_index.js.map +1 -0
- package/doc_build/static/js/async/zh_plugins_guide_getting-started.js +2604 -0
- package/doc_build/static/js/async/zh_plugins_guide_getting-started.js.map +1 -0
- package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js +4169 -0
- package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js.map +1 -0
- package/doc_build/static/js/async/zh_plugins_guide_setup-function.js +3815 -0
- package/doc_build/static/js/async/zh_plugins_guide_setup-function.js.map +1 -0
- package/doc_build/static/js/async/zh_plugins_official-list_overview.js +66 -0
- package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +1 -0
- package/doc_build/static/js/builder-runtime.js +1375 -0
- package/doc_build/static/js/builder-runtime.js.map +1 -0
- package/doc_build/static/js/lib-lodash.js +4907 -0
- package/doc_build/static/js/lib-lodash.js.map +1 -0
- package/doc_build/static/js/lib-polyfill.js +11847 -0
- package/doc_build/static/js/lib-polyfill.js.map +1 -0
- package/doc_build/static/js/lib-react.js +39510 -0
- package/doc_build/static/js/lib-react.js.map +1 -0
- package/doc_build/static/js/main.js +8610 -0
- package/doc_build/static/js/main.js.map +1 -0
- 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
- 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
- package/doc_build/static/search_index.json +1 -1
- package/docs/en/guide/advance/in-depth-about-dev-command.md +65 -12
- package/docs/en/guide/basic/before-getting-started.md +4 -14
- package/docs/en/guide/basic/command-preview.md +1 -1
- package/docs/en/guide/basic/modify-output-product.md +6 -2
- package/docs/en/guide/basic/use-micro-generator.md +62 -1
- package/docs/en/guide/basic/using-storybook.mdx +4 -4
- package/docs/en/guide/intro/getting-started.md +16 -7
- package/docs/zh/guide/advance/in-depth-about-dev-command.md +60 -13
- package/docs/zh/guide/basic/before-getting-started.md +4 -14
- package/docs/zh/guide/basic/command-preview.md +2 -2
- package/docs/zh/guide/basic/modify-output-product.md +5 -3
- package/docs/zh/guide/basic/publish-your-project.md +4 -4
- package/docs/zh/guide/basic/test-your-project.mdx +18 -5
- package/docs/zh/guide/basic/use-micro-generator.md +61 -1
- package/docs/zh/guide/basic/using-storybook.mdx +13 -10
- package/docs/zh/guide/intro/getting-started.md +17 -11
- package/package.json +3 -3
- package/doc_build/api/config/build-config.html +0 -332
- package/doc_build/api/config/build-preset.html +0 -43
- package/doc_build/api/config/design-system.html +0 -103
- package/doc_build/api/config/plugins.html +0 -7
- package/doc_build/api/config/testing.html +0 -21
- package/doc_build/api/index.html +0 -1
- package/doc_build/api/plugin-api/plugin-hooks.html +0 -113
- package/doc_build/en/api/config/build-config.html +0 -316
- package/doc_build/en/api/config/build-preset.html +0 -43
- package/doc_build/en/api/config/design-system.html +0 -117
- package/doc_build/en/api/config/plugins.html +0 -7
- package/doc_build/en/api/config/testing.html +0 -21
- package/doc_build/en/api/index.html +0 -1
- package/doc_build/en/api/plugin-api/plugin-hooks.html +0 -113
- package/doc_build/en/guide/advance/asset.html +0 -25
- package/doc_build/en/guide/advance/build-umd.html +0 -32
- package/doc_build/en/guide/advance/copy.html +0 -42
- package/doc_build/en/guide/advance/external-dependency.html +0 -31
- package/doc_build/en/guide/advance/in-depth-about-build.html +0 -112
- package/doc_build/en/guide/advance/in-depth-about-dev-command.html +0 -12
- package/doc_build/en/guide/advance/theme-config.html +0 -29
- package/doc_build/en/guide/basic/before-getting-started.html +0 -89
- package/doc_build/en/guide/basic/command-preview.html +0 -63
- package/doc_build/en/guide/basic/modify-output-product.html +0 -98
- package/doc_build/en/guide/basic/publish-your-project.html +0 -50
- package/doc_build/en/guide/basic/test-your-project.html +0 -31
- package/doc_build/en/guide/basic/use-micro-generator.html +0 -29
- package/doc_build/en/guide/basic/using-storybook.html +0 -66
- package/doc_build/en/guide/best-practices/components.html +0 -111
- package/doc_build/en/guide/intro/getting-started.html +0 -36
- package/doc_build/en/guide/intro/welcome.html +0 -13
- package/doc_build/en/guide/intro/why-module-engineering-solution.html +0 -9
- package/doc_build/en/index.html +0 -1
- package/doc_build/en/plugins/guide/getting-started.html +0 -15
- package/doc_build/en/plugins/guide/plugin-object.html +0 -14
- package/doc_build/en/plugins/guide/setup-function.html +0 -30
- package/doc_build/en/plugins/official-list/overview.html +0 -3
- package/doc_build/guide/advance/asset.html +0 -25
- package/doc_build/guide/advance/build-umd.html +0 -32
- package/doc_build/guide/advance/copy.html +0 -42
- package/doc_build/guide/advance/external-dependency.html +0 -31
- package/doc_build/guide/advance/in-depth-about-build.html +0 -112
- package/doc_build/guide/advance/in-depth-about-dev-command.html +0 -14
- package/doc_build/guide/advance/theme-config.html +0 -28
- package/doc_build/guide/basic/before-getting-started.html +0 -89
- package/doc_build/guide/basic/command-preview.html +0 -63
- package/doc_build/guide/basic/modify-output-product.html +0 -97
- package/doc_build/guide/basic/publish-your-project.html +0 -52
- package/doc_build/guide/basic/test-your-project.html +0 -32
- package/doc_build/guide/basic/use-micro-generator.html +0 -27
- package/doc_build/guide/basic/using-storybook.html +0 -67
- package/doc_build/guide/best-practices/components.html +0 -111
- package/doc_build/guide/intro/getting-started.html +0 -39
- package/doc_build/guide/intro/welcome.html +0 -13
- package/doc_build/guide/intro/why-module-engineering-solution.html +0 -9
- package/doc_build/index.html +0 -1
- package/doc_build/plugins/guide/getting-started.html +0 -15
- package/doc_build/plugins/guide/plugin-object.html +0 -14
- package/doc_build/plugins/guide/setup-function.html +0 -30
- package/doc_build/plugins/official-list/overview.html +0 -3
- package/doc_build/static/css/main.edaad072.css +0 -1
- package/doc_build/static/js/1607.70af642a.js +0 -2
- package/doc_build/static/js/1607.70af642a.js.LICENSE.txt +0 -23
- package/doc_build/static/js/async/3799.e31e8293.js +0 -1
- package/doc_build/static/js/async/8652.6fbf1cb7.js +0 -1
- package/doc_build/static/js/async/en_api_config_build-config.367a5701.js +0 -1
- package/doc_build/static/js/async/en_api_config_build-preset.0d78b268.js +0 -1
- package/doc_build/static/js/async/en_api_config_design-system.b28d6723.js +0 -1
- package/doc_build/static/js/async/en_api_config_plugins.fc95fb77.js +0 -1
- package/doc_build/static/js/async/en_api_config_testing.8bc7f316.js +0 -1
- package/doc_build/static/js/async/en_api_index.669f0a56.js +0 -1
- package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.60d0260c.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_asset.5ff1d623.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_build-umd.c254ed46.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_copy.45c0a51d.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_external-dependency.a52d3247.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.51bf3569.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.aec0b4e1.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_theme-config.db0ad9fc.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.a22fc49a.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_command-preview.1707ed29.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.ad453d13.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.08c5112f.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_test-your-project.f5f6b204.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.56325139.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_using-storybook.9d721554.js +0 -1
- package/doc_build/static/js/async/en_guide_best-practices_components.45155af9.js +0 -1
- package/doc_build/static/js/async/en_guide_intro_getting-started.f8682be3.js +0 -1
- package/doc_build/static/js/async/en_guide_intro_welcome.9cc45924.js +0 -1
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.7f2dae5c.js +0 -1
- package/doc_build/static/js/async/en_index.7bd869c4.js +0 -1
- package/doc_build/static/js/async/en_plugins_guide_getting-started.b850249c.js +0 -1
- package/doc_build/static/js/async/en_plugins_guide_plugin-object.bf6c6221.js +0 -1
- package/doc_build/static/js/async/en_plugins_guide_setup-function.80a2bd97.js +0 -1
- package/doc_build/static/js/async/en_plugins_official-list_overview.84e5cea0.js +0 -1
- package/doc_build/static/js/async/zh_api_config_build-config.048fd5ec.js +0 -1
- package/doc_build/static/js/async/zh_api_config_build-preset.7c13584d.js +0 -1
- package/doc_build/static/js/async/zh_api_config_design-system.1eecd474.js +0 -1
- package/doc_build/static/js/async/zh_api_config_plugins.c22dc4be.js +0 -1
- package/doc_build/static/js/async/zh_api_config_testing.a9888eed.js +0 -1
- package/doc_build/static/js/async/zh_api_index.22957707.js +0 -1
- package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.a4d81bf6.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_asset.5b936003.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_build-umd.b6d541ff.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_copy.21a1aea4.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_external-dependency.c7cf5d4b.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.64e795f3.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.168ce7dd.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_theme-config.b9570109.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_before-getting-started.6b06b54a.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_command-preview.1199124a.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_modify-output-product.8ccbc8d1.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_publish-your-project.bf11b1c4.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_test-your-project.ae52c47a.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.a091d57d.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_using-storybook.27829e44.js +0 -1
- package/doc_build/static/js/async/zh_guide_best-practices_components.7454d916.js +0 -1
- package/doc_build/static/js/async/zh_guide_intro_getting-started.a4c00d9a.js +0 -1
- package/doc_build/static/js/async/zh_guide_intro_welcome.71c3fe16.js +0 -1
- package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.6f8b5ff6.js +0 -1
- package/doc_build/static/js/async/zh_index.c19f9dcf.js +0 -1
- package/doc_build/static/js/async/zh_plugins_guide_getting-started.099dfaea.js +0 -1
- package/doc_build/static/js/async/zh_plugins_guide_plugin-object.963289d5.js +0 -1
- package/doc_build/static/js/async/zh_plugins_guide_setup-function.67d07b91.js +0 -1
- package/doc_build/static/js/async/zh_plugins_official-list_overview.a7635714.js +0 -1
- package/doc_build/static/js/lib-lodash.c5845536.js +0 -1
- package/doc_build/static/js/lib-polyfill.b3038509.js +0 -1
- package/doc_build/static/js/lib-react.d41ace5e.js +0 -2
- package/doc_build/static/js/lib-react.d41ace5e.js.LICENSE.txt +0 -29
- package/doc_build/static/js/main.2d3257a4.js +0 -1
|
@@ -0,0 +1,3137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["en_guide_basic_modify-output-product"],{
|
|
3
|
+
|
|
4
|
+
/***/ "./docs/en/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/bytedance/github/targeral/modern-dev/website/module-tools/docs/en/guide/basic/modify-output-product.md"
|
|
1189
|
+
};
|
|
1190
|
+
const frontmatter = {
|
|
1191
|
+
"sidebar_position": 3
|
|
1192
|
+
};
|
|
1193
|
+
const toc = [{
|
|
1194
|
+
"id": "modify-the-output-product",
|
|
1195
|
+
"text": "Modify the output product",
|
|
1196
|
+
"depth": 2
|
|
1197
|
+
}, {
|
|
1198
|
+
"id": "default-output-products",
|
|
1199
|
+
"text": "Default output products",
|
|
1200
|
+
"depth": 2
|
|
1201
|
+
}, {
|
|
1202
|
+
"id": "buildpreset",
|
|
1203
|
+
"text": "buildPreset",
|
|
1204
|
+
"depth": 2
|
|
1205
|
+
}, {
|
|
1206
|
+
"id": "string-form-of-build-preset",
|
|
1207
|
+
"text": "String form of build preset",
|
|
1208
|
+
"depth": 3
|
|
1209
|
+
}, {
|
|
1210
|
+
"id": "build-pre-defined-function-forms",
|
|
1211
|
+
"text": "Build pre-defined function forms",
|
|
1212
|
+
"depth": 3
|
|
1213
|
+
}, {
|
|
1214
|
+
"id": "build-configuration-object",
|
|
1215
|
+
"text": "Build configuration (object)",
|
|
1216
|
+
"depth": 2
|
|
1217
|
+
}, {
|
|
1218
|
+
"id": "when-to-use-buildconfig",
|
|
1219
|
+
"text": "When to use buildConfig",
|
|
1220
|
+
"depth": 2
|
|
1221
|
+
}];
|
|
1222
|
+
const title = `modify-output-product`;
|
|
1223
|
+
const content = "\"---\\nsidebar_position: 3\\n---\\n# modify-output-product\\n\\n## Modify the output product\\n\\n## Default output products\\n\\nWhen the `modern build` command is used in an initialized project, the products are generated according to the default configuration supported by Module Tools. The default supported configurations are specified as follows.\\n\\n```typescript\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n plugins: [moduleTools()],\\n buildPreset: 'npm-library',\\n});\\n```\\n\\n**The default generation product has the following characteristics**.\\n\\n- will generate [CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-modules) and [ESM](https://nodejs.org/api/esm.html#modules- ecmascript-modules).\\n- The code syntax is supported up to `ES6` , and more advanced syntax will be converted.\\n- All code is packaged into one file, i.e. **bundle** processing is performed.\\n- The output root directory is the `dist` directory under the project, and the type file output directory is `dist/types`.\\n\\nYou may have the following questions when you see this.\\n\\n1. what is `buildPreset`?\\n2. what determines these characteristics of the product?\\n\\nThen the next step is to first explain `buildPreset`.\\n\\n## buildPreset\\n\\nThe `buildPreset` represents one or more sets of build-related configurations prepared in advance. By using the corresponding preset values of the `buildPreset`, you can eliminate the troublesome and complicated configuration work and get the expected product.\\n\\n### String form of build preset\\n\\nThe value of a **build preset can be in the form of a string**, so a build preset of this form is called a preset string.\\n\\nThe module engineering solution provides generic build preset strings and corresponding variants, depending on the generic scenario in which the npm package is used. All currently supported preset strings can be viewed via the [BuildPreset API](/api/config/build-preset). Here is an explanation about the relationship between **generic preset strings and variants**.\\n\\nAmong the generic preset strings, `\\\"npm-library\\\"` can be used in the scenario of developing npm packages of the library type, which is suitable for most common module type projects. When `\\\"npm-library\\\"` is set, the output product of the project will have the following characteristics.\\n\\n- In the `dist/lib` directory you will get code formatted as `cjs`, syntax supported up to `es6` and packaged.\\n- In the `dist/es` directory, you get code in the format `esm`, with syntax support up to `es6` and after packaging.\\n- In the `dist/types` directory, you get the type files. If it is not a TypeScript project, there is no such directory.\\n\\nThe default string `\\\"npm-library\\\"` is a variant of the original product with a modified **code syntax support** feature and a string naming change to `\\\"npm-library-[es5 | es2016.... . es2020 | esnext]\\\"`.\\n\\nFor example, if the output product is based on the preset string `\\\"npm-library\\\"` and the syntax supported by the product code is changed to `es5`, then simply changing `\\\"npm-library\\\"` to `\\\"npm-library-es5\\\"` would be sufficient.\\n\\n### Build pre-defined function forms\\n\\n**In addition to the string form, the value of a build preset can also be in the form of a function, where the specific configuration corresponding to a preset value can be printed or modified**.\\n\\nFor example, to achieve the same effect as the preset string ``npm-library-es5\\\"` using the form of a preset function, you can do the following.\\n\\n```typescript\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n plugins: [moduleTools()],\\n buildPreset({ preset }) {\\n return preset.NPM_LIBRARY.map(config => {\\n return { ... .config, target: 'es5' }\\n });\\n },\\n});\\n```\\n\\nIn the above code implementation, `preset.NPM_LIBRARY` corresponds to the preset string `\\\"npm-library\\\"`, which represents the equivalent of `\\\"npm-library\\\"` for multiple sets of build-related configurations. We traverse the `NPM_LIBRARY` array, which contains multiple `buildConfig` objects, using the `map` method. We made a shallow copy of the original `buildConfig` object and modified the value of the `target` after the shallow copy, specifying it as `es5`.\\n\\n\\n> NPM_LIBRARY`, you can check it with [BuildPreset API](/api/config/build-preset). The`preset`object contains not only`NPM_LIBRARY`, but also other similar constants.\\n> We can not only use `preset.NPM_LIBRARY` to get the build configuration corresponding to `\\\"npm-library\\\"`, but also `preset['npm-library']` in this way.\\n\\nSo what is the `buildConfig` object here? What is the basis for the build product feature mentioned before?\\n\\nLet's explain next.\\n\\n## Build configuration (object)\\n\\n**`buildConfig` is a configuration object that describes how to compile and generate build products**. What was mentioned at the beginning about \\\"_features of build products_\\\" are actually properties supported by `buildConfig`. The currently supported properties cover the needs of most module type projects when building products. `buildConfig` not only contains some properties that products have, but also contains some features needed to build products. The following is a brief list from a classification point of view.\\n\\n**The basic attributes of a build product include:**\\n\\n- Whether the product is packaged or not: the corresponding API is [`buildConfig.buildType`](/api/config/build-config#buildtype).\\n- Product support for syntax: the corresponding API is [`buildConfig.target`](/api/config/build-config#target).\\n- Output format: the corresponding API is [`buildConfig.format`](/api/config/build-config#format).\\n- How the output type file is handled: the corresponding API is [`buildConfig.dts`](/api/config/build-config#dts).\\n- How the sourceMap of the product is handled: the corresponding API is [`buildConfig.sourceMap`](/api/config/build-config#sourcemap).\\n- The input (or source file) corresponding to the output: the corresponding API is [`buildConfig.input`](/api/config/build-config#input).\\n- The directory of the output of the product: the corresponding API is [`buildConfig.outDir`](/api/config/build-config#outDir).\\n- Build source directory: the corresponding API is [`buildConfig.sourceDir`](/api/config/build-config#sourcedir).\\n\\n**Common functions required for build products include:**\\n\\n- Alias: The corresponding API is [`buildConfig.alias`](/api/config/build-config#alias).\\n- Static resource handling: the corresponding API is [`buildConfig.asset`](/api/config/build-config#asset).\\n- Third-party dependency handling: The corresponding APIs are\\n - [`buildConfig.autoExternal`](/api/config/build-config#autoexternal).\\n - [`buildConfig.externals`](/api/config/build-config#externals).\\n- Copy: The corresponding API is [`buildConfig.copy`](/api/config/build-config#copy).\\n- Global variable substitution: the corresponding API is [`buildConfig.define`](/api/config/build-config#define).\\n- Specify [JSX](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) compilation method, the corresponding API is [`buildConfig.jsx`](/api/config/ build-config#jsx).\\n\\n**Some advanced properties or less frequently used functions:**\\n\\n- Product code compression: The corresponding API is [`buildConfig.minify`](/api/config/build-config#minify).\\n- Code splitting: [`buildConfig.splitting`](/api/config/build-config#splitting)\\n- Specify whether the build product is for the NodeJS environment or the browser environment: the corresponding API is [`buildConfig.platform`](/api/config/build-config#platform).\\n- umd product-related.\\n - Specifies the global variables imported externally to the umd product: the corresponding API is [`buildConfig.umdGlobals`](/api/config/build-config#umdglobals).\\n - Specify the module name of the umd product: the corresponding API is [`buildConfig.umdModuleName`](/api/config/build-config#umdmodulename).\\n\\nIn addition to the above categories, frequently asked questions and best practices about these APIs can be found at the following links\\n\\n- [What are `bundle` and `bundleless`?](/guide/advance/in-depth-about-build#bundle- and-bundleless)\\n- [Relationship of `input` to `sourceDir`](/guide/advance/in-depth-about-build#input- to -sourcedir-)\\n- [Multiple ways to generate type files in product](/guide/advance/in-depth-about-build#type-files).\\n- [`buildConfig.define` Different ways to use it for different scenarios.](/guide/advance/in-depth-about-build#buildconfigdefine - How to use it for different scenarios)\\n- [How to handle third-party dependencies?](/guide/advance/external-dependency)\\n- [How to use copy?](/guide/advance/copy)\\n- How do I build umd products? (/guide/advance/build-umd# sets the global variable name of the project)\\n- [The capabilities currently supported by static resources.](/guide/advance/asset)\\n\\n## When to use `buildConfig`\\n\\n`buildConfig` is one of the methods used to modify the product, **only `buildConfig` will take effect when configured in conjunction with `buildPreset`**. So if configured as follows.\\n\\n```typescript\\nimport { defineConfig } from '@modern-js/module-tools';\\n\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n },\\n buildPreset: 'npm-library',\\n});\\n```\\n\\nThen at this point you will see the following prompt.\\n\\n```bash\\nSince both 'buildConfig' and 'buildPreset' are present, only the 'buildConfig' configuration will take effect\\n```\\n\\nThe set or sets of build-related configurations represented by `buildPreset` are composed of `buildConfig`, **which can be used to customize output products** when the current project needs cannot be met using `buildPreset`.\\n\\nThe process of using `buildConfig` is the process of thinking about **what kind of build product to get**.\\n\"";
|
|
1224
|
+
function _createMdxContent(props) {
|
|
1225
|
+
const _components = Object.assign({
|
|
1226
|
+
h1: "h1",
|
|
1227
|
+
a: "a",
|
|
1228
|
+
h2: "h2",
|
|
1229
|
+
p: "p",
|
|
1230
|
+
code: "code",
|
|
1231
|
+
strong: "strong",
|
|
1232
|
+
ul: "ul",
|
|
1233
|
+
li: "li",
|
|
1234
|
+
ol: "ol",
|
|
1235
|
+
h3: "h3",
|
|
1236
|
+
blockquote: "blockquote",
|
|
1237
|
+
em: "em"
|
|
1238
|
+
}, props.components);
|
|
1239
|
+
if (!CH) _missingMdxReference("CH", false, "12:1-19:4");
|
|
1240
|
+
if (!CH.Code) _missingMdxReference("CH.Code", true, "12:1-19:4");
|
|
1241
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
1242
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
|
|
1243
|
+
id: "modify-output-product",
|
|
1244
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1245
|
+
className: "header-anchor",
|
|
1246
|
+
"aria-hidden": "true",
|
|
1247
|
+
href: "#modify-output-product",
|
|
1248
|
+
children: "#"
|
|
1249
|
+
}), "modify-output-product"]
|
|
1250
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
1251
|
+
id: "modify-the-output-product",
|
|
1252
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1253
|
+
className: "header-anchor",
|
|
1254
|
+
"aria-hidden": "true",
|
|
1255
|
+
href: "#modify-the-output-product",
|
|
1256
|
+
children: "#"
|
|
1257
|
+
}), "Modify the output product"]
|
|
1258
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
1259
|
+
id: "default-output-products",
|
|
1260
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1261
|
+
className: "header-anchor",
|
|
1262
|
+
"aria-hidden": "true",
|
|
1263
|
+
href: "#default-output-products",
|
|
1264
|
+
children: "#"
|
|
1265
|
+
}), "Default output products"]
|
|
1266
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1267
|
+
children: ["When the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1268
|
+
children: "modern build"
|
|
1269
|
+
}), " command is used in an initialized project, the products are generated according to the default configuration supported by Module Tools. The default supported configurations are specified as follows."]
|
|
1270
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
|
|
1271
|
+
codeConfig: chCodeConfig,
|
|
1272
|
+
northPanel: {
|
|
1273
|
+
"tabs": [""],
|
|
1274
|
+
"active": "",
|
|
1275
|
+
"heightRatio": 1
|
|
1276
|
+
},
|
|
1277
|
+
files: [{
|
|
1278
|
+
"name": "",
|
|
1279
|
+
"focus": "",
|
|
1280
|
+
"code": {
|
|
1281
|
+
"lines": [{
|
|
1282
|
+
"tokens": [{
|
|
1283
|
+
"content": "import",
|
|
1284
|
+
"props": {
|
|
1285
|
+
"style": {
|
|
1286
|
+
"color": "#81A1C1"
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}, {
|
|
1290
|
+
"content": " ",
|
|
1291
|
+
"props": {
|
|
1292
|
+
"style": {
|
|
1293
|
+
"color": "#D8DEE9FF"
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}, {
|
|
1297
|
+
"content": "moduleTools",
|
|
1298
|
+
"props": {
|
|
1299
|
+
"style": {
|
|
1300
|
+
"color": "#D8DEE9"
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}, {
|
|
1304
|
+
"content": ",",
|
|
1305
|
+
"props": {
|
|
1306
|
+
"style": {
|
|
1307
|
+
"color": "#ECEFF4"
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
}, {
|
|
1311
|
+
"content": " ",
|
|
1312
|
+
"props": {
|
|
1313
|
+
"style": {
|
|
1314
|
+
"color": "#D8DEE9FF"
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}, {
|
|
1318
|
+
"content": "{",
|
|
1319
|
+
"props": {
|
|
1320
|
+
"style": {
|
|
1321
|
+
"color": "#ECEFF4"
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
}, {
|
|
1325
|
+
"content": " ",
|
|
1326
|
+
"props": {
|
|
1327
|
+
"style": {
|
|
1328
|
+
"color": "#D8DEE9FF"
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}, {
|
|
1332
|
+
"content": "defineConfig",
|
|
1333
|
+
"props": {
|
|
1334
|
+
"style": {
|
|
1335
|
+
"color": "#D8DEE9"
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}, {
|
|
1339
|
+
"content": " ",
|
|
1340
|
+
"props": {
|
|
1341
|
+
"style": {
|
|
1342
|
+
"color": "#D8DEE9FF"
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}, {
|
|
1346
|
+
"content": "}",
|
|
1347
|
+
"props": {
|
|
1348
|
+
"style": {
|
|
1349
|
+
"color": "#ECEFF4"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}, {
|
|
1353
|
+
"content": " ",
|
|
1354
|
+
"props": {
|
|
1355
|
+
"style": {
|
|
1356
|
+
"color": "#D8DEE9FF"
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}, {
|
|
1360
|
+
"content": "from",
|
|
1361
|
+
"props": {
|
|
1362
|
+
"style": {
|
|
1363
|
+
"color": "#81A1C1"
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
}, {
|
|
1367
|
+
"content": " ",
|
|
1368
|
+
"props": {
|
|
1369
|
+
"style": {
|
|
1370
|
+
"color": "#D8DEE9FF"
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}, {
|
|
1374
|
+
"content": "'",
|
|
1375
|
+
"props": {
|
|
1376
|
+
"style": {
|
|
1377
|
+
"color": "#ECEFF4"
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}, {
|
|
1381
|
+
"content": "@modern-js/module-tools",
|
|
1382
|
+
"props": {
|
|
1383
|
+
"style": {
|
|
1384
|
+
"color": "#A3BE8C"
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}, {
|
|
1388
|
+
"content": "'",
|
|
1389
|
+
"props": {
|
|
1390
|
+
"style": {
|
|
1391
|
+
"color": "#ECEFF4"
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
}, {
|
|
1395
|
+
"content": ";",
|
|
1396
|
+
"props": {
|
|
1397
|
+
"style": {
|
|
1398
|
+
"color": "#81A1C1"
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
}]
|
|
1402
|
+
}, {
|
|
1403
|
+
"tokens": []
|
|
1404
|
+
}, {
|
|
1405
|
+
"tokens": [{
|
|
1406
|
+
"content": "export",
|
|
1407
|
+
"props": {
|
|
1408
|
+
"style": {
|
|
1409
|
+
"color": "#81A1C1"
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
}, {
|
|
1413
|
+
"content": " ",
|
|
1414
|
+
"props": {
|
|
1415
|
+
"style": {
|
|
1416
|
+
"color": "#D8DEE9FF"
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}, {
|
|
1420
|
+
"content": "default",
|
|
1421
|
+
"props": {
|
|
1422
|
+
"style": {
|
|
1423
|
+
"color": "#81A1C1"
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}, {
|
|
1427
|
+
"content": " ",
|
|
1428
|
+
"props": {
|
|
1429
|
+
"style": {
|
|
1430
|
+
"color": "#D8DEE9FF"
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
}, {
|
|
1434
|
+
"content": "defineConfig",
|
|
1435
|
+
"props": {
|
|
1436
|
+
"style": {
|
|
1437
|
+
"color": "#88C0D0"
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}, {
|
|
1441
|
+
"content": "(",
|
|
1442
|
+
"props": {
|
|
1443
|
+
"style": {
|
|
1444
|
+
"color": "#D8DEE9FF"
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}, {
|
|
1448
|
+
"content": "{",
|
|
1449
|
+
"props": {
|
|
1450
|
+
"style": {
|
|
1451
|
+
"color": "#ECEFF4"
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
}]
|
|
1455
|
+
}, {
|
|
1456
|
+
"tokens": [{
|
|
1457
|
+
"content": " ",
|
|
1458
|
+
"props": {
|
|
1459
|
+
"style": {
|
|
1460
|
+
"color": "#D8DEE9FF"
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
}, {
|
|
1464
|
+
"content": "plugins",
|
|
1465
|
+
"props": {
|
|
1466
|
+
"style": {
|
|
1467
|
+
"color": "#D8DEE9"
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}, {
|
|
1471
|
+
"content": ":",
|
|
1472
|
+
"props": {
|
|
1473
|
+
"style": {
|
|
1474
|
+
"color": "#ECEFF4"
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}, {
|
|
1478
|
+
"content": " [",
|
|
1479
|
+
"props": {
|
|
1480
|
+
"style": {
|
|
1481
|
+
"color": "#D8DEE9FF"
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}, {
|
|
1485
|
+
"content": "moduleTools",
|
|
1486
|
+
"props": {
|
|
1487
|
+
"style": {
|
|
1488
|
+
"color": "#88C0D0"
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
}, {
|
|
1492
|
+
"content": "()]",
|
|
1493
|
+
"props": {
|
|
1494
|
+
"style": {
|
|
1495
|
+
"color": "#D8DEE9FF"
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}, {
|
|
1499
|
+
"content": ",",
|
|
1500
|
+
"props": {
|
|
1501
|
+
"style": {
|
|
1502
|
+
"color": "#ECEFF4"
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}]
|
|
1506
|
+
}, {
|
|
1507
|
+
"tokens": [{
|
|
1508
|
+
"content": " ",
|
|
1509
|
+
"props": {
|
|
1510
|
+
"style": {
|
|
1511
|
+
"color": "#D8DEE9FF"
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
}, {
|
|
1515
|
+
"content": "buildPreset",
|
|
1516
|
+
"props": {
|
|
1517
|
+
"style": {
|
|
1518
|
+
"color": "#D8DEE9"
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
}, {
|
|
1522
|
+
"content": ":",
|
|
1523
|
+
"props": {
|
|
1524
|
+
"style": {
|
|
1525
|
+
"color": "#ECEFF4"
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
}, {
|
|
1529
|
+
"content": " ",
|
|
1530
|
+
"props": {
|
|
1531
|
+
"style": {
|
|
1532
|
+
"color": "#D8DEE9FF"
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}, {
|
|
1536
|
+
"content": "'",
|
|
1537
|
+
"props": {
|
|
1538
|
+
"style": {
|
|
1539
|
+
"color": "#ECEFF4"
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
}, {
|
|
1543
|
+
"content": "npm-library",
|
|
1544
|
+
"props": {
|
|
1545
|
+
"style": {
|
|
1546
|
+
"color": "#A3BE8C"
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
}, {
|
|
1550
|
+
"content": "'",
|
|
1551
|
+
"props": {
|
|
1552
|
+
"style": {
|
|
1553
|
+
"color": "#ECEFF4"
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
}, {
|
|
1557
|
+
"content": ",",
|
|
1558
|
+
"props": {
|
|
1559
|
+
"style": {
|
|
1560
|
+
"color": "#ECEFF4"
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
}]
|
|
1564
|
+
}, {
|
|
1565
|
+
"tokens": [{
|
|
1566
|
+
"content": "}",
|
|
1567
|
+
"props": {
|
|
1568
|
+
"style": {
|
|
1569
|
+
"color": "#ECEFF4"
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}, {
|
|
1573
|
+
"content": ")",
|
|
1574
|
+
"props": {
|
|
1575
|
+
"style": {
|
|
1576
|
+
"color": "#D8DEE9FF"
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
}, {
|
|
1580
|
+
"content": ";",
|
|
1581
|
+
"props": {
|
|
1582
|
+
"style": {
|
|
1583
|
+
"color": "#81A1C1"
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
}]
|
|
1587
|
+
}],
|
|
1588
|
+
"lang": "typescript"
|
|
1589
|
+
},
|
|
1590
|
+
"annotations": []
|
|
1591
|
+
}]
|
|
1592
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1593
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
1594
|
+
children: "The default generation product has the following characteristics"
|
|
1595
|
+
}), "."]
|
|
1596
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
1597
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1598
|
+
children: ["will generate ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1599
|
+
href: "https://nodejs.org/api/modules.html#modules-commonjs-modules-1",
|
|
1600
|
+
target: "_blank",
|
|
1601
|
+
rel: "nofollow",
|
|
1602
|
+
children: "CommonJS"
|
|
1603
|
+
}), " and [ESM](", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1604
|
+
href: "https://nodejs.org/api/esm.html#modules-",
|
|
1605
|
+
target: "_blank",
|
|
1606
|
+
rel: "nofollow",
|
|
1607
|
+
children: "https://nodejs.org/api/esm.html#modules-"
|
|
1608
|
+
}), " ecmascript-modules)."]
|
|
1609
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1610
|
+
children: ["The code syntax is supported up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1611
|
+
children: "ES6"
|
|
1612
|
+
}), " , and more advanced syntax will be converted."]
|
|
1613
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1614
|
+
children: ["All code is packaged into one file, i.e. ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
1615
|
+
children: "bundle"
|
|
1616
|
+
}), " processing is performed."]
|
|
1617
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1618
|
+
children: ["The output root directory is the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1619
|
+
children: "dist"
|
|
1620
|
+
}), " directory under the project, and the type file output directory is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1621
|
+
children: "dist/types"
|
|
1622
|
+
}), "."]
|
|
1623
|
+
}), "\n"]
|
|
1624
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
1625
|
+
children: "You may have the following questions when you see this."
|
|
1626
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ol, {
|
|
1627
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1628
|
+
children: ["what is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1629
|
+
children: "buildPreset"
|
|
1630
|
+
}), "?"]
|
|
1631
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
1632
|
+
children: "what determines these characteristics of the product?"
|
|
1633
|
+
}), "\n"]
|
|
1634
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1635
|
+
children: ["Then the next step is to first explain ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1636
|
+
children: "buildPreset"
|
|
1637
|
+
}), "."]
|
|
1638
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
1639
|
+
id: "buildpreset",
|
|
1640
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1641
|
+
className: "header-anchor",
|
|
1642
|
+
"aria-hidden": "true",
|
|
1643
|
+
href: "#buildpreset",
|
|
1644
|
+
children: "#"
|
|
1645
|
+
}), "buildPreset"]
|
|
1646
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1647
|
+
children: ["The ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1648
|
+
children: "buildPreset"
|
|
1649
|
+
}), " represents one or more sets of build-related configurations prepared in advance. By using the corresponding preset values of the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1650
|
+
children: "buildPreset"
|
|
1651
|
+
}), ", you can eliminate the troublesome and complicated configuration work and get the expected product."]
|
|
1652
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
|
|
1653
|
+
id: "string-form-of-build-preset",
|
|
1654
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1655
|
+
className: "header-anchor",
|
|
1656
|
+
"aria-hidden": "true",
|
|
1657
|
+
href: "#string-form-of-build-preset",
|
|
1658
|
+
children: "#"
|
|
1659
|
+
}), "String form of build preset"]
|
|
1660
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1661
|
+
children: ["The value of a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
1662
|
+
children: "build preset can be in the form of a string"
|
|
1663
|
+
}), ", so a build preset of this form is called a preset string."]
|
|
1664
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1665
|
+
children: ["The module engineering solution provides generic build preset strings and corresponding variants, depending on the generic scenario in which the npm package is used. All currently supported preset strings can be viewed via the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1666
|
+
href: "/module-tools/en/api/config/build-preset.html",
|
|
1667
|
+
children: "BuildPreset API"
|
|
1668
|
+
}), ". Here is an explanation about the relationship between ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
1669
|
+
children: "generic preset strings and variants"
|
|
1670
|
+
}), "."]
|
|
1671
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1672
|
+
children: ["Among the generic preset strings, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1673
|
+
children: "\"npm-library\""
|
|
1674
|
+
}), " can be used in the scenario of developing npm packages of the library type, which is suitable for most common module type projects. When ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1675
|
+
children: "\"npm-library\""
|
|
1676
|
+
}), " is set, the output product of the project will have the following characteristics."]
|
|
1677
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
1678
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1679
|
+
children: ["In the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1680
|
+
children: "dist/lib"
|
|
1681
|
+
}), " directory you will get code formatted as ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1682
|
+
children: "cjs"
|
|
1683
|
+
}), ", syntax supported up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1684
|
+
children: "es6"
|
|
1685
|
+
}), " and packaged."]
|
|
1686
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1687
|
+
children: ["In the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1688
|
+
children: "dist/es"
|
|
1689
|
+
}), " directory, you get code in the format ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1690
|
+
children: "esm"
|
|
1691
|
+
}), ", with syntax support up to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1692
|
+
children: "es6"
|
|
1693
|
+
}), " and after packaging."]
|
|
1694
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1695
|
+
children: ["In the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1696
|
+
children: "dist/types"
|
|
1697
|
+
}), " directory, you get the type files. If it is not a TypeScript project, there is no such directory."]
|
|
1698
|
+
}), "\n"]
|
|
1699
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1700
|
+
children: ["The default string ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1701
|
+
children: "\"npm-library\""
|
|
1702
|
+
}), " is a variant of the original product with a modified ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
1703
|
+
children: "code syntax support"
|
|
1704
|
+
}), " feature and a string naming change to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1705
|
+
children: "\"npm-library-[es5 | es2016.... . es2020 | esnext]\""
|
|
1706
|
+
}), "."]
|
|
1707
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1708
|
+
children: ["For example, if the output product is based on the preset string ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1709
|
+
children: "\"npm-library\""
|
|
1710
|
+
}), " and the syntax supported by the product code is changed to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1711
|
+
children: "es5"
|
|
1712
|
+
}), ", then simply changing ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1713
|
+
children: "\"npm-library\""
|
|
1714
|
+
}), " to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1715
|
+
children: "\"npm-library-es5\""
|
|
1716
|
+
}), " would be sufficient."]
|
|
1717
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
|
|
1718
|
+
id: "build-pre-defined-function-forms",
|
|
1719
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1720
|
+
className: "header-anchor",
|
|
1721
|
+
"aria-hidden": "true",
|
|
1722
|
+
href: "#build-pre-defined-function-forms",
|
|
1723
|
+
children: "#"
|
|
1724
|
+
}), "Build pre-defined function forms"]
|
|
1725
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1726
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
1727
|
+
children: "In addition to the string form, the value of a build preset can also be in the form of a function, where the specific configuration corresponding to a preset value can be printed or modified"
|
|
1728
|
+
}), "."]
|
|
1729
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
1730
|
+
children: "For example, to achieve the same effect as the preset string ``npm-library-es5\"` using the form of a preset function, you can do the following."
|
|
1731
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
|
|
1732
|
+
codeConfig: chCodeConfig,
|
|
1733
|
+
northPanel: {
|
|
1734
|
+
"tabs": [""],
|
|
1735
|
+
"active": "",
|
|
1736
|
+
"heightRatio": 1
|
|
1737
|
+
},
|
|
1738
|
+
files: [{
|
|
1739
|
+
"name": "",
|
|
1740
|
+
"focus": "",
|
|
1741
|
+
"code": {
|
|
1742
|
+
"lines": [{
|
|
1743
|
+
"tokens": [{
|
|
1744
|
+
"content": "import",
|
|
1745
|
+
"props": {
|
|
1746
|
+
"style": {
|
|
1747
|
+
"color": "#81A1C1"
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}, {
|
|
1751
|
+
"content": " ",
|
|
1752
|
+
"props": {
|
|
1753
|
+
"style": {
|
|
1754
|
+
"color": "#D8DEE9FF"
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}, {
|
|
1758
|
+
"content": "moduleTools",
|
|
1759
|
+
"props": {
|
|
1760
|
+
"style": {
|
|
1761
|
+
"color": "#D8DEE9"
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
}, {
|
|
1765
|
+
"content": ",",
|
|
1766
|
+
"props": {
|
|
1767
|
+
"style": {
|
|
1768
|
+
"color": "#ECEFF4"
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}, {
|
|
1772
|
+
"content": " ",
|
|
1773
|
+
"props": {
|
|
1774
|
+
"style": {
|
|
1775
|
+
"color": "#D8DEE9FF"
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
}, {
|
|
1779
|
+
"content": "{",
|
|
1780
|
+
"props": {
|
|
1781
|
+
"style": {
|
|
1782
|
+
"color": "#ECEFF4"
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}, {
|
|
1786
|
+
"content": " ",
|
|
1787
|
+
"props": {
|
|
1788
|
+
"style": {
|
|
1789
|
+
"color": "#D8DEE9FF"
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}, {
|
|
1793
|
+
"content": "defineConfig",
|
|
1794
|
+
"props": {
|
|
1795
|
+
"style": {
|
|
1796
|
+
"color": "#D8DEE9"
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
}, {
|
|
1800
|
+
"content": " ",
|
|
1801
|
+
"props": {
|
|
1802
|
+
"style": {
|
|
1803
|
+
"color": "#D8DEE9FF"
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}, {
|
|
1807
|
+
"content": "}",
|
|
1808
|
+
"props": {
|
|
1809
|
+
"style": {
|
|
1810
|
+
"color": "#ECEFF4"
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
}, {
|
|
1814
|
+
"content": " ",
|
|
1815
|
+
"props": {
|
|
1816
|
+
"style": {
|
|
1817
|
+
"color": "#D8DEE9FF"
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
}, {
|
|
1821
|
+
"content": "from",
|
|
1822
|
+
"props": {
|
|
1823
|
+
"style": {
|
|
1824
|
+
"color": "#81A1C1"
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
}, {
|
|
1828
|
+
"content": " ",
|
|
1829
|
+
"props": {
|
|
1830
|
+
"style": {
|
|
1831
|
+
"color": "#D8DEE9FF"
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
}, {
|
|
1835
|
+
"content": "'",
|
|
1836
|
+
"props": {
|
|
1837
|
+
"style": {
|
|
1838
|
+
"color": "#ECEFF4"
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
}, {
|
|
1842
|
+
"content": "@modern-js/module-tools",
|
|
1843
|
+
"props": {
|
|
1844
|
+
"style": {
|
|
1845
|
+
"color": "#A3BE8C"
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
}, {
|
|
1849
|
+
"content": "'",
|
|
1850
|
+
"props": {
|
|
1851
|
+
"style": {
|
|
1852
|
+
"color": "#ECEFF4"
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
}, {
|
|
1856
|
+
"content": ";",
|
|
1857
|
+
"props": {
|
|
1858
|
+
"style": {
|
|
1859
|
+
"color": "#81A1C1"
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
}]
|
|
1863
|
+
}, {
|
|
1864
|
+
"tokens": []
|
|
1865
|
+
}, {
|
|
1866
|
+
"tokens": [{
|
|
1867
|
+
"content": "export",
|
|
1868
|
+
"props": {
|
|
1869
|
+
"style": {
|
|
1870
|
+
"color": "#81A1C1"
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
}, {
|
|
1874
|
+
"content": " ",
|
|
1875
|
+
"props": {
|
|
1876
|
+
"style": {
|
|
1877
|
+
"color": "#D8DEE9FF"
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
}, {
|
|
1881
|
+
"content": "default",
|
|
1882
|
+
"props": {
|
|
1883
|
+
"style": {
|
|
1884
|
+
"color": "#81A1C1"
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
}, {
|
|
1888
|
+
"content": " ",
|
|
1889
|
+
"props": {
|
|
1890
|
+
"style": {
|
|
1891
|
+
"color": "#D8DEE9FF"
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
}, {
|
|
1895
|
+
"content": "defineConfig",
|
|
1896
|
+
"props": {
|
|
1897
|
+
"style": {
|
|
1898
|
+
"color": "#88C0D0"
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
}, {
|
|
1902
|
+
"content": "(",
|
|
1903
|
+
"props": {
|
|
1904
|
+
"style": {
|
|
1905
|
+
"color": "#D8DEE9FF"
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
}, {
|
|
1909
|
+
"content": "{",
|
|
1910
|
+
"props": {
|
|
1911
|
+
"style": {
|
|
1912
|
+
"color": "#ECEFF4"
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
}]
|
|
1916
|
+
}, {
|
|
1917
|
+
"tokens": [{
|
|
1918
|
+
"content": " ",
|
|
1919
|
+
"props": {
|
|
1920
|
+
"style": {
|
|
1921
|
+
"color": "#D8DEE9FF"
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
}, {
|
|
1925
|
+
"content": "plugins",
|
|
1926
|
+
"props": {
|
|
1927
|
+
"style": {
|
|
1928
|
+
"color": "#D8DEE9"
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}, {
|
|
1932
|
+
"content": ":",
|
|
1933
|
+
"props": {
|
|
1934
|
+
"style": {
|
|
1935
|
+
"color": "#ECEFF4"
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
}, {
|
|
1939
|
+
"content": " [",
|
|
1940
|
+
"props": {
|
|
1941
|
+
"style": {
|
|
1942
|
+
"color": "#D8DEE9FF"
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
}, {
|
|
1946
|
+
"content": "moduleTools",
|
|
1947
|
+
"props": {
|
|
1948
|
+
"style": {
|
|
1949
|
+
"color": "#88C0D0"
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}, {
|
|
1953
|
+
"content": "()]",
|
|
1954
|
+
"props": {
|
|
1955
|
+
"style": {
|
|
1956
|
+
"color": "#D8DEE9FF"
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
}, {
|
|
1960
|
+
"content": ",",
|
|
1961
|
+
"props": {
|
|
1962
|
+
"style": {
|
|
1963
|
+
"color": "#ECEFF4"
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
}]
|
|
1967
|
+
}, {
|
|
1968
|
+
"tokens": [{
|
|
1969
|
+
"content": " ",
|
|
1970
|
+
"props": {
|
|
1971
|
+
"style": {
|
|
1972
|
+
"color": "#D8DEE9FF"
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
}, {
|
|
1976
|
+
"content": "buildPreset",
|
|
1977
|
+
"props": {
|
|
1978
|
+
"style": {
|
|
1979
|
+
"color": "#88C0D0"
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
}, {
|
|
1983
|
+
"content": "({",
|
|
1984
|
+
"props": {
|
|
1985
|
+
"style": {
|
|
1986
|
+
"color": "#ECEFF4"
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
}, {
|
|
1990
|
+
"content": " ",
|
|
1991
|
+
"props": {
|
|
1992
|
+
"style": {
|
|
1993
|
+
"color": "#D8DEE9FF"
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
}, {
|
|
1997
|
+
"content": "preset",
|
|
1998
|
+
"props": {
|
|
1999
|
+
"style": {
|
|
2000
|
+
"color": "#D8DEE9"
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
}, {
|
|
2004
|
+
"content": " ",
|
|
2005
|
+
"props": {
|
|
2006
|
+
"style": {
|
|
2007
|
+
"color": "#D8DEE9FF"
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}, {
|
|
2011
|
+
"content": "})",
|
|
2012
|
+
"props": {
|
|
2013
|
+
"style": {
|
|
2014
|
+
"color": "#ECEFF4"
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
}, {
|
|
2018
|
+
"content": " ",
|
|
2019
|
+
"props": {
|
|
2020
|
+
"style": {
|
|
2021
|
+
"color": "#D8DEE9FF"
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
}, {
|
|
2025
|
+
"content": "{",
|
|
2026
|
+
"props": {
|
|
2027
|
+
"style": {
|
|
2028
|
+
"color": "#ECEFF4"
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}]
|
|
2032
|
+
}, {
|
|
2033
|
+
"tokens": [{
|
|
2034
|
+
"content": " ",
|
|
2035
|
+
"props": {
|
|
2036
|
+
"style": {
|
|
2037
|
+
"color": "#D8DEE9FF"
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}, {
|
|
2041
|
+
"content": "return",
|
|
2042
|
+
"props": {
|
|
2043
|
+
"style": {
|
|
2044
|
+
"color": "#81A1C1"
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
}, {
|
|
2048
|
+
"content": " ",
|
|
2049
|
+
"props": {
|
|
2050
|
+
"style": {
|
|
2051
|
+
"color": "#D8DEE9FF"
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
}, {
|
|
2055
|
+
"content": "preset",
|
|
2056
|
+
"props": {
|
|
2057
|
+
"style": {
|
|
2058
|
+
"color": "#D8DEE9"
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
}, {
|
|
2062
|
+
"content": ".",
|
|
2063
|
+
"props": {
|
|
2064
|
+
"style": {
|
|
2065
|
+
"color": "#ECEFF4"
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
}, {
|
|
2069
|
+
"content": "NPM_LIBRARY",
|
|
2070
|
+
"props": {
|
|
2071
|
+
"style": {
|
|
2072
|
+
"color": "#D8DEE9"
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}, {
|
|
2076
|
+
"content": ".",
|
|
2077
|
+
"props": {
|
|
2078
|
+
"style": {
|
|
2079
|
+
"color": "#ECEFF4"
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
}, {
|
|
2083
|
+
"content": "map",
|
|
2084
|
+
"props": {
|
|
2085
|
+
"style": {
|
|
2086
|
+
"color": "#88C0D0"
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
}, {
|
|
2090
|
+
"content": "(",
|
|
2091
|
+
"props": {
|
|
2092
|
+
"style": {
|
|
2093
|
+
"color": "#D8DEE9FF"
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
}, {
|
|
2097
|
+
"content": "config",
|
|
2098
|
+
"props": {
|
|
2099
|
+
"style": {
|
|
2100
|
+
"color": "#D8DEE9"
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
}, {
|
|
2104
|
+
"content": " ",
|
|
2105
|
+
"props": {
|
|
2106
|
+
"style": {
|
|
2107
|
+
"color": "#D8DEE9FF"
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
}, {
|
|
2111
|
+
"content": "=>",
|
|
2112
|
+
"props": {
|
|
2113
|
+
"style": {
|
|
2114
|
+
"color": "#81A1C1"
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
}, {
|
|
2118
|
+
"content": " ",
|
|
2119
|
+
"props": {
|
|
2120
|
+
"style": {
|
|
2121
|
+
"color": "#D8DEE9FF"
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}, {
|
|
2125
|
+
"content": "{",
|
|
2126
|
+
"props": {
|
|
2127
|
+
"style": {
|
|
2128
|
+
"color": "#ECEFF4"
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
}]
|
|
2132
|
+
}, {
|
|
2133
|
+
"tokens": [{
|
|
2134
|
+
"content": " ",
|
|
2135
|
+
"props": {
|
|
2136
|
+
"style": {
|
|
2137
|
+
"color": "#D8DEE9FF"
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
}, {
|
|
2141
|
+
"content": "return",
|
|
2142
|
+
"props": {
|
|
2143
|
+
"style": {
|
|
2144
|
+
"color": "#81A1C1"
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}, {
|
|
2148
|
+
"content": " ",
|
|
2149
|
+
"props": {
|
|
2150
|
+
"style": {
|
|
2151
|
+
"color": "#D8DEE9FF"
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
}, {
|
|
2155
|
+
"content": "{",
|
|
2156
|
+
"props": {
|
|
2157
|
+
"style": {
|
|
2158
|
+
"color": "#ECEFF4"
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
}, {
|
|
2162
|
+
"content": " ",
|
|
2163
|
+
"props": {
|
|
2164
|
+
"style": {
|
|
2165
|
+
"color": "#D8DEE9FF"
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
}, {
|
|
2169
|
+
"content": "...",
|
|
2170
|
+
"props": {
|
|
2171
|
+
"style": {
|
|
2172
|
+
"color": "#81A1C1"
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
}, {
|
|
2176
|
+
"content": " ",
|
|
2177
|
+
"props": {
|
|
2178
|
+
"style": {
|
|
2179
|
+
"color": "#D8DEE9FF"
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
}, {
|
|
2183
|
+
"content": ".",
|
|
2184
|
+
"props": {
|
|
2185
|
+
"style": {
|
|
2186
|
+
"color": "#ECEFF4"
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
}, {
|
|
2190
|
+
"content": "config",
|
|
2191
|
+
"props": {
|
|
2192
|
+
"style": {
|
|
2193
|
+
"color": "#D8DEE9"
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
}, {
|
|
2197
|
+
"content": ",",
|
|
2198
|
+
"props": {
|
|
2199
|
+
"style": {
|
|
2200
|
+
"color": "#ECEFF4"
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
}, {
|
|
2204
|
+
"content": " ",
|
|
2205
|
+
"props": {
|
|
2206
|
+
"style": {
|
|
2207
|
+
"color": "#D8DEE9FF"
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
}, {
|
|
2211
|
+
"content": "target",
|
|
2212
|
+
"props": {
|
|
2213
|
+
"style": {
|
|
2214
|
+
"color": "#D8DEE9"
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
}, {
|
|
2218
|
+
"content": ":",
|
|
2219
|
+
"props": {
|
|
2220
|
+
"style": {
|
|
2221
|
+
"color": "#ECEFF4"
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
}, {
|
|
2225
|
+
"content": " ",
|
|
2226
|
+
"props": {
|
|
2227
|
+
"style": {
|
|
2228
|
+
"color": "#D8DEE9FF"
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
}, {
|
|
2232
|
+
"content": "'",
|
|
2233
|
+
"props": {
|
|
2234
|
+
"style": {
|
|
2235
|
+
"color": "#ECEFF4"
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
}, {
|
|
2239
|
+
"content": "es5",
|
|
2240
|
+
"props": {
|
|
2241
|
+
"style": {
|
|
2242
|
+
"color": "#A3BE8C"
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
}, {
|
|
2246
|
+
"content": "'",
|
|
2247
|
+
"props": {
|
|
2248
|
+
"style": {
|
|
2249
|
+
"color": "#ECEFF4"
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
}, {
|
|
2253
|
+
"content": " ",
|
|
2254
|
+
"props": {
|
|
2255
|
+
"style": {
|
|
2256
|
+
"color": "#D8DEE9FF"
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
}, {
|
|
2260
|
+
"content": "}",
|
|
2261
|
+
"props": {
|
|
2262
|
+
"style": {
|
|
2263
|
+
"color": "#ECEFF4"
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
}]
|
|
2267
|
+
}, {
|
|
2268
|
+
"tokens": [{
|
|
2269
|
+
"content": " ",
|
|
2270
|
+
"props": {
|
|
2271
|
+
"style": {
|
|
2272
|
+
"color": "#D8DEE9FF"
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
}, {
|
|
2276
|
+
"content": "}",
|
|
2277
|
+
"props": {
|
|
2278
|
+
"style": {
|
|
2279
|
+
"color": "#ECEFF4"
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
}, {
|
|
2283
|
+
"content": ")",
|
|
2284
|
+
"props": {
|
|
2285
|
+
"style": {
|
|
2286
|
+
"color": "#D8DEE9FF"
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
}, {
|
|
2290
|
+
"content": ";",
|
|
2291
|
+
"props": {
|
|
2292
|
+
"style": {
|
|
2293
|
+
"color": "#81A1C1"
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
}]
|
|
2297
|
+
}, {
|
|
2298
|
+
"tokens": [{
|
|
2299
|
+
"content": " ",
|
|
2300
|
+
"props": {
|
|
2301
|
+
"style": {
|
|
2302
|
+
"color": "#D8DEE9FF"
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
}, {
|
|
2306
|
+
"content": "},",
|
|
2307
|
+
"props": {
|
|
2308
|
+
"style": {
|
|
2309
|
+
"color": "#ECEFF4"
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
}]
|
|
2313
|
+
}, {
|
|
2314
|
+
"tokens": [{
|
|
2315
|
+
"content": "}",
|
|
2316
|
+
"props": {
|
|
2317
|
+
"style": {
|
|
2318
|
+
"color": "#ECEFF4"
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
}, {
|
|
2322
|
+
"content": ")",
|
|
2323
|
+
"props": {
|
|
2324
|
+
"style": {
|
|
2325
|
+
"color": "#D8DEE9FF"
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}, {
|
|
2329
|
+
"content": ";",
|
|
2330
|
+
"props": {
|
|
2331
|
+
"style": {
|
|
2332
|
+
"color": "#81A1C1"
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
}]
|
|
2336
|
+
}],
|
|
2337
|
+
"lang": "typescript"
|
|
2338
|
+
},
|
|
2339
|
+
"annotations": []
|
|
2340
|
+
}]
|
|
2341
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
2342
|
+
children: ["In the above code implementation, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2343
|
+
children: "preset.NPM_LIBRARY"
|
|
2344
|
+
}), " corresponds to the preset string ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2345
|
+
children: "\"npm-library\""
|
|
2346
|
+
}), ", which represents the equivalent of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2347
|
+
children: "\"npm-library\""
|
|
2348
|
+
}), " for multiple sets of build-related configurations. We traverse the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2349
|
+
children: "NPM_LIBRARY"
|
|
2350
|
+
}), " array, which contains multiple ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2351
|
+
children: "buildConfig"
|
|
2352
|
+
}), " objects, using the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2353
|
+
children: "map"
|
|
2354
|
+
}), " method. We made a shallow copy of the original ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2355
|
+
children: "buildConfig"
|
|
2356
|
+
}), " object and modified the value of the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2357
|
+
children: "target"
|
|
2358
|
+
}), " after the shallow copy, specifying it as ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2359
|
+
children: "es5"
|
|
2360
|
+
}), "."]
|
|
2361
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.blockquote, {
|
|
2362
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
2363
|
+
children: ["NPM_LIBRARY", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2364
|
+
children: ", you can check it with [BuildPreset API](/api/config/build-preset). The"
|
|
2365
|
+
}), "preset", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2366
|
+
children: "object contains not only"
|
|
2367
|
+
}), "NPM_LIBRARY", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2368
|
+
children: ", but also other similar constants. We can not only use "
|
|
2369
|
+
}), "preset.NPM_LIBRARY", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2370
|
+
children: "to get the build configuration corresponding to"
|
|
2371
|
+
}), "\"npm-library\"", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2372
|
+
children: ", but also "
|
|
2373
|
+
}), "preset['npm-library']` in this way."]
|
|
2374
|
+
}), "\n"]
|
|
2375
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
2376
|
+
children: ["So what is the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2377
|
+
children: "buildConfig"
|
|
2378
|
+
}), " object here? What is the basis for the build product feature mentioned before?"]
|
|
2379
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
2380
|
+
children: "Let's explain next."
|
|
2381
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
2382
|
+
id: "build-configuration-object",
|
|
2383
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2384
|
+
className: "header-anchor",
|
|
2385
|
+
"aria-hidden": "true",
|
|
2386
|
+
href: "#build-configuration-object",
|
|
2387
|
+
children: "#"
|
|
2388
|
+
}), "Build configuration (object)"]
|
|
2389
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
2390
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
|
|
2391
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2392
|
+
children: "buildConfig"
|
|
2393
|
+
}), " is a configuration object that describes how to compile and generate build products"]
|
|
2394
|
+
}), ". What was mentioned at the beginning about \"", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.em, {
|
|
2395
|
+
children: "features of build products"
|
|
2396
|
+
}), "\" are actually properties supported by ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2397
|
+
children: "buildConfig"
|
|
2398
|
+
}), ". The currently supported properties cover the needs of most module type projects when building products. ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2399
|
+
children: "buildConfig"
|
|
2400
|
+
}), " not only contains some properties that products have, but also contains some features needed to build products. The following is a brief list from a classification point of view."]
|
|
2401
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
2402
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
2403
|
+
children: "The basic attributes of a build product include:"
|
|
2404
|
+
})
|
|
2405
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
2406
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2407
|
+
children: ["Whether the product is packaged or not: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2408
|
+
href: "/module-tools/en/api/config/build-config.html#buildtype-2",
|
|
2409
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2410
|
+
children: "buildConfig.buildType"
|
|
2411
|
+
})
|
|
2412
|
+
}), "."]
|
|
2413
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2414
|
+
children: ["Product support for syntax: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2415
|
+
href: "/module-tools/en/api/config/build-config.html#target-1",
|
|
2416
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2417
|
+
children: "buildConfig.target"
|
|
2418
|
+
})
|
|
2419
|
+
}), "."]
|
|
2420
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2421
|
+
children: ["Output format: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2422
|
+
href: "/module-tools/en/api/config/build-config.html#format-1",
|
|
2423
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2424
|
+
children: "buildConfig.format"
|
|
2425
|
+
})
|
|
2426
|
+
}), "."]
|
|
2427
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2428
|
+
children: ["How the output type file is handled: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2429
|
+
href: "/module-tools/en/api/config/build-config.html#dts-2",
|
|
2430
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2431
|
+
children: "buildConfig.dts"
|
|
2432
|
+
})
|
|
2433
|
+
}), "."]
|
|
2434
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2435
|
+
children: ["How the sourceMap of the product is handled: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2436
|
+
href: "/module-tools/en/api/config/build-config.html#sourcemap-1",
|
|
2437
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2438
|
+
children: "buildConfig.sourceMap"
|
|
2439
|
+
})
|
|
2440
|
+
}), "."]
|
|
2441
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2442
|
+
children: ["The input (or source file) corresponding to the output: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2443
|
+
href: "/module-tools/en/api/config/build-config.html#input-2",
|
|
2444
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2445
|
+
children: "buildConfig.input"
|
|
2446
|
+
})
|
|
2447
|
+
}), "."]
|
|
2448
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2449
|
+
children: ["The directory of the output of the product: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2450
|
+
href: "/module-tools/en/api/config/build-config.html#outdir-6",
|
|
2451
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2452
|
+
children: "buildConfig.outDir"
|
|
2453
|
+
})
|
|
2454
|
+
}), "."]
|
|
2455
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2456
|
+
children: ["Build source directory: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2457
|
+
href: "/module-tools/en/api/config/build-config.html#sourcedir-3",
|
|
2458
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2459
|
+
children: "buildConfig.sourceDir"
|
|
2460
|
+
})
|
|
2461
|
+
}), "."]
|
|
2462
|
+
}), "\n"]
|
|
2463
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
2464
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
2465
|
+
children: "Common functions required for build products include:"
|
|
2466
|
+
})
|
|
2467
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
2468
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2469
|
+
children: ["Alias: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2470
|
+
href: "/module-tools/en/api/config/build-config.html#alias-1",
|
|
2471
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2472
|
+
children: "buildConfig.alias"
|
|
2473
|
+
})
|
|
2474
|
+
}), "."]
|
|
2475
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2476
|
+
children: ["Static resource handling: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2477
|
+
href: "/module-tools/en/api/config/build-config.html#asset-2",
|
|
2478
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2479
|
+
children: "buildConfig.asset"
|
|
2480
|
+
})
|
|
2481
|
+
}), "."]
|
|
2482
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2483
|
+
children: ["Third-party dependency handling: The corresponding APIs are", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
2484
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2485
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2486
|
+
href: "/module-tools/en/api/config/build-config.html#autoexternal-3",
|
|
2487
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2488
|
+
children: "buildConfig.autoExternal"
|
|
2489
|
+
})
|
|
2490
|
+
}), "."]
|
|
2491
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2492
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2493
|
+
href: "/module-tools/en/api/config/build-config.html#externals-4",
|
|
2494
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2495
|
+
children: "buildConfig.externals"
|
|
2496
|
+
})
|
|
2497
|
+
}), "."]
|
|
2498
|
+
}), "\n"]
|
|
2499
|
+
}), "\n"]
|
|
2500
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2501
|
+
children: ["Copy: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2502
|
+
href: "/module-tools/en/api/config/build-config.html#copy-2",
|
|
2503
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2504
|
+
children: "buildConfig.copy"
|
|
2505
|
+
})
|
|
2506
|
+
}), "."]
|
|
2507
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2508
|
+
children: ["Global variable substitution: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2509
|
+
href: "/module-tools/en/api/config/build-config.html#define-2",
|
|
2510
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2511
|
+
children: "buildConfig.define"
|
|
2512
|
+
})
|
|
2513
|
+
}), "."]
|
|
2514
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2515
|
+
children: ["Specify ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2516
|
+
href: "https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html",
|
|
2517
|
+
target: "_blank",
|
|
2518
|
+
rel: "nofollow",
|
|
2519
|
+
children: "JSX"
|
|
2520
|
+
}), " compilation method, the corresponding API is [", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2521
|
+
children: "buildConfig.jsx"
|
|
2522
|
+
}), "](/api/config/ build-config#jsx)."]
|
|
2523
|
+
}), "\n"]
|
|
2524
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
2525
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
2526
|
+
children: "Some advanced properties or less frequently used functions:"
|
|
2527
|
+
})
|
|
2528
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
2529
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2530
|
+
children: ["Product code compression: The corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2531
|
+
href: "/module-tools/en/api/config/build-config.html#minify-1",
|
|
2532
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2533
|
+
children: "buildConfig.minify"
|
|
2534
|
+
})
|
|
2535
|
+
}), "."]
|
|
2536
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2537
|
+
children: ["Code splitting: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2538
|
+
href: "/module-tools/en/api/config/build-config.html#splitting-2",
|
|
2539
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2540
|
+
children: "buildConfig.splitting"
|
|
2541
|
+
})
|
|
2542
|
+
})]
|
|
2543
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2544
|
+
children: ["Specify whether the build product is for the NodeJS environment or the browser environment: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2545
|
+
href: "/module-tools/en/api/config/build-config.html#platform-1",
|
|
2546
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2547
|
+
children: "buildConfig.platform"
|
|
2548
|
+
})
|
|
2549
|
+
}), "."]
|
|
2550
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2551
|
+
children: ["umd product-related.", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
2552
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2553
|
+
children: ["Specifies the global variables imported externally to the umd product: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2554
|
+
href: "/module-tools/en/api/config/build-config.html#umdglobals-2",
|
|
2555
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2556
|
+
children: "buildConfig.umdGlobals"
|
|
2557
|
+
})
|
|
2558
|
+
}), "."]
|
|
2559
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2560
|
+
children: ["Specify the module name of the umd product: the corresponding API is ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2561
|
+
href: "/module-tools/en/api/config/build-config.html#umdmodulename-2",
|
|
2562
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2563
|
+
children: "buildConfig.umdModuleName"
|
|
2564
|
+
})
|
|
2565
|
+
}), "."]
|
|
2566
|
+
}), "\n"]
|
|
2567
|
+
}), "\n"]
|
|
2568
|
+
}), "\n"]
|
|
2569
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
2570
|
+
children: "In addition to the above categories, frequently asked questions and best practices about these APIs can be found at the following links"
|
|
2571
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
2572
|
+
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2573
|
+
children: ["[What are ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2574
|
+
children: "bundle"
|
|
2575
|
+
}), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2576
|
+
children: "bundleless"
|
|
2577
|
+
}), "?](/guide/advance/in-depth-about-build#bundle- and-bundleless)"]
|
|
2578
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2579
|
+
children: ["[Relationship of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2580
|
+
children: "input"
|
|
2581
|
+
}), " to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2582
|
+
children: "sourceDir"
|
|
2583
|
+
}), "](/guide/advance/in-depth-about-build#input- to -sourcedir-)"]
|
|
2584
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2585
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2586
|
+
href: "/module-tools/en/guide/advance/in-depth-about-build.html#type-files",
|
|
2587
|
+
children: "Multiple ways to generate type files in product"
|
|
2588
|
+
}), "."]
|
|
2589
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
2590
|
+
children: ["[", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2591
|
+
children: "buildConfig.define"
|
|
2592
|
+
}), " Different ways to use it for different scenarios.](/guide/advance/in-depth-about-build#buildconfigdefine - How to use it for different scenarios)"]
|
|
2593
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
2594
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2595
|
+
href: "/module-tools/en/guide/advance/external-dependency.html",
|
|
2596
|
+
children: "How to handle third-party dependencies?"
|
|
2597
|
+
})
|
|
2598
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
2599
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2600
|
+
href: "/module-tools/en/guide/advance/copy.html",
|
|
2601
|
+
children: "How to use copy?"
|
|
2602
|
+
})
|
|
2603
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
2604
|
+
children: "How do I build umd products? (/guide/advance/build-umd# sets the global variable name of the project)"
|
|
2605
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
2606
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2607
|
+
href: "/module-tools/en/guide/advance/asset.html",
|
|
2608
|
+
children: "The capabilities currently supported by static resources."
|
|
2609
|
+
})
|
|
2610
|
+
}), "\n"]
|
|
2611
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
2612
|
+
id: "when-to-use-buildconfig",
|
|
2613
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2614
|
+
className: "header-anchor",
|
|
2615
|
+
"aria-hidden": "true",
|
|
2616
|
+
href: "#when-to-use-buildconfig",
|
|
2617
|
+
children: "#"
|
|
2618
|
+
}), "When to use ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2619
|
+
children: "buildConfig"
|
|
2620
|
+
})]
|
|
2621
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
2622
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2623
|
+
children: "buildConfig"
|
|
2624
|
+
}), " is one of the methods used to modify the product, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
|
|
2625
|
+
children: ["only ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2626
|
+
children: "buildConfig"
|
|
2627
|
+
}), " will take effect when configured in conjunction with ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2628
|
+
children: "buildPreset"
|
|
2629
|
+
})]
|
|
2630
|
+
}), ". So if configured as follows."]
|
|
2631
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
|
|
2632
|
+
codeConfig: chCodeConfig,
|
|
2633
|
+
northPanel: {
|
|
2634
|
+
"tabs": [""],
|
|
2635
|
+
"active": "",
|
|
2636
|
+
"heightRatio": 1
|
|
2637
|
+
},
|
|
2638
|
+
files: [{
|
|
2639
|
+
"name": "",
|
|
2640
|
+
"focus": "",
|
|
2641
|
+
"code": {
|
|
2642
|
+
"lines": [{
|
|
2643
|
+
"tokens": [{
|
|
2644
|
+
"content": "import",
|
|
2645
|
+
"props": {
|
|
2646
|
+
"style": {
|
|
2647
|
+
"color": "#81A1C1"
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
}, {
|
|
2651
|
+
"content": " ",
|
|
2652
|
+
"props": {
|
|
2653
|
+
"style": {
|
|
2654
|
+
"color": "#D8DEE9FF"
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
}, {
|
|
2658
|
+
"content": "{",
|
|
2659
|
+
"props": {
|
|
2660
|
+
"style": {
|
|
2661
|
+
"color": "#ECEFF4"
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
}, {
|
|
2665
|
+
"content": " ",
|
|
2666
|
+
"props": {
|
|
2667
|
+
"style": {
|
|
2668
|
+
"color": "#D8DEE9FF"
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
}, {
|
|
2672
|
+
"content": "defineConfig",
|
|
2673
|
+
"props": {
|
|
2674
|
+
"style": {
|
|
2675
|
+
"color": "#D8DEE9"
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
}, {
|
|
2679
|
+
"content": " ",
|
|
2680
|
+
"props": {
|
|
2681
|
+
"style": {
|
|
2682
|
+
"color": "#D8DEE9FF"
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
}, {
|
|
2686
|
+
"content": "}",
|
|
2687
|
+
"props": {
|
|
2688
|
+
"style": {
|
|
2689
|
+
"color": "#ECEFF4"
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
}, {
|
|
2693
|
+
"content": " ",
|
|
2694
|
+
"props": {
|
|
2695
|
+
"style": {
|
|
2696
|
+
"color": "#D8DEE9FF"
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
}, {
|
|
2700
|
+
"content": "from",
|
|
2701
|
+
"props": {
|
|
2702
|
+
"style": {
|
|
2703
|
+
"color": "#81A1C1"
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
}, {
|
|
2707
|
+
"content": " ",
|
|
2708
|
+
"props": {
|
|
2709
|
+
"style": {
|
|
2710
|
+
"color": "#D8DEE9FF"
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
}, {
|
|
2714
|
+
"content": "'",
|
|
2715
|
+
"props": {
|
|
2716
|
+
"style": {
|
|
2717
|
+
"color": "#ECEFF4"
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
}, {
|
|
2721
|
+
"content": "@modern-js/module-tools",
|
|
2722
|
+
"props": {
|
|
2723
|
+
"style": {
|
|
2724
|
+
"color": "#A3BE8C"
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
}, {
|
|
2728
|
+
"content": "'",
|
|
2729
|
+
"props": {
|
|
2730
|
+
"style": {
|
|
2731
|
+
"color": "#ECEFF4"
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
}, {
|
|
2735
|
+
"content": ";",
|
|
2736
|
+
"props": {
|
|
2737
|
+
"style": {
|
|
2738
|
+
"color": "#81A1C1"
|
|
2739
|
+
}
|
|
2740
|
+
}
|
|
2741
|
+
}]
|
|
2742
|
+
}, {
|
|
2743
|
+
"tokens": []
|
|
2744
|
+
}, {
|
|
2745
|
+
"tokens": [{
|
|
2746
|
+
"content": "export",
|
|
2747
|
+
"props": {
|
|
2748
|
+
"style": {
|
|
2749
|
+
"color": "#81A1C1"
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
}, {
|
|
2753
|
+
"content": " ",
|
|
2754
|
+
"props": {
|
|
2755
|
+
"style": {
|
|
2756
|
+
"color": "#D8DEE9FF"
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
}, {
|
|
2760
|
+
"content": "default",
|
|
2761
|
+
"props": {
|
|
2762
|
+
"style": {
|
|
2763
|
+
"color": "#81A1C1"
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}, {
|
|
2767
|
+
"content": " ",
|
|
2768
|
+
"props": {
|
|
2769
|
+
"style": {
|
|
2770
|
+
"color": "#D8DEE9FF"
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
}, {
|
|
2774
|
+
"content": "defineConfig",
|
|
2775
|
+
"props": {
|
|
2776
|
+
"style": {
|
|
2777
|
+
"color": "#88C0D0"
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
}, {
|
|
2781
|
+
"content": "(",
|
|
2782
|
+
"props": {
|
|
2783
|
+
"style": {
|
|
2784
|
+
"color": "#D8DEE9FF"
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
}, {
|
|
2788
|
+
"content": "{",
|
|
2789
|
+
"props": {
|
|
2790
|
+
"style": {
|
|
2791
|
+
"color": "#ECEFF4"
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
}]
|
|
2795
|
+
}, {
|
|
2796
|
+
"tokens": [{
|
|
2797
|
+
"content": " ",
|
|
2798
|
+
"props": {
|
|
2799
|
+
"style": {
|
|
2800
|
+
"color": "#D8DEE9FF"
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
}, {
|
|
2804
|
+
"content": "buildConfig",
|
|
2805
|
+
"props": {
|
|
2806
|
+
"style": {
|
|
2807
|
+
"color": "#D8DEE9"
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
}, {
|
|
2811
|
+
"content": ":",
|
|
2812
|
+
"props": {
|
|
2813
|
+
"style": {
|
|
2814
|
+
"color": "#ECEFF4"
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
}, {
|
|
2818
|
+
"content": " ",
|
|
2819
|
+
"props": {
|
|
2820
|
+
"style": {
|
|
2821
|
+
"color": "#D8DEE9FF"
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
}, {
|
|
2825
|
+
"content": "{",
|
|
2826
|
+
"props": {
|
|
2827
|
+
"style": {
|
|
2828
|
+
"color": "#ECEFF4"
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
}]
|
|
2832
|
+
}, {
|
|
2833
|
+
"tokens": [{
|
|
2834
|
+
"content": " ",
|
|
2835
|
+
"props": {
|
|
2836
|
+
"style": {
|
|
2837
|
+
"color": "#D8DEE9FF"
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
}, {
|
|
2841
|
+
"content": "format",
|
|
2842
|
+
"props": {
|
|
2843
|
+
"style": {
|
|
2844
|
+
"color": "#D8DEE9"
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
}, {
|
|
2848
|
+
"content": ":",
|
|
2849
|
+
"props": {
|
|
2850
|
+
"style": {
|
|
2851
|
+
"color": "#ECEFF4"
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
}, {
|
|
2855
|
+
"content": " ",
|
|
2856
|
+
"props": {
|
|
2857
|
+
"style": {
|
|
2858
|
+
"color": "#D8DEE9FF"
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}, {
|
|
2862
|
+
"content": "'",
|
|
2863
|
+
"props": {
|
|
2864
|
+
"style": {
|
|
2865
|
+
"color": "#ECEFF4"
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
}, {
|
|
2869
|
+
"content": "umd",
|
|
2870
|
+
"props": {
|
|
2871
|
+
"style": {
|
|
2872
|
+
"color": "#A3BE8C"
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
}, {
|
|
2876
|
+
"content": "'",
|
|
2877
|
+
"props": {
|
|
2878
|
+
"style": {
|
|
2879
|
+
"color": "#ECEFF4"
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
}, {
|
|
2883
|
+
"content": ",",
|
|
2884
|
+
"props": {
|
|
2885
|
+
"style": {
|
|
2886
|
+
"color": "#ECEFF4"
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
}]
|
|
2890
|
+
}, {
|
|
2891
|
+
"tokens": [{
|
|
2892
|
+
"content": " ",
|
|
2893
|
+
"props": {
|
|
2894
|
+
"style": {
|
|
2895
|
+
"color": "#D8DEE9FF"
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
}, {
|
|
2899
|
+
"content": "},",
|
|
2900
|
+
"props": {
|
|
2901
|
+
"style": {
|
|
2902
|
+
"color": "#ECEFF4"
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
}]
|
|
2906
|
+
}, {
|
|
2907
|
+
"tokens": [{
|
|
2908
|
+
"content": " ",
|
|
2909
|
+
"props": {
|
|
2910
|
+
"style": {
|
|
2911
|
+
"color": "#D8DEE9FF"
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
}, {
|
|
2915
|
+
"content": "buildPreset",
|
|
2916
|
+
"props": {
|
|
2917
|
+
"style": {
|
|
2918
|
+
"color": "#D8DEE9"
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
}, {
|
|
2922
|
+
"content": ":",
|
|
2923
|
+
"props": {
|
|
2924
|
+
"style": {
|
|
2925
|
+
"color": "#ECEFF4"
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
}, {
|
|
2929
|
+
"content": " ",
|
|
2930
|
+
"props": {
|
|
2931
|
+
"style": {
|
|
2932
|
+
"color": "#D8DEE9FF"
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
}, {
|
|
2936
|
+
"content": "'",
|
|
2937
|
+
"props": {
|
|
2938
|
+
"style": {
|
|
2939
|
+
"color": "#ECEFF4"
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
}, {
|
|
2943
|
+
"content": "npm-library",
|
|
2944
|
+
"props": {
|
|
2945
|
+
"style": {
|
|
2946
|
+
"color": "#A3BE8C"
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
}, {
|
|
2950
|
+
"content": "'",
|
|
2951
|
+
"props": {
|
|
2952
|
+
"style": {
|
|
2953
|
+
"color": "#ECEFF4"
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
}, {
|
|
2957
|
+
"content": ",",
|
|
2958
|
+
"props": {
|
|
2959
|
+
"style": {
|
|
2960
|
+
"color": "#ECEFF4"
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
}]
|
|
2964
|
+
}, {
|
|
2965
|
+
"tokens": [{
|
|
2966
|
+
"content": "}",
|
|
2967
|
+
"props": {
|
|
2968
|
+
"style": {
|
|
2969
|
+
"color": "#ECEFF4"
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
}, {
|
|
2973
|
+
"content": ")",
|
|
2974
|
+
"props": {
|
|
2975
|
+
"style": {
|
|
2976
|
+
"color": "#D8DEE9FF"
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
}, {
|
|
2980
|
+
"content": ";",
|
|
2981
|
+
"props": {
|
|
2982
|
+
"style": {
|
|
2983
|
+
"color": "#81A1C1"
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
}]
|
|
2987
|
+
}],
|
|
2988
|
+
"lang": "typescript"
|
|
2989
|
+
},
|
|
2990
|
+
"annotations": []
|
|
2991
|
+
}]
|
|
2992
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
2993
|
+
children: "Then at this point you will see the following prompt."
|
|
2994
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
|
|
2995
|
+
codeConfig: chCodeConfig,
|
|
2996
|
+
northPanel: {
|
|
2997
|
+
"tabs": [""],
|
|
2998
|
+
"active": "",
|
|
2999
|
+
"heightRatio": 1
|
|
3000
|
+
},
|
|
3001
|
+
files: [{
|
|
3002
|
+
"name": "",
|
|
3003
|
+
"focus": "",
|
|
3004
|
+
"code": {
|
|
3005
|
+
"lines": [{
|
|
3006
|
+
"tokens": [{
|
|
3007
|
+
"content": "Since both ",
|
|
3008
|
+
"props": {
|
|
3009
|
+
"style": {
|
|
3010
|
+
"color": "#D8DEE9FF"
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
}, {
|
|
3014
|
+
"content": "'",
|
|
3015
|
+
"props": {
|
|
3016
|
+
"style": {
|
|
3017
|
+
"color": "#ECEFF4"
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
}, {
|
|
3021
|
+
"content": "buildConfig",
|
|
3022
|
+
"props": {
|
|
3023
|
+
"style": {
|
|
3024
|
+
"color": "#A3BE8C"
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
}, {
|
|
3028
|
+
"content": "'",
|
|
3029
|
+
"props": {
|
|
3030
|
+
"style": {
|
|
3031
|
+
"color": "#ECEFF4"
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
}, {
|
|
3035
|
+
"content": " and ",
|
|
3036
|
+
"props": {
|
|
3037
|
+
"style": {
|
|
3038
|
+
"color": "#D8DEE9FF"
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
}, {
|
|
3042
|
+
"content": "'",
|
|
3043
|
+
"props": {
|
|
3044
|
+
"style": {
|
|
3045
|
+
"color": "#ECEFF4"
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
}, {
|
|
3049
|
+
"content": "buildPreset",
|
|
3050
|
+
"props": {
|
|
3051
|
+
"style": {
|
|
3052
|
+
"color": "#A3BE8C"
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
}, {
|
|
3056
|
+
"content": "'",
|
|
3057
|
+
"props": {
|
|
3058
|
+
"style": {
|
|
3059
|
+
"color": "#ECEFF4"
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
}, {
|
|
3063
|
+
"content": " are present, only the ",
|
|
3064
|
+
"props": {
|
|
3065
|
+
"style": {
|
|
3066
|
+
"color": "#D8DEE9FF"
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
}, {
|
|
3070
|
+
"content": "'",
|
|
3071
|
+
"props": {
|
|
3072
|
+
"style": {
|
|
3073
|
+
"color": "#ECEFF4"
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
}, {
|
|
3077
|
+
"content": "buildConfig",
|
|
3078
|
+
"props": {
|
|
3079
|
+
"style": {
|
|
3080
|
+
"color": "#A3BE8C"
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
}, {
|
|
3084
|
+
"content": "'",
|
|
3085
|
+
"props": {
|
|
3086
|
+
"style": {
|
|
3087
|
+
"color": "#ECEFF4"
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
}, {
|
|
3091
|
+
"content": " configuration will take effect",
|
|
3092
|
+
"props": {
|
|
3093
|
+
"style": {
|
|
3094
|
+
"color": "#D8DEE9FF"
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
}]
|
|
3098
|
+
}],
|
|
3099
|
+
"lang": "bash"
|
|
3100
|
+
},
|
|
3101
|
+
"annotations": []
|
|
3102
|
+
}]
|
|
3103
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
3104
|
+
children: ["The set or sets of build-related configurations represented by ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
3105
|
+
children: "buildPreset"
|
|
3106
|
+
}), " are composed of ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
3107
|
+
children: "buildConfig"
|
|
3108
|
+
}), ", ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
3109
|
+
children: "which can be used to customize output products"
|
|
3110
|
+
}), " when the current project needs cannot be met using ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
3111
|
+
children: "buildPreset"
|
|
3112
|
+
}), "."]
|
|
3113
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
3114
|
+
children: ["The process of using ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
3115
|
+
children: "buildConfig"
|
|
3116
|
+
}), " is the process of thinking about ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
3117
|
+
children: "what kind of build product to get"
|
|
3118
|
+
}), "."]
|
|
3119
|
+
})]
|
|
3120
|
+
});
|
|
3121
|
+
}
|
|
3122
|
+
function MDXContent(props = {}) {
|
|
3123
|
+
const {wrapper: MDXLayout} = props.components || ({});
|
|
3124
|
+
return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
|
|
3125
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
|
|
3126
|
+
})) : _createMdxContent(props);
|
|
3127
|
+
}
|
|
3128
|
+
/* harmony default export */ __webpack_exports__["default"] = (MDXContent);
|
|
3129
|
+
function _missingMdxReference(id, component, place) {
|
|
3130
|
+
throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/bytedance/github/targeral/modern-dev/website/module-tools/docs/en/guide/basic/modify-output-product.md`" : ""));
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
/***/ })
|
|
3135
|
+
|
|
3136
|
+
}]);
|
|
3137
|
+
//# sourceMappingURL=en_guide_basic_modify-output-product.js.map
|