@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/async/en_guide_basic_modify-output-product.js","mappings":"
|
|
1
|
+
{"version":3,"file":"static/js/async/en_guide_basic_modify-output-product.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;AAAA;;AAAA;AAAA;AAAA;;AAAA;;AAEA;;AAAA;AAAA;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/basic/modify-output-product.md"],"names":[],"sourceRoot":""}
|
|
@@ -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,12 +1185,12 @@ 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/guide/basic/publish-your-project.md"
|
|
1189
1189
|
};
|
|
1190
|
-
|
|
1190
|
+
const frontmatter = {
|
|
1191
1191
|
"sidebar_position": 7
|
|
1192
1192
|
};
|
|
1193
|
-
|
|
1193
|
+
const toc = [{
|
|
1194
1194
|
"id": "tracking-changes",
|
|
1195
1195
|
"text": "Tracking changes",
|
|
1196
1196
|
"depth": 2
|
|
@@ -1207,10 +1207,10 @@ var toc = [{
|
|
|
1207
1207
|
"text": "Pre-releases",
|
|
1208
1208
|
"depth": 2
|
|
1209
1209
|
}];
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
const title = `Versioning and Publishing`;
|
|
1211
|
+
const content = "\"---\\nsidebar_position: 7\\n---\\n\\n# Versioning and Publishing\\n\\nAn npm-type module project release process consists of two phases.\\n\\n- The first phase is during development, where the developer needs to provide a change file to record changes that need to be released.\\n- The second phase is during release, where Module Tools can collect all the change files to update the version, update the release log, and release new packages to the [npm Registry](https://www.npmjs.com/).\\n\\n## Tracking changes\\n\\n**Changes need to be logged when they happen to the project**. Changes that occur in a project are typically.\\n\\n- New features\\n- Fixes to issues\\n- Configuration file changes\\n- ...\\n\\nOnce these changes have been made, the current changes need to be documented with the following command.\\n\\n- [`modern change`](/guide/basic/command-preview#modern-change)\\n\\nExecuting the `modern change` command asks the developer several questions and generates a change log based on the developer's answers. The changelog file contains the type of change and its description, and is committed to the git repository.\\n\\n```bash\\n$ npx modern change\\n🦋 What kind of change is this for module-example? (current version is 0.1.0) - patch\\n🦋 Please enter a summary for this change (this will be in the changelogs). Submit empty line to open external editor\\n🦋 Summary - publish test\\n🦋 === Releasing the following packages ===\\n🦋 [Patch]\\n🦋 module\\n🦋 Is this your desired changeset? (Y/n) - true\\n🦋 Changeset added! - you can now commit it\\n🦋\\n🦋 If you want to modify or expand on the changeset summary, you can find it here\\n🦋 info /xxxxxx/module/.changeset/brave-dryers-agree.md\\n```\\n\\nWhen executed successfully, the resulting Markdown file containing the change log is saved in the project's `.changeset` directory. The contents will look like the following.\\n\\n```markdown .changeset/brave-dryers-agree.md\\n---\\n\\\"``module-example'': patch\\n---\\n\\npublish test\\n```\\n\\n## Version update\\n\\nWhen the project version needs to be updated, execute the following command.\\n\\n- [`modern bump`](/guide/basic/command-preview#modern-bump)\\n\\nExecuting `modern bump` will modify the version number in `package.json` based on the contents of the Markdown file in the `.changeset/` directory where the changes were recorded, and generate the `CHANGELOG.md` file. **These Markdown files are also deleted when the version update is complete, so they are \\\"consumed \\\"**.\\n\\n```markdown CHANGELOG.md\\n# module\\n\\n## 0.1.1\\n\\n### Patch Changes\\n\\n- publish test\\n```\\n\\n## Publish\\n\\nTo publish a project, you can execute the following command.\\n\\n- [`modern publish`](/guide/basic/command-preview#modern-release)\\n\\nThe `modern release` command publishes the project to the npm Registry.\\n\\nThe release is the `latest` version, which is also the official version. If you want to change the `dist-tag`, you can specify it with the `modern release --tag` command. For example.\\n\\n```bash\\nmodern release --tag beta\\n```\\n\\nHowever, if you want to change the version number of the current project to a pre-release as well, you need to use the `modern pre` command.\\n\\n> `dist-tag` can be understood as: tagging the current release. Generally speaking, the `dist-tag` for the default release is `latest`, so you can consider `latest` as the `dist-tag` for the official release.\\n\\n## Pre-releases\\n\\nWhen a pre-release is needed before the official release, the following command is executed.\\n\\n- [`modern pre`](/guide/basic/command-preview#modern-pre)\\n\\nFirst `modern pre enter <tag>` to enter pre-release mode, `<tag>` can be the same as the `tag` specified with the `modern release --tag` command when releasing the project.\\n\\n````bash\\n$ npx modern pre enter next\\n🦋 success Entered pre mode with tag next\\n🦋 info Run `changeset version` to version packages with prerelease versions\\n✨ Done in 5.30s.\\nDone in 5.30s. ```\\n\\nThen you can update the specific version number with the `modern bump` command, **which doesn't actually \\\"consume\\\" the Markdown file that records the changes**: ``` bash\\n\\n``` bash\\n$ npx modern bump\\n🦋 warn ===============================IMPORTANT!===============================\\n🦋 warn You are in prerelease mode\\n🦋 warn If you meant to do a normal release you should revert these changes and run `changeset pre exit`\\n🦋 warn You can then run `changeset version` again to do a normal release\\n🦋 warn ----------------------------------------------------------------------\\n🦋 All files have been updated. review them and commit at your leisure\\n````\\n\\nThen you can see that the updated version number in `package.json` will look like this: `0.1.2-next.0`.\\n\\nFinally, **if you don't need to do a pre-release anymore, be sure to run the `modern pre exit` command** to exit the pre-release state and to release the official version when you run the `modern bump` command again.\\n\"";
|
|
1212
1212
|
function _createMdxContent(props) {
|
|
1213
|
-
|
|
1213
|
+
const _components = Object.assign({
|
|
1214
1214
|
h1: "h1",
|
|
1215
1215
|
a: "a",
|
|
1216
1216
|
p: "p",
|
|
@@ -1240,6 +1240,8 @@ function _createMdxContent(props) {
|
|
|
1240
1240
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
|
|
1241
1241
|
children: ["The second phase is during release, where Module Tools can collect all the change files to update the version, update the release log, and release new packages to the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1242
1242
|
href: "https://www.npmjs.com/",
|
|
1243
|
+
target: "_blank",
|
|
1244
|
+
rel: "nofollow",
|
|
1243
1245
|
children: "npm Registry"
|
|
1244
1246
|
}), "."]
|
|
1245
1247
|
}), "\n"]
|
|
@@ -1270,7 +1272,7 @@ function _createMdxContent(props) {
|
|
|
1270
1272
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
1271
1273
|
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
1272
1274
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1273
|
-
href: "/en/guide/basic/command-preview#modern-change
|
|
1275
|
+
href: "/module-tools/en/guide/basic/command-preview.html#modern-change-1",
|
|
1274
1276
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1275
1277
|
children: "modern change"
|
|
1276
1278
|
})
|
|
@@ -1671,7 +1673,7 @@ function _createMdxContent(props) {
|
|
|
1671
1673
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
1672
1674
|
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
1673
1675
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1674
|
-
href: "/en/guide/basic/command-preview#modern-bump
|
|
1676
|
+
href: "/module-tools/en/guide/basic/command-preview.html#modern-bump-1",
|
|
1675
1677
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1676
1678
|
children: "modern bump"
|
|
1677
1679
|
})
|
|
@@ -1788,7 +1790,7 @@ function _createMdxContent(props) {
|
|
|
1788
1790
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
1789
1791
|
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
1790
1792
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1791
|
-
href: "/en/guide/basic/command-preview#modern-release
|
|
1793
|
+
href: "/module-tools/en/guide/basic/command-preview.html#modern-release-1",
|
|
1792
1794
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1793
1795
|
children: "modern publish"
|
|
1794
1796
|
})
|
|
@@ -1862,7 +1864,7 @@ function _createMdxContent(props) {
|
|
|
1862
1864
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
1863
1865
|
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
1864
1866
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1865
|
-
href: "/en/guide/basic/command-preview#modern-pre
|
|
1867
|
+
href: "/module-tools/en/guide/basic/command-preview.html#modern-pre-1",
|
|
1866
1868
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1867
1869
|
children: "modern pre"
|
|
1868
1870
|
})
|
|
@@ -2160,21 +2162,17 @@ function _createMdxContent(props) {
|
|
|
2160
2162
|
})]
|
|
2161
2163
|
});
|
|
2162
2164
|
}
|
|
2163
|
-
function MDXContent() {
|
|
2164
|
-
|
|
2165
|
-
var _ref = props.components || {},
|
|
2166
|
-
MDXLayout = _ref.wrapper;
|
|
2165
|
+
function MDXContent(props = {}) {
|
|
2166
|
+
const {wrapper: MDXLayout} = props.components || ({});
|
|
2167
2167
|
return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
|
|
2168
2168
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
|
|
2169
2169
|
})) : _createMdxContent(props);
|
|
2170
2170
|
}
|
|
2171
|
-
_c = MDXContent;
|
|
2172
2171
|
/* harmony default export */ __webpack_exports__["default"] = (MDXContent);
|
|
2173
2172
|
function _missingMdxReference(id, component, place) {
|
|
2174
|
-
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/
|
|
2173
|
+
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/basic/publish-your-project.md`" : ""));
|
|
2175
2174
|
}
|
|
2176
|
-
|
|
2177
|
-
__webpack_require__.$Refresh$.register(_c, "MDXContent");
|
|
2175
|
+
|
|
2178
2176
|
|
|
2179
2177
|
/***/ })
|
|
2180
2178
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/async/en_guide_basic_publish-your-project.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA;;AAEA;;;;;;;;;;;AAIA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;AAEA;;;;;;;;;;;AAIA;;AAAA;;AAEA;;AAAA;;AAAA;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;AAAA;;;;;AAEA;;AAAA;;AAAA;;AAAA;;AAAA;;;;;;;;;AAEA;;AAEA;;;;;;;;;;;AAIA;;AAAA;;AAAA;;AAAA;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA;;AAAA;;AAAA;;AAEA;AAAA;;AAAA;AAAA;;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/basic/publish-your-project.md"],"names":[],"sourceRoot":""}
|
|
@@ -19,13 +19,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19
19
|
/*链接待补充*/
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const CH = {
|
|
23
23
|
annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
|
|
24
24
|
Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code,
|
|
25
25
|
Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
|
|
26
26
|
CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
const chCodeConfig = {
|
|
29
29
|
"staticMediaQuery": "not screen, (max-width: 768px)",
|
|
30
30
|
"theme": {
|
|
31
31
|
"name": "nord",
|
|
@@ -1188,12 +1188,12 @@ var chCodeConfig = {
|
|
|
1188
1188
|
"autoImport": true,
|
|
1189
1189
|
"showCopyButton": true,
|
|
1190
1190
|
"skipLanguages": [],
|
|
1191
|
-
"filepath": "/Users/
|
|
1191
|
+
"filepath": "/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/basic/test-your-project.mdx"
|
|
1192
1192
|
};
|
|
1193
|
-
|
|
1193
|
+
const frontmatter = {
|
|
1194
1194
|
"sidebar_position": 6
|
|
1195
1195
|
};
|
|
1196
|
-
|
|
1196
|
+
const toc = [{
|
|
1197
1197
|
"id": "prerequisites-and-conventions",
|
|
1198
1198
|
"text": "Prerequisites and conventions",
|
|
1199
1199
|
"depth": 2
|
|
@@ -1218,26 +1218,26 @@ var toc = [{
|
|
|
1218
1218
|
"text": "Components",
|
|
1219
1219
|
"depth": 3
|
|
1220
1220
|
}];
|
|
1221
|
-
|
|
1222
|
-
|
|
1221
|
+
const title = `Testing Projects`;
|
|
1222
|
+
const content = "\"---\\nsidebar_position: 6\\n---\\n\\n# Testing Projects\\n\\nThis chapter will describe how to test modules.\\n\\n## Prerequisites and conventions\\n\\nTo use the testing features of the project, you need to make sure that the project contains the dependency: `\\\"@modern-js/plugin-testing\\\"` , which can be done with [modern new](/guide/basic/command-preview#modern-new).\\n\\nIn the module engineering scheme, the following conventions are in place for test cases, or files for writing tests:\\n\\n- The `tests` directory in the project directory is the directory for test cases and test files, **no support for changing the directory for running test cases**.\\n- Files with the suffix `.test.[tj]sx?` are automatically recognized as test files by default.\\n- Other `. [tj]sx?` suffixes are recognized as normal files that can be used as test `utils` files or for other purposes.\\n\\n## Run the tests\\n\\nOnce the dependencies are prepared and we know where to write the test cases, we can execute the tests with the following command:\\n\\n```bash\\nmodern test\\n\\n// Update snapshot\\nmodern test --updateSnapshot\\n```\\n\\nAfter execution, you will see the results of the test:\\n\\n\\n\\n## Usage Configuration\\n\\nThe Module Engineering Program provides the following configurations for testing.\\n\\n- [`testing`](/api/config/testing)\\n\\nYou can add it in `modern.config.(j|t)s`.\\n\\n## Test example\\n\\n### Common modules\\n\\nFor common modules, we can use the test function as follows:\\n\\n<CH.Spotlight>\\n\\n```typescript ./src/index.ts\\nexport default function () {\\n return 'hello world';\\n}\\n```\\n\\n---\\n\\nFirst is the code of the module.\\n\\n```typescript ./src/index.ts\\nexport default function () {\\n return 'hello world';\\n}\\n```\\n\\n---\\n\\nThen in the test file, we can do this.\\n\\nWhere `@` points to the source directory, defined in `tests/tsconfig.json` in the initialization project.\\n\\n```typescript ./tests/index.test.ts\\nimport main from '@/index';\\n\\ndescribe('default cases', () => {\\n test('Have returns', () => {\\n const drink = jest.fn(main);\\n drink();\\n expect(drink).toHaveReturned();\\n });\\n});\\n```\\n\\n---\\n\\nFinally we can execute `modern test`.\\n\\n```bash\\npnpm test\\n## or\\nyarn test\\n## or\\nnpm run test\\n```\\n\\n</CH.Spotlight>\\n\\n### Components\\n\\n{/* 链接待补充 */}\\n\\nFor components, Modern.js's Runtime API provides functionality for testing UI components, which is provided by `@modern-js/runtime/testing`.\\n\\n:::tip\\nIf you need to use the Runtime API, then you can turn it on via [microgenerator](/guide/basic/command-preview).\\n:::\\n\\n<CH.Spotlight>\\n\\n```tsx ./src/index.tsx\\nexport const default () {\\n return (\\n <div>This is a UI Component</div>\\n );\\n}\\n```\\n\\n---\\n\\nFirst is the code of the component.\\n\\n```tsx ./src/index.tsx\\nexport const default () {\\n return (\\n <div>This is a UI Component</div>\\n );\\n}\\n```\\n\\n---\\n\\nThen in the test file, we can do this.\\n\\nWhere `@` points to the source directory, defined in `tests/tsconfig.json` in the initialization project.\\n\\n```tsx ./tests/index.test.tsx\\nimport { render, screen } from '@modern-js/runtime/testing';\\n\\nimport Component from '@/index';\\n\\ndescribe('default cases', () => {\\n test('Rendered', () => {\\n render(<Component />);\\n expect(screen.getByText('This is a UI Component')).toBeInTheDocument();\\n });\\n});\\n```\\n\\n---\\n\\nFinally we can execute `modern test`.\\n\\n```bash\\npnpm test\\n## or\\nyarn test\\n## or\\nnpm run test\\n```\\n\\n</CH.Spotlight>\\n\"";
|
|
1223
1223
|
function _createMdxContent(props) {
|
|
1224
|
-
|
|
1224
|
+
const _components = Object.assign({
|
|
1225
1225
|
h1: "h1",
|
|
1226
1226
|
a: "a",
|
|
1227
1227
|
p: "p",
|
|
1228
1228
|
h2: "h2",
|
|
1229
|
+
code: "code",
|
|
1229
1230
|
ul: "ul",
|
|
1230
1231
|
li: "li",
|
|
1231
|
-
code: "code",
|
|
1232
1232
|
strong: "strong",
|
|
1233
1233
|
img: "img",
|
|
1234
1234
|
h3: "h3",
|
|
1235
1235
|
div: "div"
|
|
1236
1236
|
}, props.components);
|
|
1237
|
-
if (!CH) _missingMdxReference("CH", false, "
|
|
1238
|
-
if (!CH.Code) _missingMdxReference("CH.Code", true, "
|
|
1237
|
+
if (!CH) _missingMdxReference("CH", false, "23:1-28:4");
|
|
1238
|
+
if (!CH.Code) _missingMdxReference("CH.Code", true, "23:1-28:4");
|
|
1239
1239
|
if (!CH.CodeSlot) _missingMdxReference("CH.CodeSlot", true);
|
|
1240
|
-
if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "
|
|
1240
|
+
if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "48:1-96:16");
|
|
1241
1241
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
1242
1242
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
|
|
1243
1243
|
id: "testing-projects",
|
|
@@ -1257,14 +1257,13 @@ function _createMdxContent(props) {
|
|
|
1257
1257
|
href: "#prerequisites-and-conventions",
|
|
1258
1258
|
children: "#"
|
|
1259
1259
|
}), "Prerequisites and conventions"]
|
|
1260
|
-
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.
|
|
1261
|
-
children: "To use the testing
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
}), "\n"]
|
|
1260
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
1261
|
+
children: ["To use the testing features of the project, you need to make sure that the project contains the dependency: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1262
|
+
children: "\"@modern-js/plugin-testing\""
|
|
1263
|
+
}), " , which can be done with ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1264
|
+
href: "/module-tools/en/guide/basic/command-preview.html#modern-new-1",
|
|
1265
|
+
children: "modern new"
|
|
1266
|
+
}), "."]
|
|
1268
1267
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
1269
1268
|
children: "In the module engineering scheme, the following conventions are in place for test cases, or files for writing tests:"
|
|
1270
1269
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
@@ -1381,7 +1380,7 @@ function _createMdxContent(props) {
|
|
|
1381
1380
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
1382
1381
|
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
1383
1382
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
1384
|
-
href: "/en/api/config/testing.html",
|
|
1383
|
+
href: "/module-tools/en/api/config/testing.html",
|
|
1385
1384
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
1386
1385
|
children: "testing"
|
|
1387
1386
|
})
|
|
@@ -2599,10 +2598,10 @@ function _createMdxContent(props) {
|
|
|
2599
2598
|
className: "modern-directive-title",
|
|
2600
2599
|
children: "TIP"
|
|
2601
2600
|
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
|
|
2602
|
-
className: "
|
|
2601
|
+
className: "modern-directive-content",
|
|
2603
2602
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
2604
|
-
children: ["
|
|
2605
|
-
href: "/en/guide/basic/command-preview.html",
|
|
2603
|
+
children: ["\nIf you need to use the Runtime API, then you can turn it on via ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
2604
|
+
href: "/module-tools/en/guide/basic/command-preview.html",
|
|
2606
2605
|
children: "microgenerator"
|
|
2607
2606
|
}), "."]
|
|
2608
2607
|
})
|
|
@@ -3870,21 +3869,17 @@ function _createMdxContent(props) {
|
|
|
3870
3869
|
})]
|
|
3871
3870
|
});
|
|
3872
3871
|
}
|
|
3873
|
-
function MDXContent() {
|
|
3874
|
-
|
|
3875
|
-
var _ref = props.components || {},
|
|
3876
|
-
MDXLayout = _ref.wrapper;
|
|
3872
|
+
function MDXContent(props = {}) {
|
|
3873
|
+
const {wrapper: MDXLayout} = props.components || ({});
|
|
3877
3874
|
return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
|
|
3878
3875
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
|
|
3879
3876
|
})) : _createMdxContent(props);
|
|
3880
3877
|
}
|
|
3881
|
-
_c = MDXContent;
|
|
3882
3878
|
/* harmony default export */ __webpack_exports__["default"] = (MDXContent);
|
|
3883
3879
|
function _missingMdxReference(id, component, place) {
|
|
3884
|
-
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/
|
|
3880
|
+
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/basic/test-your-project.mdx`" : ""));
|
|
3885
3881
|
}
|
|
3886
|
-
|
|
3887
|
-
__webpack_require__.$Refresh$.register(_c, "MDXContent");
|
|
3882
|
+
|
|
3888
3883
|
|
|
3889
3884
|
/***/ })
|
|
3890
3885
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/async/en_guide_basic_test-your-project.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA;;;;AAYA;;AAEA;;AAAA;;AAAA;;;;AAiBA;;AAAA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/basic/test-your-project.mdx"],"names":[],"sourceRoot":""}
|
|
@@ -14,10 +14,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14
14
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
|
|
15
15
|
/*@jsxRuntime automatic @jsxImportSource react*/
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
const frontmatter = {
|
|
18
18
|
"sidebar_position": 4
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
const toc = [{
|
|
21
|
+
"id": "test",
|
|
22
|
+
"text": "Test",
|
|
23
|
+
"depth": 2
|
|
24
|
+
}, {
|
|
21
25
|
"id": "storybook",
|
|
22
26
|
"text": "Storybook",
|
|
23
27
|
"depth": 2
|
|
@@ -30,10 +34,10 @@ var toc = [{
|
|
|
30
34
|
"text": "Modern.js Runtime API",
|
|
31
35
|
"depth": 2
|
|
32
36
|
}];
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
const title = `Using the Microgenerator`;
|
|
38
|
+
const content = "\"---\\nsidebar_position: 4\\n---\\n\\n# Using the Microgenerator\\n\\nThe Module Engineering solution provides the Microgenerator tool, which allows for the current project to.\\n\\n- add new directories and files\\n- Modify the contents of the `package.json` file\\n- Execute commands\\n\\nThus with these capabilities, **Microgenerator can enable additional feature functionality for the project**.\\n\\nThe microgenerator can be started via [`modern new`](/guide/basic/command-preview). The current Microgenerator features supported by the Module Engineering program are:\\n\\n## Test\\n\\nWhen we want to test some modules, we can enable the test test feature. When this feature is enabled, **a `tests` directory and related files will be created in the project directory, and a new `\\\"@modern-js/plugin-testing\\\"` dependency will be added to package.json**.\\n\\n## Storybook\\n\\nThe **Storybook feature** can be enabled when we want to debug a component or a common module. When this feature is enabled, **the `stories` directory and related files are created in the project directory, and a new `\\\"@modern-js/plugin-storybook\\\"` dependency is added to package.json**.\\n\\nFor more information on how to start Storybook and how to use it, check out the following link.\\n\\n- [`modern dev`](/en/guide/basic/command-preview#modern-dev)\\n- [`using Storybook`](/en/guide/basic/using-storybook)\\n\\n## Tailwind CSS support\\n\\nThis can be enabled when we want to add [Tailwind CSS](https://v2.tailwindcss.com/) support to our project. Tailwind CSS is a CSS library that provides out-of-the-box styling.\\n\\nFor more information on how to use Tailwind CSS in your module projects, check out.\\n\\n<!-- 链接待补充 -->\\n\\n- Using Tailwind CSS\\n\\n## Modern.js Runtime API\\n\\n<!-- 链接待补充 -->\\n\\n**Modern.js provides Runtime API capabilities that can only be used in the Modern.js application project environment**. If you need to develop a component for use in a Modern.js application environment, then you can turn on this feature and the microgenerator will add the `\\\"@modern-js/runtime\\\"` dependency.\\n\\nAlso, the Storybook debugging tool will determine if the project needs to use the Runtime API by checking the project's dependencies and providing the same Runtime API runtime environment as the Modern.js application project.\\n\"";
|
|
35
39
|
function _createMdxContent(props) {
|
|
36
|
-
|
|
40
|
+
const _components = Object.assign({
|
|
37
41
|
h1: "h1",
|
|
38
42
|
a: "a",
|
|
39
43
|
p: "p",
|
|
@@ -70,11 +74,27 @@ function _createMdxContent(props) {
|
|
|
70
74
|
}), "."]
|
|
71
75
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
72
76
|
children: ["The microgenerator can be started via ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
73
|
-
href: "/en/guide/basic/command-preview.html",
|
|
77
|
+
href: "/module-tools/en/guide/basic/command-preview.html",
|
|
74
78
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
75
79
|
children: "modern new"
|
|
76
80
|
})
|
|
77
81
|
}), ". The current Microgenerator features supported by the Module Engineering program are:"]
|
|
82
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
83
|
+
id: "test",
|
|
84
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
85
|
+
className: "header-anchor",
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
href: "#test",
|
|
88
|
+
children: "#"
|
|
89
|
+
}), "Test"]
|
|
90
|
+
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
91
|
+
children: ["When we want to test some modules, we can enable the test test feature. When this feature is enabled, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
|
|
92
|
+
children: ["a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
93
|
+
children: "tests"
|
|
94
|
+
}), " directory and related files will be created in the project directory, and a new ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
95
|
+
children: "\"@modern-js/plugin-testing\""
|
|
96
|
+
}), " dependency will be added to package.json"]
|
|
97
|
+
}), "."]
|
|
78
98
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
|
|
79
99
|
id: "storybook",
|
|
80
100
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
@@ -98,14 +118,14 @@ function _createMdxContent(props) {
|
|
|
98
118
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
|
|
99
119
|
children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
100
120
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
101
|
-
href: "/en/guide/basic/command-preview#modern-dev
|
|
121
|
+
href: "/module-tools/en/guide/basic/command-preview.html#modern-dev-2",
|
|
102
122
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
103
123
|
children: "modern dev"
|
|
104
124
|
})
|
|
105
125
|
})
|
|
106
126
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
|
|
107
127
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
108
|
-
href: "/en/guide/basic/using-storybook.html",
|
|
128
|
+
href: "/module-tools/en/guide/basic/using-storybook.html",
|
|
109
129
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
|
|
110
130
|
children: "using Storybook"
|
|
111
131
|
})
|
|
@@ -122,6 +142,8 @@ function _createMdxContent(props) {
|
|
|
122
142
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
|
|
123
143
|
children: ["This can be enabled when we want to add ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
|
|
124
144
|
href: "https://v2.tailwindcss.com/",
|
|
145
|
+
target: "_blank",
|
|
146
|
+
rel: "nofollow",
|
|
125
147
|
children: "Tailwind CSS"
|
|
126
148
|
}), " support to our project. Tailwind CSS is a CSS library that provides out-of-the-box styling."]
|
|
127
149
|
}), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
|
|
@@ -149,18 +171,14 @@ function _createMdxContent(props) {
|
|
|
149
171
|
})]
|
|
150
172
|
});
|
|
151
173
|
}
|
|
152
|
-
function MDXContent() {
|
|
153
|
-
|
|
154
|
-
var _ref = props.components || {},
|
|
155
|
-
MDXLayout = _ref.wrapper;
|
|
174
|
+
function MDXContent(props = {}) {
|
|
175
|
+
const {wrapper: MDXLayout} = props.components || ({});
|
|
156
176
|
return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
|
|
157
177
|
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
|
|
158
178
|
})) : _createMdxContent(props);
|
|
159
179
|
}
|
|
160
|
-
_c = MDXContent;
|
|
161
180
|
/* harmony default export */ __webpack_exports__["default"] = (MDXContent);
|
|
162
|
-
|
|
163
|
-
__webpack_require__.$Refresh$.register(_c, "MDXContent");
|
|
181
|
+
|
|
164
182
|
|
|
165
183
|
/***/ })
|
|
166
184
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/async/en_guide_basic_use-micro-generator.js","mappings":"
|
|
1
|
+
{"version":3,"file":"static/js/async/en_guide_basic_use-micro-generator.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEA;;;AAEA;;AACA;;AAAA;;AACA;;;AAEA;AAAA;AAAA;;AAEA;;;;;AAAA;;;;;;;;AAEA;;AAEA;AAAA;;AAAA;;AAAA;AAAA;;;;;;;;AAEA;;AAEA;AAAA;AAAA;AAAA;;AAAA;;AAAA;AAAA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;AAEA;;;;AAAA;AAAA;;AAEA;;;AAIA;;;;;;;;;AAEA;;;AAIA;AAAA;;AAAA;;AAEA","sources":["webpack://@modern-js/module-tools-docs/./docs/en/guide/basic/use-micro-generator.md"],"names":[],"sourceRoot":""}
|