@modern-js/module-tools-docs 2.0.2 → 2.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/doc_build/html/main/index.html +1 -1
- package/doc_build/static/css/main.css +267 -660
- package/doc_build/static/css/main.css.map +1 -1
- package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +6 -23
- package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +1 -1
- package/doc_build/static/js/async/en_api_config_build-config.js +79 -36
- package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -1
- package/doc_build/static/js/async/en_api_config_build-preset.js +40 -20
- package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -1
- package/doc_build/static/js/async/en_api_config_design-system.js +33800 -2340
- package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -1
- package/doc_build/static/js/async/en_api_config_plugins.js +15 -19
- package/doc_build/static/js/async/en_api_config_testing.js +26 -24
- package/doc_build/static/js/async/en_api_config_testing.js.map +1 -1
- package/doc_build/static/js/async/{en_api_.js → en_api_index.js} +10 -14
- 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 +24 -26
- package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_asset.js +16 -41
- package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_build-umd.js +20 -24
- package/doc_build/static/js/async/en_guide_advance_copy.js +25 -23
- package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_external-dependency.js +15 -19
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +352 -94
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +11 -15
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_theme-config.js +26 -24
- package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +275 -88
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_command-preview.js +45 -33
- package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +274 -196
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +18 -20
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_test-your-project.js +27 -32
- package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +33 -15
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_using-storybook.js +24 -63
- package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -1
- package/doc_build/static/js/async/en_guide_best-practices_components.js +39 -27
- package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -1
- package/doc_build/static/js/async/en_guide_intro_getting-started.js +288 -45
- package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -1
- package/doc_build/static/js/async/en_guide_intro_welcome.js +27 -13
- package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -1
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +16 -12
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -1
- package/doc_build/static/js/async/{en_.js → en_index.js} +12 -16
- package/doc_build/static/js/async/en_index.js.map +1 -0
- package/doc_build/static/js/async/en_plugins_guide_getting-started.js +17 -21
- package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +20 -24
- package/doc_build/static/js/async/en_plugins_guide_setup-function.js +19 -23
- package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -1
- package/doc_build/static/js/async/en_plugins_official-list_overview.js +8 -12
- package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +166 -367
- package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -1
- package/doc_build/static/js/async/{api_config_build-config.js → zh_api_config_build-config.js} +80 -35
- package/doc_build/static/js/async/{api_config_build-config.js.map → zh_api_config_build-config.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_build-preset.js → zh_api_config_build-preset.js} +39 -21
- package/doc_build/static/js/async/{api_config_build-preset.js.map → zh_api_config_build-preset.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_design-system.js → zh_api_config_design-system.js} +27 -23
- package/doc_build/static/js/async/{api_config_design-system.js.map → zh_api_config_design-system.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_plugins.js → zh_api_config_plugins.js} +17 -21
- package/doc_build/static/js/async/{api_config_plugins.js.map → zh_api_config_plugins.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_testing.js → zh_api_config_testing.js} +28 -26
- package/doc_build/static/js/async/{api_config_testing.js.map → zh_api_config_testing.js.map} +1 -1
- package/doc_build/static/js/async/{api_.js → zh_api_index.js} +10 -14
- package/doc_build/static/js/async/zh_api_index.js.map +1 -0
- package/doc_build/static/js/async/{api_plugin-api_plugin-hooks.js → zh_api_plugin-api_plugin-hooks.js} +25 -27
- package/doc_build/static/js/async/{api_plugin-api_plugin-hooks.js.map → zh_api_plugin-api_plugin-hooks.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_asset.js → zh_guide_advance_asset.js} +18 -43
- package/doc_build/static/js/async/{guide_advance_asset.js.map → zh_guide_advance_asset.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_build-umd.js → zh_guide_advance_build-umd.js} +22 -26
- package/doc_build/static/js/async/{guide_advance_build-umd.js.map → zh_guide_advance_build-umd.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_copy.js → zh_guide_advance_copy.js} +26 -24
- package/doc_build/static/js/async/{guide_advance_copy.js.map → zh_guide_advance_copy.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_external-dependency.js → zh_guide_advance_external-dependency.js} +17 -21
- package/doc_build/static/js/async/{guide_advance_external-dependency.js.map → zh_guide_advance_external-dependency.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_in-depth-about-build.js → zh_guide_advance_in-depth-about-build.js} +353 -95
- package/doc_build/static/js/async/{guide_advance_in-depth-about-build.js.map → zh_guide_advance_in-depth-about-build.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_in-depth-about-dev-command.js → zh_guide_advance_in-depth-about-dev-command.js} +16 -18
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +1 -0
- package/doc_build/static/js/async/{guide_advance_theme-config.js → zh_guide_advance_theme-config.js} +24 -22
- package/doc_build/static/js/async/{guide_advance_theme-config.js.map → zh_guide_advance_theme-config.js.map} +1 -1
- package/doc_build/static/js/async/{guide_basic_before-getting-started.js → zh_guide_basic_before-getting-started.js} +272 -85
- package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_command-preview.js → zh_guide_basic_command-preview.js} +47 -35
- package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_modify-output-product.js → zh_guide_basic_modify-output-product.js} +203 -88
- package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_publish-your-project.js → zh_guide_basic_publish-your-project.js} +20 -22
- package/doc_build/static/js/async/{guide_basic_publish-your-project.js.map → zh_guide_basic_publish-your-project.js.map} +1 -1
- package/doc_build/static/js/async/{guide_basic_test-your-project.js → zh_guide_basic_test-your-project.js} +30 -35
- package/doc_build/static/js/async/{guide_basic_test-your-project.js.map → zh_guide_basic_test-your-project.js.map} +1 -1
- package/doc_build/static/js/async/{guide_basic_use-micro-generator.js → zh_guide_basic_use-micro-generator.js} +40 -20
- package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_using-storybook.js → zh_guide_basic_using-storybook.js} +78 -171
- package/doc_build/static/js/async/{guide_basic_using-storybook.js.map → zh_guide_basic_using-storybook.js.map} +1 -1
- package/doc_build/static/js/async/{guide_best-practices_components.js → zh_guide_best-practices_components.js} +41 -29
- package/doc_build/static/js/async/{guide_best-practices_components.js.map → zh_guide_best-practices_components.js.map} +1 -1
- package/doc_build/static/js/async/{guide_intro_getting-started.js → zh_guide_intro_getting-started.js} +291 -42
- package/doc_build/static/js/async/{guide_intro_getting-started.js.map → zh_guide_intro_getting-started.js.map} +1 -1
- package/doc_build/static/js/async/{guide_intro_welcome.js → zh_guide_intro_welcome.js} +28 -14
- package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +1 -0
- package/doc_build/static/js/async/{guide_intro_why-module-engineering-solution.js → zh_guide_intro_why-module-engineering-solution.js} +18 -14
- package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +1 -0
- package/doc_build/static/js/async/{index.js → zh_index.js} +11 -15
- package/doc_build/static/js/async/zh_index.js.map +1 -0
- package/doc_build/static/js/async/{plugins_guide_getting-started.js → zh_plugins_guide_getting-started.js} +19 -23
- package/doc_build/static/js/async/{plugins_guide_getting-started.js.map → zh_plugins_guide_getting-started.js.map} +1 -1
- package/doc_build/static/js/async/{plugins_guide_plugin-object.js → zh_plugins_guide_plugin-object.js} +22 -26
- package/doc_build/static/js/async/{plugins_guide_plugin-object.js.map → zh_plugins_guide_plugin-object.js.map} +1 -1
- package/doc_build/static/js/async/{plugins_guide_setup-function.js → zh_plugins_guide_setup-function.js} +21 -25
- package/doc_build/static/js/async/{plugins_guide_setup-function.js.map → zh_plugins_guide_setup-function.js.map} +1 -1
- package/doc_build/static/js/async/{plugins_official-list_overview.js → zh_plugins_official-list_overview.js} +10 -14
- package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +1 -0
- package/doc_build/static/js/builder-runtime.js +1 -1
- package/doc_build/static/js/builder-runtime.js.map +1 -1
- package/doc_build/static/js/lib-polyfill.js +3433 -16355
- package/doc_build/static/js/lib-polyfill.js.map +1 -1
- package/doc_build/static/js/main.js +2073 -2700
- package/doc_build/static/js/main.js.map +1 -1
- package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +485 -1689
- package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +1 -1
- package/doc_build/static/search_index.json +1 -0
- package/docs/.island/dist/404.html +41 -0
- package/docs/.island/dist/assets/asset.26aea654.js +160 -0
- package/docs/.island/dist/assets/asset.36e3d3c9.js +160 -0
- package/docs/.island/dist/assets/before-getting-started.0e863740.js +87 -0
- package/docs/.island/dist/assets/before-getting-started.2c6e6b8a.js +87 -0
- package/docs/.island/dist/assets/build-config.460d11d9.js +804 -0
- package/docs/.island/dist/assets/build-config.e155e534.js +854 -0
- package/docs/.island/dist/assets/build-preset.6c2c6c62.js +256 -0
- package/docs/.island/dist/assets/build-preset.d3da921d.js +256 -0
- package/docs/.island/dist/assets/build-umd.ba00f028.js +264 -0
- package/docs/.island/dist/assets/build-umd.edb9d163.js +273 -0
- package/docs/.island/dist/assets/command-preview.1dc93921.js +264 -0
- package/docs/.island/dist/assets/command-preview.ef7a9d01.js +264 -0
- package/docs/.island/dist/assets/components.esm.03560353.js +9 -0
- package/docs/.island/dist/assets/copy.28dc4d5f.js +277 -0
- package/docs/.island/dist/assets/copy.f4625565.js +277 -0
- package/docs/.island/dist/assets/design-system.8993234c.js +1254 -0
- package/docs/.island/dist/assets/design-system.b0ba163f.js +639 -0
- package/docs/.island/dist/assets/dev.b373b152.js +37 -0
- package/docs/.island/dist/assets/dev.b39fd42a.js +37 -0
- package/docs/.island/dist/assets/down.f35427d3.svg +1 -0
- package/docs/.island/dist/assets/extension.4bf3526b.js +1 -0
- package/docs/.island/dist/assets/extension.d64ed0b8.js +469 -0
- package/docs/.island/dist/assets/external-dependency.2ede7532.js +156 -0
- package/docs/.island/dist/assets/external-dependency.92ca89e0.js +156 -0
- package/docs/.island/dist/assets/getting-started.822cf0b2.js +117 -0
- package/docs/.island/dist/assets/getting-started.e2764829.js +114 -0
- package/docs/.island/dist/assets/github.3bf8ccee.svg +1 -0
- package/docs/.island/dist/assets/in-depth-about-build.94cc902d.js +375 -0
- package/docs/.island/dist/assets/in-depth-about-build.aa74de10.js +374 -0
- package/docs/.island/dist/assets/in-depth-about-dev-command.877bdb83.js +33 -0
- package/docs/.island/dist/assets/in-depth-about-dev-command.9736befd.js +39 -0
- package/docs/.island/dist/assets/index.01786ba7.js +30 -0
- package/docs/.island/dist/assets/index.6cef6f5f.js +4 -0
- package/docs/.island/dist/assets/index.cb118238.js +36 -0
- package/docs/.island/dist/assets/index.ccb6ce27.js +4 -0
- package/docs/.island/dist/assets/island_inject.69495876.js +1 -0
- package/docs/.island/dist/assets/island_inject.cdfb22d9.js +1 -0
- package/docs/.island/dist/assets/loading.8c9bb911.svg +1 -0
- package/docs/.island/dist/assets/modify-output-product.9e2394d7.js +100 -0
- package/docs/.island/dist/assets/modify-output-product.f363845a.js +100 -0
- package/docs/.island/dist/assets/moon.6b705924.svg +3 -0
- package/docs/.island/dist/assets/plugin.70a61997.js +42 -0
- package/docs/.island/dist/assets/plugin.80b12ee2.js +42 -0
- package/docs/.island/dist/assets/publish-your-project.7321c10e.js +164 -0
- package/docs/.island/dist/assets/publish-your-project.7326359f.js +166 -0
- package/docs/.island/dist/assets/right.89674cd7.svg +1 -0
- package/docs/.island/dist/assets/search.0aea6901.svg +1 -0
- package/docs/.island/dist/assets/search.11353245.js +222 -0
- package/docs/.island/dist/assets/search.a1b1cff3.js +3 -0
- package/docs/.island/dist/assets/search.f9025ced.js +3 -0
- package/docs/.island/dist/assets/style.09015a4b.css +1 -0
- package/docs/.island/dist/assets/style.2e5f7bc2.css +1970 -0
- package/docs/.island/dist/assets/sun.841dac10.svg +11 -0
- package/docs/.island/dist/assets/test-your-project.8ab2809e.js +190 -0
- package/docs/.island/dist/assets/test-your-project.9ae2a49e.js +190 -0
- package/docs/.island/dist/assets/test.2bfe276b.js +66 -0
- package/docs/.island/dist/assets/test.a2c00a3f.js +67 -0
- package/docs/.island/dist/assets/translator.b1077c44.svg +1 -0
- package/docs/.island/dist/assets/use-micro-generator.13c1a09f.js +60 -0
- package/docs/.island/dist/assets/use-micro-generator.dfe877f6.js +60 -0
- package/docs/.island/dist/assets/using-storybook.adb88cb8.js +260 -0
- package/docs/.island/dist/assets/using-storybook.b8e7dd04.js +260 -0
- package/docs/.island/dist/assets/welcome.94880043.js +13 -0
- package/docs/.island/dist/assets/welcome.b2140e7e.js +13 -0
- package/docs/.island/dist/assets/why-module-engineering-solution.bfe7981a.js +26 -0
- package/docs/.island/dist/assets/why-module-engineering-solution.e31cd19f.js +26 -0
- package/docs/.island/dist/chunk-COLCRJ2V.js +1 -0
- package/docs/.island/dist/chunk-K5FMOYDC.js +10 -0
- package/docs/.island/dist/chunk-WE42KMYS.js +26 -0
- package/docs/.island/dist/client-entry.js +3 -0
- package/docs/.island/dist/en/api/build-config.html +344 -0
- package/docs/.island/dist/en/api/build-preset.html +82 -0
- package/docs/.island/dist/en/api/design-system.html +155 -0
- package/docs/.island/dist/en/api/dev.html +45 -0
- package/docs/.island/dist/en/api/index.html +41 -0
- package/docs/.island/dist/en/api/plugin.html +48 -0
- package/docs/.island/dist/en/api/test.html +58 -0
- package/docs/.island/dist/en/guide/advance/asset.html +68 -0
- package/docs/.island/dist/en/guide/advance/build-umd.html +72 -0
- package/docs/.island/dist/en/guide/advance/copy.html +82 -0
- package/docs/.island/dist/en/guide/advance/extension.html +41 -0
- package/docs/.island/dist/en/guide/advance/external-dependency.html +71 -0
- package/docs/.island/dist/en/guide/advance/in-depth-about-build.html +148 -0
- package/docs/.island/dist/en/guide/advance/in-depth-about-dev-command.html +51 -0
- package/docs/.island/dist/en/guide/basic/before-getting-started.html +127 -0
- package/docs/.island/dist/en/guide/basic/command-preview.html +100 -0
- package/docs/.island/dist/en/guide/basic/modify-output-product.html +140 -0
- package/docs/.island/dist/en/guide/basic/publish-your-project.html +91 -0
- package/docs/.island/dist/en/guide/basic/test-your-project.html +72 -0
- package/docs/.island/dist/en/guide/basic/use-micro-generator.html +65 -0
- package/docs/.island/dist/en/guide/basic/using-storybook.html +113 -0
- package/docs/.island/dist/en/guide/intro/getting-started.html +76 -0
- package/docs/.island/dist/en/guide/intro/welcome.html +53 -0
- package/docs/.island/dist/en/guide/intro/why-module-engineering-solution.html +49 -0
- package/docs/.island/dist/en/index.html +42 -0
- package/docs/.island/dist/react-dom.js +1 -0
- package/docs/.island/dist/react-dom_client.js +1 -0
- package/docs/.island/dist/react.js +1 -0
- package/docs/.island/dist/react_jsx-runtime.js +10 -0
- package/docs/.island/dist/ssr-manifest.json +57 -0
- package/docs/.island/dist/test-result.png +0 -0
- package/docs/.island/dist/why-module-solution.png +0 -0
- package/docs/.island/dist/zh/api/build-config.html +361 -0
- package/docs/.island/dist/zh/api/build-preset.html +82 -0
- package/docs/.island/dist/zh/api/design-system.html +149 -0
- package/docs/.island/dist/zh/api/dev.html +46 -0
- package/docs/.island/dist/zh/api/index.html +41 -0
- package/docs/.island/dist/zh/api/plugin.html +48 -0
- package/docs/.island/dist/zh/api/test.html +59 -0
- package/docs/.island/dist/zh/guide/advance/asset.html +68 -0
- package/docs/.island/dist/zh/guide/advance/build-umd.html +72 -0
- package/docs/.island/dist/zh/guide/advance/copy.html +82 -0
- package/docs/.island/dist/zh/guide/advance/extension.html +127 -0
- package/docs/.island/dist/zh/guide/advance/external-dependency.html +71 -0
- package/docs/.island/dist/zh/guide/advance/in-depth-about-build.html +148 -0
- package/docs/.island/dist/zh/guide/advance/in-depth-about-dev-command.html +53 -0
- package/docs/.island/dist/zh/guide/basic/before-getting-started.html +127 -0
- package/docs/.island/dist/zh/guide/basic/command-preview.html +100 -0
- package/docs/.island/dist/zh/guide/basic/modify-output-product.html +140 -0
- package/docs/.island/dist/zh/guide/basic/publish-your-project.html +92 -0
- package/docs/.island/dist/zh/guide/basic/test-your-project.html +72 -0
- package/docs/.island/dist/zh/guide/basic/use-micro-generator.html +65 -0
- package/docs/.island/dist/zh/guide/basic/using-storybook.html +114 -0
- package/docs/.island/dist/zh/guide/intro/getting-started.html +79 -0
- package/docs/.island/dist/zh/guide/intro/welcome.html +53 -0
- package/docs/.island/dist/zh/guide/intro/why-module-engineering-solution.html +49 -0
- package/docs/.island/dist/zh/index.html +42 -0
- package/docs/en/api/config/build-config.md +15 -5
- package/docs/en/api/config/build-preset.md +3 -2
- package/docs/en/api/config/design-system.md +623 -615
- package/docs/en/api/config/plugins.md +2 -2
- package/docs/en/api/config/testing.md +2 -1
- package/docs/en/guide/advance/asset.mdx +0 -4
- package/docs/en/guide/advance/build-umd.mdx +3 -3
- package/docs/en/guide/advance/in-depth-about-build.md +14 -13
- package/docs/en/guide/advance/in-depth-about-dev-command.md +2 -1
- package/docs/en/guide/basic/before-getting-started.md +16 -9
- package/docs/en/guide/basic/command-preview.md +2 -2
- package/docs/en/guide/basic/modify-output-product.md +65 -69
- package/docs/en/guide/basic/test-your-project.mdx +1 -3
- package/docs/en/guide/basic/use-micro-generator.md +4 -0
- package/docs/en/guide/basic/using-storybook.mdx +1 -13
- package/docs/en/guide/intro/getting-started.md +16 -7
- package/docs/en/plugins/guide/getting-started.mdx +2 -2
- package/docs/en/plugins/guide/plugin-object.mdx +5 -5
- package/docs/zh/api/config/build-config.md +18 -6
- package/docs/zh/api/config/build-preset.md +3 -2
- package/docs/zh/api/config/design-system.md +2 -2
- package/docs/zh/api/config/plugins.md +2 -2
- package/docs/zh/api/config/testing.md +3 -2
- package/docs/zh/guide/advance/asset.mdx +0 -5
- package/docs/zh/guide/advance/build-umd.mdx +3 -3
- package/docs/zh/guide/advance/in-depth-about-build.md +14 -13
- package/docs/zh/guide/advance/in-depth-about-dev-command.md +2 -1
- package/docs/zh/guide/basic/before-getting-started.md +15 -8
- package/docs/zh/guide/basic/command-preview.md +2 -2
- package/docs/zh/guide/basic/modify-output-product.md +17 -19
- package/docs/zh/guide/basic/test-your-project.mdx +1 -3
- package/docs/zh/guide/basic/use-micro-generator.md +5 -1
- package/docs/zh/guide/basic/using-storybook.mdx +9 -19
- package/docs/zh/guide/intro/getting-started.md +17 -11
- package/docs/zh/plugins/guide/getting-started.mdx +2 -2
- package/docs/zh/plugins/guide/plugin-object.mdx +5 -5
- package/modern.config.ts +11 -5
- package/package.json +4 -4
- package/doc_build/static/js/async/api_.js.map +0 -1
- package/doc_build/static/js/async/en_.js.map +0 -1
- package/doc_build/static/js/async/en_api_.js.map +0 -1
- package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_before-getting-started.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_command-preview.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_modify-output-product.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_use-micro-generator.js.map +0 -1
- package/doc_build/static/js/async/guide_intro_welcome.js.map +0 -1
- package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js.map +0 -1
- package/doc_build/static/js/async/index.js.map +0 -1
- package/doc_build/static/js/async/plugins_official-list_overview.js.map +0 -1
|
@@ -18,11 +18,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18
18
|
/*@jsxRuntime automatic @jsxImportSource react*/
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const CH = {
|
|
22
22
|
annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
|
|
23
23
|
Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
const chCodeConfig = {
|
|
26
26
|
"staticMediaQuery": "not screen, (max-width: 768px)",
|
|
27
27
|
"theme": {
|
|
28
28
|
"name": "nord",
|
|
@@ -1185,10 +1185,10 @@ var chCodeConfig = {
|
|
|
1185
1185
|
"autoImport": true,
|
|
1186
1186
|
"showCopyButton": true,
|
|
1187
1187
|
"skipLanguages": [],
|
|
1188
|
-
"filepath": "/Users/
|
|
1188
|
+
"filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/api/plugin-api/plugin-hooks.md"
|
|
1189
1189
|
};
|
|
1190
|
-
|
|
1191
|
-
|
|
1190
|
+
const frontmatter = undefined;
|
|
1191
|
+
const toc = [{
|
|
1192
1192
|
"id": "build-hooks",
|
|
1193
1193
|
"text": "build hooks",
|
|
1194
1194
|
"depth": 2
|
|
@@ -1253,10 +1253,10 @@ var toc = [{
|
|
|
1253
1253
|
"text": "afterDev",
|
|
1254
1254
|
"depth": 3
|
|
1255
1255
|
}];
|
|
1256
|
-
|
|
1257
|
-
var content = "\"# Plugin Hooks\\n\\nThis chapter describes the lifecycle hooks supported by module-tools.\\n\\nCurrently there are two main types of lifecycle hooks.\\n\\n* Build hooks: triggered only when the `build` command is executed to build the source code product.\\n* `buildPlatform` hook: triggered only when the `build --platform` command is executed to generate other build products.\\n* dev hooks: hooks that are triggered when running the `dev` command.\\n\\n## build hooks\\n\\nThe following Hooks are triggered in order when the `build` command is executed.\\n\\n* `beforeBuild`\\n* `beforeBuildTask`\\n* `afterBuildTask`\\n* `afterBuild`\\n\\n### `beforeBuild`\\n\\nTriggered before the execution of the overall build process.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeBuild(options: Options): Return {\\n return options.config;\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n``` ts\\ntype Options = { options: { config: BuildConfig; cliOptions: BuildCommandOptions } }\\n\\nexport interface BuildCommandOptions {\\n config: string;\\n clear?: boolean;\\n dts?: boolean;\\n platform?: boolean | string[];\\n tsconfig: string;\\n watch?: boolean;\\n}\\n\\ntype Return = BuildConfig;\\n```\\n\\n> `BuildConfig` type reference [API configuration](en/api/)\\n\\n### `beforeBuildTask`\\n\\nBased on the build configuration, module tools will split the overall build into multiple sub-build tasks. The Hook will be triggered before each build subtask.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeBuildTask(config: BaseBuildConfig): BaseBuildConfig {\\n return config;\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n`BaseBuildConfig` type reference [API configuration](en/api/)\\n\\n### `afterBuildTask`\\n\\nTriggered after the end of each build subtask.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterBuildTask(options: BuildTaskResult): void {\\n // ...\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n``` ts\\nexport interface BuildTaskResult {\\n status: 'success' | 'fail';\\n message?: string;\\n config: BaseBuildConfig;\\n}\\n```\\n\\n### `afterBuild`\\n\\nTriggered after the end of the overall build process.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterBuild(options: BuildResult): void {\\n // ...\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n``` ts\\nexport interface BuildResult {\\n status: 'success' | 'fail';\\n message?: string;\\n config: BuildConfig;\\n commandOptions: BuildCommandOptions;\\n totalDuration: number;\\n}\\n```\\n\\n## buildPlatform hooks\\n\\nmodule-tools also provides the `build --platform` command to perform specific build tasks.\\n\\nFor example, after installing the Storybook plugin, you can run `build --platform` or `build --platform storybook` to perform Storybook build tasks. This is because the Storybook plugin is based on the buildPlatform Hooks.\\n\\nHooks are triggered in the following order after executing `build --platform`.\\n\\n* `registerBuildPlatform`\\n* `beforeBuildPlatform`\\n* `buildPlatform`\\n* `afterBuildPlatform`\\n\\n### `registerBuildPlatform`\\n\\nGets information about the tasks that need to be run when executing the `build --platform` command.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n registerBuildPlatform(): RegisterBuildPlatformResult {\\n // ...\\n return {\\n platform: 'stroybook',\\n build() {\\n // run storybook logic\\n },\\n }, };\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface RegisterBuildPlatformResult {\\n platform: string | string[];\\n build: (\\n currentPlatform: string, // the currently running platform build task\\n context: { isTsProject: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `beforeBuildPlatform`\\n\\nTriggers all registered build tasks when the `build --platform` command is executed. `beforeBuildPlatform` will be triggered before the execution of the overall build task.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeBuildPlatform(platforms: RegisterBuildPlatformResult[]): void {\\n console.info(`have ${platforms.length} platform tasks`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface RegisterBuildPlatformResult {\\n platform: string | string[];\\n build: (\\n currentPlatform: string, // the currently running platform build task\\n context: { isTsProject: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `buildPlatform`\\n\\nWhen the `build --platform` command is executed, all registered build tasks will be triggered. `buildPlatform` will be triggered before each build task is executed.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n buildPlatform({ platform }: Options): void {\\n console.info(`current task is ${platform}`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface Options {\\n platform: string;\\n}\\n```\\n\\n### `afterBuildPlatform`\\n\\nWhen the `build --platform` command is executed, all registered build tasks will be triggered. `afterBuildPlatform` will be triggered after the overall platform build task is finished.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterBuildPlatform(result: BuildPlatformResult): void {\\n if (result.status === 'success') {\\n console.info(`all platform build task success`);\\n } else {\\n console.error(result.message);\\n }\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n```ts\\nexport interface BuildPlatformResult {\\n status: 'success' | 'fail';\\n message: string | Error | null;\\n}\\n```\\n\\n## Dev Hooks\\n\\nThe following Hooks are triggered in order when the `dev` command is executed.\\n\\n- `registerDev`: triggered when getting dev function information.\\n- `beforeDev`: Triggered before starting the dev process as a whole.\\n- `beforeDevMenu`: triggered before the dev list/menu appears.\\n- `afterDevMenu`: triggered after dev list/menu option is selected.\\n- `beforeDevTask`: Triggered before executing the dev task.\\n- `afterDev`: Triggered at the end of the overall dev process.\\n\\n### `registerDev`.\\n\\nRegister dev tool related data. Mainly contains.\\n\\n* the name of the dev tool\\n* The name of the item displayed in the menu list and the corresponding value.\\n* The definition of the `dev` subcommand.\\n* Whether to execute the source code build before running the dev task\\n* The function to execute the dev task.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n registerDev() {\\n return {\\n // Dev tool name\\n name: 'storybook',\\n // Menu content\\n menuItem: {\\n name: 'Storybook',\\n value: 'storybook',\\n },\\n // Defined dev subcommands\\n subCommands: ['storybook', 'story'],\\n async action() {\\n // dev logic\\n },\\n };\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n:::tip{title='About disableRunBuild configuration'}\\nWhen dev a project, it may be possible to set `disableRunBuild: true` to disable build tasks for source execution (in listening mode) if you only need to dev code functionality.\\n\\nThe currently supported Storybook dev supports using source code products as dev objects, so `disableRunBuild: false` in the Storybook plugin.\\n:::\\n\\n### `beforeDev`\\n\\nTriggered before the dev task is executed after all dev tool metadata has been collected.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeDev(metas: DevToolData[]) {\\n console.info(`have ${metas.length} dev tools`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `(before|after)DevMenu`\\n\\n`beforeDevMenu` is triggered before the dev list/menu appears. Receives [inquirer question](https://github.com/SBoudrias/Inquirer.js#question) as argument. Default value is.\\n\\n``` ts\\nconst question = [\\n {\\n name: 'choiceDevTool',\\n message: 'Select dev tool',\\n type: 'list',\\n // Registered dev messages\\n choices,\\n },\\n];\\n```\\n\\n`afterDevMenu` Triggered after selecting dev list/menu options.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeDevMenu(questions) {\\n questions[0].message += '!' ;\\n return questions; // required\\n },\\n afterDevMenu(options: Options) {\\n console.info(`choise ${options.result.choiceDevTool} dev tools`);\\n }\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport type { QuestionCollection } from 'inquirer';\\n\\nexport interface Options {\\n result: PromptResult;\\n devTools: DevToolData[];\\n}\\n\\nexport type PromptResult = { choiceDevTool: string }\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `beforeDevTask`\\n\\nTriggered before the dev task is executed.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeDevTask(currentDevData: DevToolData) {\\n console.info(`${currentDevData.name} running`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `afterDev`\\n\\nTriggered when the dev task process is interrupted.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterDev() {\\n console.info(`exit!`);\\n },\\n };\\n },\\n});\\n```\\n\\n\\n\"";
|
|
1256
|
+
const title = `Plugin Hooks`;
|
|
1257
|
+
const content = "\"# Plugin Hooks\\n\\nThis chapter describes the lifecycle hooks supported by module-tools.\\n\\nCurrently there are two main types of lifecycle hooks.\\n\\n* Build hooks: triggered only when the `build` command is executed to build the source code product.\\n* `buildPlatform` hook: triggered only when the `build --platform` command is executed to generate other build products.\\n* dev hooks: hooks that are triggered when running the `dev` command.\\n\\n## build hooks\\n\\nThe following Hooks are triggered in order when the `build` command is executed.\\n\\n* `beforeBuild`\\n* `beforeBuildTask`\\n* `afterBuildTask`\\n* `afterBuild`\\n\\n### `beforeBuild`\\n\\nTriggered before the execution of the overall build process.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeBuild(options: Options): Return {\\n return options.config;\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n``` ts\\ntype Options = { options: { config: BuildConfig; cliOptions: BuildCommandOptions } }\\n\\nexport interface BuildCommandOptions {\\n config: string;\\n clear?: boolean;\\n dts?: boolean;\\n platform?: boolean | string[];\\n tsconfig: string;\\n watch?: boolean;\\n}\\n\\ntype Return = BuildConfig;\\n```\\n\\n> `BuildConfig` type reference [API configuration](en/api/)\\n\\n### `beforeBuildTask`\\n\\nBased on the build configuration, Module Tools will split the overall build into multiple sub-build tasks. The Hook will be triggered before each build subtask.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeBuildTask(config: BaseBuildConfig): BaseBuildConfig {\\n return config;\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n`BaseBuildConfig` type reference [API configuration](en/api/)\\n\\n### `afterBuildTask`\\n\\nTriggered after the end of each build subtask.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterBuildTask(options: BuildTaskResult): void {\\n // ...\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n``` ts\\nexport interface BuildTaskResult {\\n status: 'success' | 'fail';\\n message?: string;\\n config: BaseBuildConfig;\\n}\\n```\\n\\n### `afterBuild`\\n\\nTriggered after the end of the overall build process.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterBuild(options: BuildResult): void {\\n // ...\\n }\\n }\\n },\\n});\\n```\\n\\nParameters and return value types.\\n\\n``` ts\\nexport interface BuildResult {\\n status: 'success' | 'fail';\\n message?: string;\\n config: BuildConfig;\\n commandOptions: BuildCommandOptions;\\n totalDuration: number;\\n}\\n```\\n\\n## buildPlatform hooks\\n\\nmodule-tools also provides the `build --platform` command to perform specific build tasks.\\n\\nFor example, after installing the Storybook plugin, you can run `build --platform` or `build --platform storybook` to perform Storybook build tasks. This is because the Storybook plugin is based on the buildPlatform Hooks.\\n\\nHooks are triggered in the following order after executing `build --platform`.\\n\\n* `registerBuildPlatform`\\n* `beforeBuildPlatform`\\n* `buildPlatform`\\n* `afterBuildPlatform`\\n\\n### `registerBuildPlatform`\\n\\nGets information about the tasks that need to be run when executing the `build --platform` command.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n registerBuildPlatform(): RegisterBuildPlatformResult {\\n // ...\\n return {\\n platform: 'stroybook',\\n build() {\\n // run storybook logic\\n },\\n }, };\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface RegisterBuildPlatformResult {\\n platform: string | string[];\\n build: (\\n currentPlatform: string, // the currently running platform build task\\n context: { isTsProject: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `beforeBuildPlatform`\\n\\nTriggers all registered build tasks when the `build --platform` command is executed. `beforeBuildPlatform` will be triggered before the execution of the overall build task.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeBuildPlatform(platforms: RegisterBuildPlatformResult[]): void {\\n console.info(`have ${platforms.length} platform tasks`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface RegisterBuildPlatformResult {\\n platform: string | string[];\\n build: (\\n currentPlatform: string, // the currently running platform build task\\n context: { isTsProject: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `buildPlatform`\\n\\nWhen the `build --platform` command is executed, all registered build tasks will be triggered. `buildPlatform` will be triggered before each build task is executed.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n buildPlatform({ platform }: Options): void {\\n console.info(`current task is ${platform}`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface Options {\\n platform: string;\\n}\\n```\\n\\n### `afterBuildPlatform`\\n\\nWhen the `build --platform` command is executed, all registered build tasks will be triggered. `afterBuildPlatform` will be triggered after the overall platform build task is finished.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterBuildPlatform(result: BuildPlatformResult): void {\\n if (result.status === 'success') {\\n console.info(`all platform build task success`);\\n } else {\\n console.error(result.message);\\n }\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n```ts\\nexport interface BuildPlatformResult {\\n status: 'success' | 'fail';\\n message: string | Error | null;\\n}\\n```\\n\\n## Dev Hooks\\n\\nThe following Hooks are triggered in order when the `dev` command is executed.\\n\\n- `registerDev`: triggered when getting dev function information.\\n- `beforeDev`: Triggered before starting the dev process as a whole.\\n- `beforeDevMenu`: triggered before the dev list/menu appears.\\n- `afterDevMenu`: triggered after dev list/menu option is selected.\\n- `beforeDevTask`: Triggered before executing the dev task.\\n- `afterDev`: Triggered at the end of the overall dev process.\\n\\n### `registerDev`.\\n\\nRegister dev tool related data. Mainly contains.\\n\\n* the name of the dev tool\\n* The name of the item displayed in the menu list and the corresponding value.\\n* The definition of the `dev` subcommand.\\n* Whether to execute the source code build before running the dev task\\n* The function to execute the dev task.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n registerDev() {\\n return {\\n // Dev tool name\\n name: 'storybook',\\n // Menu content\\n menuItem: {\\n name: 'Storybook',\\n value: 'storybook',\\n },\\n // Defined dev subcommands\\n subCommands: ['storybook', 'story'],\\n async action() {\\n // dev logic\\n },\\n };\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n:::tip{title='About disableRunBuild configuration'}\\nWhen dev a project, it may be possible to set `disableRunBuild: true` to disable build tasks for source execution (in listening mode) if you only need to dev code functionality.\\n\\nThe currently supported Storybook dev supports using source code products as dev objects, so `disableRunBuild: false` in the Storybook plugin.\\n:::\\n\\n### `beforeDev`\\n\\nTriggered before the dev task is executed after all dev tool metadata has been collected.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeDev(metas: DevToolData[]) {\\n console.info(`have ${metas.length} dev tools`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `(before|after)DevMenu`\\n\\n`beforeDevMenu` is triggered before the dev list/menu appears. Receives [inquirer question](https://github.com/SBoudrias/Inquirer.js#question) as argument. Default value is.\\n\\n``` ts\\nconst question = [\\n {\\n name: 'choiceDevTool',\\n message: 'Select dev tool',\\n type: 'list',\\n // Registered dev messages\\n choices,\\n },\\n];\\n```\\n\\n`afterDevMenu` Triggered after selecting dev list/menu options.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeDevMenu(questions) {\\n questions[0].message += '!' ;\\n return questions; // required\\n },\\n afterDevMenu(options: Options) {\\n console.info(`choise ${options.result.choiceDevTool} dev tools`);\\n }\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport type { QuestionCollection } from 'inquirer';\\n\\nexport interface Options {\\n result: PromptResult;\\n devTools: DevToolData[];\\n}\\n\\nexport type PromptResult = { choiceDevTool: string }\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `beforeDevTask`\\n\\nTriggered before the dev task is executed.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n beforeDevTask(currentDevData: DevToolData) {\\n console.info(`${currentDevData.name} running`);\\n },\\n };\\n },\\n});\\n```\\n\\nTypes of parameters entered and returned.\\n\\n``` ts\\nexport interface DevToolData {\\n name: string;\\n subCommands?: string[];\\n menuItem?: {\\n name: string;\\n value: string;\\n };\\n // Whether to disable the source build before the dev command is executed\\n disableRunBuild?: boolean;\\n action: (\\n options: { port?: string },\\n context: { isTsProject?: boolean },\\n ) => void | Promise<void>;\\n}\\n```\\n\\n### `afterDev`\\n\\nTriggered when the dev task process is interrupted.\\n\\n``` ts\\nexport default (): CliPlugin<ModuleTools> => ({\\n name: 'my-plugin',\\n\\n setup() {\\n return {\\n afterDev() {\\n console.info(`exit!`);\\n },\\n };\\n },\\n});\\n```\\n\\n\\n\"";
|
|
1258
1258
|
function _createMdxContent(props) {
|
|
1259
|
-
|
|
1259
|
+
const _components = Object.assign({
|
|
1260
1260
|
h1: "h1",
|
|
1261
1261
|
a: "a",
|
|
1262
1262
|
p: "p",
|
|
@@ -2378,7 +2378,7 @@ function _createMdxContent(props) {
|
|
|
2378
2378
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2379
2379
|
children: "BuildConfig"
|
|
2380
2380
|
}), " type reference ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2381
|
-
href: "/en/api/index.html",
|
|
2381
|
+
href: "/module-tools/en/api/index.html",
|
|
2382
2382
|
children: "API configuration"
|
|
2383
2383
|
})]
|
|
2384
2384
|
}), "\n"]
|
|
@@ -2393,7 +2393,7 @@ function _createMdxContent(props) {
|
|
|
2393
2393
|
children: "beforeBuildTask"
|
|
2394
2394
|
})]
|
|
2395
2395
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
2396
|
-
children: "Based on the build configuration,
|
|
2396
|
+
children: "Based on the build configuration, Module Tools will split the overall build into multiple sub-build tasks. The Hook will be triggered before each build subtask."
|
|
2397
2397
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
|
|
2398
2398
|
codeConfig: chCodeConfig,
|
|
2399
2399
|
northPanel: {
|
|
@@ -2851,7 +2851,7 @@ function _createMdxContent(props) {
|
|
|
2851
2851
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
2852
2852
|
children: "BaseBuildConfig"
|
|
2853
2853
|
}), " type reference ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2854
|
-
href: "/en/api/index.html",
|
|
2854
|
+
href: "/module-tools/en/api/index.html",
|
|
2855
2855
|
children: "API configuration"
|
|
2856
2856
|
})]
|
|
2857
2857
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
|
|
@@ -9532,15 +9532,15 @@ function _createMdxContent(props) {
|
|
|
9532
9532
|
className: "modern-directive-title",
|
|
9533
9533
|
children: "About disableRunBuild configuration"
|
|
9534
9534
|
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
|
|
9535
|
-
className: "
|
|
9535
|
+
className: "modern-directive-content",
|
|
9536
9536
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
9537
|
-
children: ["
|
|
9537
|
+
children: ["\nWhen dev a project, it may be possible to set ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
9538
9538
|
children: "disableRunBuild: true"
|
|
9539
9539
|
}), " to disable build tasks for source execution (in listening mode) if you only need to dev code functionality."]
|
|
9540
|
-
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.
|
|
9541
|
-
children:
|
|
9542
|
-
|
|
9543
|
-
|
|
9540
|
+
}), "The currently supported Storybook dev supports using source code products as dev objects, so ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
9541
|
+
children: "disableRunBuild: false"
|
|
9542
|
+
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
9543
|
+
children: "in the Storybook plugin."
|
|
9544
9544
|
})]
|
|
9545
9545
|
})]
|
|
9546
9546
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
|
|
@@ -10703,7 +10703,9 @@ function _createMdxContent(props) {
|
|
|
10703
10703
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
10704
10704
|
children: "beforeDevMenu"
|
|
10705
10705
|
}), " is triggered before the dev list/menu appears. Receives ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
10706
|
-
href: "https://github.com/SBoudrias/Inquirer.js#question",
|
|
10706
|
+
href: "https://github.com/SBoudrias/Inquirer.js#question-1",
|
|
10707
|
+
target: "_blank",
|
|
10708
|
+
rel: "nofollow",
|
|
10707
10709
|
children: "inquirer question"
|
|
10708
10710
|
}), " as argument. Default value is."]
|
|
10709
10711
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
|
|
@@ -14340,21 +14342,17 @@ function _createMdxContent(props) {
|
|
|
14340
14342
|
})]
|
|
14341
14343
|
});
|
|
14342
14344
|
}
|
|
14343
|
-
function MDXContent() {
|
|
14344
|
-
|
|
14345
|
-
var _ref = props.components || {},
|
|
14346
|
-
MDXLayout = _ref.wrapper;
|
|
14345
|
+
function MDXContent(props = {}) {
|
|
14346
|
+
const {wrapper: MDXLayout} = props.components || ({});
|
|
14347
14347
|
return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
|
|
14348
14348
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
|
|
14349
14349
|
})) : _createMdxContent(props);
|
|
14350
14350
|
}
|
|
14351
|
-
_c = MDXContent;
|
|
14352
14351
|
/* harmony default export */ __webpack_exports__["default"] = (MDXContent);
|
|
14353
14352
|
function _missingMdxReference(id, component, place) {
|
|
14354
|
-
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/
|
|
14353
|
+
throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/api/plugin-api/plugin-hooks.md`" : ""));
|
|
14355
14354
|
}
|
|
14356
|
-
|
|
14357
|
-
__webpack_require__.$Refresh$.register(_c, "MDXContent");
|
|
14355
|
+
|
|
14358
14356
|
|
|
14359
14357
|
/***/ })
|
|
14360
14358
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/async/en_api_plugin-api_plugin-hooks.js","mappings":";;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/api/plugin-api/plugin-hooks.md"],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/async/en_api_plugin-api_plugin-hooks.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/api/plugin-api/plugin-hooks.md"],"names":[],"sourceRoot":""}
|
|
@@ -18,13 +18,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18
18
|
/*@jsxRuntime automatic @jsxImportSource react*/
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const CH = {
|
|
22
22
|
annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
|
|
23
23
|
Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
|
|
24
24
|
CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot,
|
|
25
25
|
Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
const chCodeConfig = {
|
|
28
28
|
"staticMediaQuery": "not screen, (max-width: 768px)",
|
|
29
29
|
"theme": {
|
|
30
30
|
"name": "nord",
|
|
@@ -1187,12 +1187,12 @@ var chCodeConfig = {
|
|
|
1187
1187
|
"autoImport": true,
|
|
1188
1188
|
"showCopyButton": true,
|
|
1189
1189
|
"skipLanguages": [],
|
|
1190
|
-
"filepath": "/Users/
|
|
1190
|
+
"filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/advance/asset.mdx"
|
|
1191
1191
|
};
|
|
1192
|
-
|
|
1192
|
+
const frontmatter = {
|
|
1193
1193
|
"sidebar_position": 6
|
|
1194
1194
|
};
|
|
1195
|
-
|
|
1195
|
+
const toc = [{
|
|
1196
1196
|
"id": "default-behavior",
|
|
1197
1197
|
"text": "Default behavior",
|
|
1198
1198
|
"depth": 2
|
|
@@ -1200,15 +1200,11 @@ var toc = [{
|
|
|
1200
1200
|
"id": "setting-cdn-prefix",
|
|
1201
1201
|
"text": "Setting CDN Prefix",
|
|
1202
1202
|
"depth": 2
|
|
1203
|
-
}, {
|
|
1204
|
-
"id": "svgr",
|
|
1205
|
-
"text": "SVGR",
|
|
1206
|
-
"depth": 2
|
|
1207
1203
|
}];
|
|
1208
|
-
|
|
1209
|
-
|
|
1204
|
+
const title = `Handle static resource files`;
|
|
1205
|
+
const content = "\"---\\nsidebar_position: 6\\n---\\n\\n# Handle static resource files\\n\\nThe module project will handle static resources used in the code. If configuration is required, then the [`buildConfig.asset`](/en/api/config/build-config#asset) API can be used.\\n\\n## Default behavior\\n\\nBy default, module projects are processed for the following static resources:\\n\\n- `'.svg'`、`'.png'`、`'.jpg'`、`'.jpeg'`、`'.gif'`、`'.webp'`\\n- `'.ttf'`、`'.otf'`、`'.woff'`、`'.woff2'`、`'.eot'`\\n- `'.mp3'`、`'.mp4'`、`'.webm'`、`'.ogg'`、`'.wav'`、`'.flac'`、`'.aac'`、`'.mov'`\\n\\nFor the handling of static files, the module project currently supports the following functions.\\n\\n- Set the static resource path to `. /assets`.\\n- For files over **10kb** they are inlined into the code.\\n\\nLet us look at the following example:\\n\\n<CH.Spotlight>\\n\\n```ts ./src/asset.ts\\nimport img from './bg.png';\\n//...\\n```\\n\\n---\\n\\nProject source code.\\n\\n```ts ./src/asset.ts\\nimport img from './bg.png';\\n//...\\n```\\n\\n---\\n\\nIf the size of `bg.png` is less than 10 kb, then the product directory structure and product content are.\\n\\n<CH.Code>\\n\\n```bash\\n./dist\\n└── asset.js\\n```\\n\\n---\\n\\n```js ./dist/asset.js\\nvar bg_default = 'data:image/png;base64,';\\nconsole.info(bg_default);\\n```\\n\\n</CH.Code>\\n\\nIf the size of `bg.png` is larger than 10 kb, then the product directory structure and product content are.\\n\\n<CH.Code>\\n\\n```bash\\n./dist\\n├── asset.js\\n└── assets\\n └── bg.13e2aba2.png\\n```\\n\\n---\\n\\n```js ./dist/asset.js\\nvar bg_default = 'assets/bg.13e2aba2.png';\\nconsole.info(bg_default);\\n```\\n\\n</CH.Code>\\n\\n</CH.Spotlight>\\n\\nWhen wanting to modify the default behavior, the following API can be used:\\n\\n- `asset.path`: modify the output path of the static resource file.\\n- `asset.limit`: modify the threshold value for inline static resource files.\\n\\n## Setting CDN Prefix\\n\\nIf the project is running in a browser environment, we may need to host static resources to a CDN and then use them in the production environment.\\n\\nThen we need to add the CDN base path in front of the path to the static resource file in the default generated build product. Again, see an example:\\n\\n<CH.Spotlight>\\n\\n```ts ./src/asset.ts\\nimport img from './bg.png';\\n//...\\n```\\n\\n---\\n\\nProject source code.\\n\\n```ts ./src/asset.ts\\n\\n```\\n\\n---\\n\\n`modern.config` config file。\\n\\n```ts ./modern.config.ts\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n asset: {\\n publicPath: 'https://cdn/',\\n },\\n },\\n});\\n```\\n\\n---\\n\\nIf the size of `bg.png` is larger than 10 kb, then the product content will be.\\n\\n```js ./dist/asset.js focus=7:7\\n(function (global, factory) {\\n if (typeof module === 'object' && typeof module.exports === 'object')\\n factory();\\n else if (typeof define === 'function' && define.amd) define([], factory);\\n else if (\\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self)\\n )\\n factory();\\n})(this, function () {\\n 'use strict';\\n var bg_default = 'http://cdn/assets/bg.13e2aba2.png';\\n // src/asset.tsx\\n console.info(bg_default);\\n});\\n```\\n\\n</CH.Spotlight>\\n\\n\"";
|
|
1210
1206
|
function _createMdxContent(props) {
|
|
1211
|
-
|
|
1207
|
+
const _components = Object.assign({
|
|
1212
1208
|
h1: "h1",
|
|
1213
1209
|
a: "a",
|
|
1214
1210
|
p: "p",
|
|
@@ -1219,10 +1215,10 @@ function _createMdxContent(props) {
|
|
|
1219
1215
|
strong: "strong",
|
|
1220
1216
|
hr: "hr"
|
|
1221
1217
|
}, props.components);
|
|
1222
|
-
if (!CH) _missingMdxReference("CH", false, "
|
|
1223
|
-
if (!CH.Code) _missingMdxReference("CH.Code", true, "
|
|
1218
|
+
if (!CH) _missingMdxReference("CH", false, "24:1-80:16");
|
|
1219
|
+
if (!CH.Code) _missingMdxReference("CH.Code", true, "62:1-78:11");
|
|
1224
1220
|
if (!CH.CodeSlot) _missingMdxReference("CH.CodeSlot", true);
|
|
1225
|
-
if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "
|
|
1221
|
+
if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "24:1-80:16");
|
|
1226
1222
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
1227
1223
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
|
|
1228
1224
|
id: "handle-static-resource-files",
|
|
@@ -1234,7 +1230,7 @@ function _createMdxContent(props) {
|
|
|
1234
1230
|
}), "Handle static resource files"]
|
|
1235
1231
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1236
1232
|
children: ["The module project will handle static resources used in the code. If configuration is required, then the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1237
|
-
href: "/en/api/config/build-config#asset
|
|
1233
|
+
href: "/module-tools/en/api/config/build-config.html#asset-3",
|
|
1238
1234
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1239
1235
|
children: "buildConfig.asset"
|
|
1240
1236
|
})
|
|
@@ -1306,13 +1302,6 @@ function _createMdxContent(props) {
|
|
|
1306
1302
|
children: ["For files over ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
1307
1303
|
children: "10kb"
|
|
1308
1304
|
}), " they are inlined into the code."]
|
|
1309
|
-
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1310
|
-
children: ["Use ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1311
|
-
href: "https://react-svgr.com/",
|
|
1312
|
-
children: "SVGR"
|
|
1313
|
-
}), " for files with the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1314
|
-
children: ".svg"
|
|
1315
|
-
}), " suffix."]
|
|
1316
1305
|
}), "\n"]
|
|
1317
1306
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
1318
1307
|
children: "Let us look at the following example:"
|
|
@@ -3962,34 +3951,20 @@ function _createMdxContent(props) {
|
|
|
3962
3951
|
}), " is larger than 10 kb, then the product content will be."]
|
|
3963
3952
|
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
|
|
3964
3953
|
})]
|
|
3965
|
-
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
3966
|
-
id: "svgr",
|
|
3967
|
-
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
3968
|
-
className: "header-anchor",
|
|
3969
|
-
"aria-hidden": "true",
|
|
3970
|
-
href: "#svgr",
|
|
3971
|
-
children: "#"
|
|
3972
|
-
}), "SVGR"]
|
|
3973
|
-
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
3974
|
-
children: "WIP"
|
|
3975
3954
|
})]
|
|
3976
3955
|
});
|
|
3977
3956
|
}
|
|
3978
|
-
function MDXContent() {
|
|
3979
|
-
|
|
3980
|
-
var _ref = props.components || {},
|
|
3981
|
-
MDXLayout = _ref.wrapper;
|
|
3957
|
+
function MDXContent(props = {}) {
|
|
3958
|
+
const {wrapper: MDXLayout} = props.components || ({});
|
|
3982
3959
|
return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
|
|
3983
3960
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
|
|
3984
3961
|
})) : _createMdxContent(props);
|
|
3985
3962
|
}
|
|
3986
|
-
_c = MDXContent;
|
|
3987
3963
|
/* harmony default export */ __webpack_exports__["default"] = (MDXContent);
|
|
3988
3964
|
function _missingMdxReference(id, component, place) {
|
|
3989
|
-
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/
|
|
3965
|
+
throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/advance/asset.mdx`" : ""));
|
|
3990
3966
|
}
|
|
3991
|
-
|
|
3992
|
-
__webpack_require__.$Refresh$.register(_c, "MDXContent");
|
|
3967
|
+
|
|
3993
3968
|
|
|
3994
3969
|
/***/ })
|
|
3995
3970
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/async/en_guide_advance_asset.js","mappings":"
|
|
1
|
+
{"version":3,"file":"static/js/async/en_guide_advance_asset.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;AAQA;;;;AAeA;;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/advance/asset.mdx"],"names":[],"sourceRoot":""}
|
|
@@ -18,13 +18,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18
18
|
/*@jsxRuntime automatic @jsxImportSource react*/
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const CH = {
|
|
22
22
|
annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
|
|
23
23
|
Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code,
|
|
24
24
|
Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
|
|
25
25
|
CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
const chCodeConfig = {
|
|
28
28
|
"staticMediaQuery": "not screen, (max-width: 768px)",
|
|
29
29
|
"theme": {
|
|
30
30
|
"name": "nord",
|
|
@@ -1187,12 +1187,12 @@ var chCodeConfig = {
|
|
|
1187
1187
|
"autoImport": true,
|
|
1188
1188
|
"showCopyButton": true,
|
|
1189
1189
|
"skipLanguages": [],
|
|
1190
|
-
"filepath": "/Users/
|
|
1190
|
+
"filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/advance/build-umd.mdx"
|
|
1191
1191
|
};
|
|
1192
|
-
|
|
1192
|
+
const frontmatter = {
|
|
1193
1193
|
"sidebar_position": 5
|
|
1194
1194
|
};
|
|
1195
|
-
|
|
1195
|
+
const toc = [{
|
|
1196
1196
|
"id": "third-party-dependency-handling-for-umd-products",
|
|
1197
1197
|
"text": "Third-party dependency handling for umd products",
|
|
1198
1198
|
"depth": 2
|
|
@@ -1201,10 +1201,10 @@ var toc = [{
|
|
|
1201
1201
|
"text": "Changing the name of a global variable in a project",
|
|
1202
1202
|
"depth": 2
|
|
1203
1203
|
}];
|
|
1204
|
-
|
|
1205
|
-
|
|
1204
|
+
const title = `Build umd products`;
|
|
1205
|
+
const content = "\"---\\nsidebar_position: 5\\n---\\n\\n# Build umd products\\n\\nThe full name of umd is **Universal Module Definition**, and JS files in this format can run in multiple runtime environments: the\\n\\n- Browser environment: module loading based on AMD specification\\n- Node.js environment: module loading based on CommonJS\\n- Other cases: mount the module on a global object.\\n\\nWe can therefore specify the build product of the project as an umd product in the following way:\\n\\n```ts\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n },\\n});\\n```\\n\\n## Third-party dependency handling for umd products\\n\\nIn the [[How to handle third-party dependencies]](/en/guide/advance/external-dependency) chapter, we know that we can control whether or not the project packages third-party dependencies via the [`autoExternals`](/en/api/config/build-config#autoexternal) and [`externals`](/en/api/config/build-config#externals) APIs.\\nSo when building umd products, we can also use it like this:\\n\\n<CH.Spotlight>\\n\\n```json package.json\\n{\\n \\\"dependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n //...other dependencies\\n }\\n}\\n```\\n\\n---\\n\\nIf the project depends on `react`.\\n\\n```json package.json\\n{\\n \\\"dependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n //...other dependencies\\n }\\n}\\n```\\n\\n---\\n\\n`modern.config.ts`.\\n\\n```ts\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n autoExternal: false,\\n externals: ['react'],\\n },\\n});\\n```\\n\\n---\\n\\nWhen a `react` dependency is used in the source code.\\n\\n```tsx src/index.ts\\nimport React from 'react';\\nconsole.info(React);\\n```\\n\\n---\\n\\nThe `react` code is not packaged into the product at this point.\\n\\n```js dist/index.js focus=1:7\\n(function (global, factory) {\\n if (typeof module === 'object' && typeof module.exports === 'object')\\n factory(exports, require('react'));\\n else if (typeof define === 'function' && define.amd)\\n define(['exports', 'react'], factory);\\n else if (\\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self)\\n )\\n factory((global.index = {}), global.react);\\n})(this, function (exports, _react) {\\n 'use strict';\\n Object.defineProperty(exports, '__esModule', {\\n value: true,\\n });\\n _react = /*#__PURE__*/ _interopRequireDefault(_react);\\n function _interopRequireDefault(obj) {\\n return obj && obj.__esModule\\n ? obj\\n : {\\n default: obj,\\n };\\n }\\n console.info(_react.default);\\n});\\n```\\n\\n</CH.Spotlight>\\n\\nWe know from the above example that when using the `autoExternal` and `externals` APIs.\\n\\n- In a Node.js environment, you can get the react dependency with `require('react')`.\\n- In a browser environment, you can get the react dependency via `global.react`.\\n\\nHowever, in the browser environment, when getting third-party dependencies, **global variable names are not necessarily identical to the dependency names**, so you have to use the [`buildConfig.umdGlobals`](/en/api/config/build-config#umdglobals) API.\\n\\nAgain using the previous example, when the `react` dependency exists in the browser environment as a `windows.React` or `global.React` global variable, then:\\n\\n<CH.Spotlight>\\n\\n```json package.json\\n{\\n \\\"devDependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n }\\n}\\n```\\n\\n---\\n\\nIf the project depends on `react`.\\n\\n```json package.json\\n{\\n \\\"devDependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n }\\n}\\n```\\n\\n---\\n\\n`modern.config.ts` config file。\\n\\n```ts\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n umdGlobals: {\\n react: 'React',\\n },\\n },\\n});\\n```\\n\\n---\\n\\nWhen a `react` dependency is used in the source code.\\n\\n```tsx src/index.ts\\nimport React from 'react';\\nconsole.info(React);\\n```\\n\\n---\\n\\nAt this point we will see the product code like this.\\n\\n```js dist/index.js focus=12:18\\n(function (global, factory) {\\n if (typeof module === 'object' && typeof module.exports === 'object')\\n factory();\\n else if (typeof define === 'function' && define.amd) define([], factory);\\n else if (\\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self)\\n )\\n factory();\\n})(this, function () {\\n // ...\\n // libuild:globals:react\\n var require_react = __commonJS({\\n 'libuild:globals:react'(exports, module1) {\\n module1.exports = Function('return this')()['React'];\\n },\\n });\\n // src/index.ts\\n var import_react = __toESM(require_react());\\n console.info(import_react.default);\\n});\\n```\\n\\n</CH.Spotlight>\\n\\nThe project can then run in the browser and use the `React` variables that exist on the global object.\\n\\n## Changing the name of a global variable in a project\\n\\nWhen we package the following code into an umd product and run it in the browser, we can use the module via `window.index`.\\n\\n```ts ./src/index.ts\\nexport default () => {\\n console.info('hello world');\\n};\\n```\\n\\n** By default, the name of the source file is used as the name of the module's global variable in the browser. **For the above example, the product would read as follows:\\n\\n```js ./dist/index.js focus=9:9\\n(function (global, factory) {\\n if (typeof module === 'object' && typeof module.exports === 'object')\\n factory(exports);\\n else if (typeof define === 'function' && define.amd)\\n define(['exports'], factory);\\n else if (\\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self)\\n )\\n factory((global.index = {}));\\n})(this, function (exports) {\\n //...\\n});\\n```\\n\\nIf you need to modify it, you need to use the [`buildConfig.umdModuleName`](/en/api/config/build-config#umdmodulename) API.\\n\\nWhen this API is used:\\n\\n```ts\\nexport default defineConfig({\\n buildConfig: {\\n format: 'umd',\\n umdModuleName: 'myLib',\\n },\\n});\\n```\\n\\nThe construction products at this point are:\\n\\n```js ./dist/index.js focus=9:9\\n(function (global, factory) {\\n if (typeof module === 'object' && typeof module.exports === 'object')\\n factory(exports);\\n else if (typeof define === 'function' && define.amd)\\n define(['exports'], factory);\\n else if (\\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self)\\n )\\n factory((global.myLib = {}));\\n})(this, function (exports) {\\n //...\\n});\\n```\\n\"";
|
|
1206
1206
|
function _createMdxContent(props) {
|
|
1207
|
-
|
|
1207
|
+
const _components = Object.assign({
|
|
1208
1208
|
h1: "h1",
|
|
1209
1209
|
a: "a",
|
|
1210
1210
|
p: "p",
|
|
@@ -1452,15 +1452,15 @@ function _createMdxContent(props) {
|
|
|
1452
1452
|
}), "Third-party dependency handling for umd products"]
|
|
1453
1453
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1454
1454
|
children: ["In the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1455
|
-
href: "/en/guide/advance/external-dependency.html",
|
|
1455
|
+
href: "/module-tools/en/guide/advance/external-dependency.html",
|
|
1456
1456
|
children: "[How to handle third-party dependencies]"
|
|
1457
1457
|
}), " chapter, we know that we can control whether or not the project packages third-party dependencies via the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1458
|
-
href: "/en/api/config/build-config#autoexternal
|
|
1458
|
+
href: "/module-tools/en/api/config/build-config.html#autoexternal-5",
|
|
1459
1459
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1460
1460
|
children: "autoExternals"
|
|
1461
1461
|
})
|
|
1462
1462
|
}), " and ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1463
|
-
href: "/en/api/config/build-config#externals
|
|
1463
|
+
href: "/module-tools/en/api/config/build-config.html#externals-7",
|
|
1464
1464
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1465
1465
|
children: "externals"
|
|
1466
1466
|
})
|
|
@@ -4642,7 +4642,7 @@ function _createMdxContent(props) {
|
|
|
4642
4642
|
children: ["However, in the browser environment, when getting third-party dependencies, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
|
|
4643
4643
|
children: "global variable names are not necessarily identical to the dependency names"
|
|
4644
4644
|
}), ", so you have to use the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
4645
|
-
href: "/en/api/config/build-config#umdglobals
|
|
4645
|
+
href: "/module-tools/en/api/config/build-config.html#umdglobals-3",
|
|
4646
4646
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
4647
4647
|
children: "buildConfig.umdGlobals"
|
|
4648
4648
|
})
|
|
@@ -5921,7 +5921,7 @@ function _createMdxContent(props) {
|
|
|
5921
5921
|
"annotations": []
|
|
5922
5922
|
}, {
|
|
5923
5923
|
"name": "dist/index.js",
|
|
5924
|
-
"focus": "
|
|
5924
|
+
"focus": "12:18",
|
|
5925
5925
|
"code": {
|
|
5926
5926
|
"lines": [{
|
|
5927
5927
|
"tokens": [{
|
|
@@ -7549,7 +7549,7 @@ function _createMdxContent(props) {
|
|
|
7549
7549
|
},
|
|
7550
7550
|
files: [{
|
|
7551
7551
|
"name": "./dist/index.js",
|
|
7552
|
-
"focus": "
|
|
7552
|
+
"focus": "9:9",
|
|
7553
7553
|
"code": {
|
|
7554
7554
|
"lines": [{
|
|
7555
7555
|
"tokens": [{
|
|
@@ -8555,7 +8555,7 @@ function _createMdxContent(props) {
|
|
|
8555
8555
|
}]
|
|
8556
8556
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
8557
8557
|
children: ["If you need to modify it, you need to use the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
8558
|
-
href: "/en/api/config/build-config#umdmodulename
|
|
8558
|
+
href: "/module-tools/en/api/config/build-config.html#umdmodulename-3",
|
|
8559
8559
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
8560
8560
|
children: "buildConfig.umdModuleName"
|
|
8561
8561
|
})
|
|
@@ -8832,7 +8832,7 @@ function _createMdxContent(props) {
|
|
|
8832
8832
|
},
|
|
8833
8833
|
files: [{
|
|
8834
8834
|
"name": "./dist/index.js",
|
|
8835
|
-
"focus": "
|
|
8835
|
+
"focus": "9:9",
|
|
8836
8836
|
"code": {
|
|
8837
8837
|
"lines": [{
|
|
8838
8838
|
"tokens": [{
|
|
@@ -9839,21 +9839,17 @@ function _createMdxContent(props) {
|
|
|
9839
9839
|
})]
|
|
9840
9840
|
});
|
|
9841
9841
|
}
|
|
9842
|
-
function MDXContent() {
|
|
9843
|
-
|
|
9844
|
-
var _ref = props.components || {},
|
|
9845
|
-
MDXLayout = _ref.wrapper;
|
|
9842
|
+
function MDXContent(props = {}) {
|
|
9843
|
+
const {wrapper: MDXLayout} = props.components || ({});
|
|
9846
9844
|
return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
|
|
9847
9845
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
|
|
9848
9846
|
})) : _createMdxContent(props);
|
|
9849
9847
|
}
|
|
9850
|
-
_c = MDXContent;
|
|
9851
9848
|
/* harmony default export */ __webpack_exports__["default"] = (MDXContent);
|
|
9852
9849
|
function _missingMdxReference(id, component, place) {
|
|
9853
|
-
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/
|
|
9850
|
+
throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/advance/build-umd.mdx`" : ""));
|
|
9854
9851
|
}
|
|
9855
|
-
|
|
9856
|
-
__webpack_require__.$Refresh$.register(_c, "MDXContent");
|
|
9852
|
+
|
|
9857
9853
|
|
|
9858
9854
|
/***/ })
|
|
9859
9855
|
|