@modern-js/module-tools-docs 2.2.0 → 2.3.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/LICENSE +144 -0
- package/docs/en/api/plugin-api/plugin-hooks.md +2 -10
- package/docs/en/guide/advance/in-depth-about-dev-command.md +56 -12
- package/docs/en/guide/basic/before-getting-started.md +4 -14
- package/docs/en/guide/basic/command-preview.md +1 -1
- package/docs/en/guide/basic/modify-output-product.md +6 -2
- package/docs/en/guide/basic/use-micro-generator.md +62 -1
- package/docs/en/guide/basic/using-storybook.mdx +31 -9
- package/docs/en/guide/intro/getting-started.md +17 -8
- package/docs/en/index.md +14 -8
- package/docs/en/plugins/guide/getting-started.mdx +1 -1
- package/docs/zh/api/plugin-api/plugin-hooks.md +2 -10
- package/docs/zh/guide/advance/in-depth-about-dev-command.md +52 -13
- package/docs/zh/guide/basic/before-getting-started.md +4 -14
- package/docs/zh/guide/basic/command-preview.md +2 -2
- package/docs/zh/guide/basic/modify-output-product.md +5 -3
- package/docs/zh/guide/basic/publish-your-project.md +4 -4
- package/docs/zh/guide/basic/test-your-project.mdx +18 -5
- package/docs/zh/guide/basic/use-micro-generator.md +61 -1
- package/docs/zh/guide/basic/using-storybook.mdx +39 -13
- package/docs/zh/guide/intro/getting-started.md +17 -11
- package/docs/zh/index.md +16 -10
- package/docs/zh/plugins/guide/getting-started.mdx +1 -1
- package/modern.config.ts +4 -6
- package/package.json +4 -4
- package/doc_build/api/config/build-config.html +0 -332
- package/doc_build/api/config/build-preset.html +0 -43
- package/doc_build/api/config/design-system.html +0 -103
- package/doc_build/api/config/plugins.html +0 -7
- package/doc_build/api/config/testing.html +0 -21
- package/doc_build/api/index.html +0 -1
- package/doc_build/api/plugin-api/plugin-hooks.html +0 -113
- package/doc_build/en/api/config/build-config.html +0 -316
- package/doc_build/en/api/config/build-preset.html +0 -43
- package/doc_build/en/api/config/design-system.html +0 -117
- package/doc_build/en/api/config/plugins.html +0 -7
- package/doc_build/en/api/config/testing.html +0 -21
- package/doc_build/en/api/index.html +0 -1
- package/doc_build/en/api/plugin-api/plugin-hooks.html +0 -113
- package/doc_build/en/guide/advance/asset.html +0 -25
- package/doc_build/en/guide/advance/build-umd.html +0 -32
- package/doc_build/en/guide/advance/copy.html +0 -42
- package/doc_build/en/guide/advance/external-dependency.html +0 -31
- package/doc_build/en/guide/advance/in-depth-about-build.html +0 -112
- package/doc_build/en/guide/advance/in-depth-about-dev-command.html +0 -12
- package/doc_build/en/guide/advance/theme-config.html +0 -29
- package/doc_build/en/guide/basic/before-getting-started.html +0 -89
- package/doc_build/en/guide/basic/command-preview.html +0 -63
- package/doc_build/en/guide/basic/modify-output-product.html +0 -98
- package/doc_build/en/guide/basic/publish-your-project.html +0 -50
- package/doc_build/en/guide/basic/test-your-project.html +0 -31
- package/doc_build/en/guide/basic/use-micro-generator.html +0 -29
- package/doc_build/en/guide/basic/using-storybook.html +0 -66
- package/doc_build/en/guide/best-practices/components.html +0 -111
- package/doc_build/en/guide/intro/getting-started.html +0 -36
- package/doc_build/en/guide/intro/welcome.html +0 -13
- package/doc_build/en/guide/intro/why-module-engineering-solution.html +0 -9
- package/doc_build/en/index.html +0 -1
- package/doc_build/en/plugins/guide/getting-started.html +0 -15
- package/doc_build/en/plugins/guide/plugin-object.html +0 -14
- package/doc_build/en/plugins/guide/setup-function.html +0 -30
- package/doc_build/en/plugins/official-list/overview.html +0 -3
- package/doc_build/guide/advance/asset.html +0 -25
- package/doc_build/guide/advance/build-umd.html +0 -32
- package/doc_build/guide/advance/copy.html +0 -42
- package/doc_build/guide/advance/external-dependency.html +0 -31
- package/doc_build/guide/advance/in-depth-about-build.html +0 -112
- package/doc_build/guide/advance/in-depth-about-dev-command.html +0 -14
- package/doc_build/guide/advance/theme-config.html +0 -28
- package/doc_build/guide/basic/before-getting-started.html +0 -89
- package/doc_build/guide/basic/command-preview.html +0 -63
- package/doc_build/guide/basic/modify-output-product.html +0 -97
- package/doc_build/guide/basic/publish-your-project.html +0 -52
- package/doc_build/guide/basic/test-your-project.html +0 -32
- package/doc_build/guide/basic/use-micro-generator.html +0 -27
- package/doc_build/guide/basic/using-storybook.html +0 -67
- package/doc_build/guide/best-practices/components.html +0 -111
- package/doc_build/guide/intro/getting-started.html +0 -39
- package/doc_build/guide/intro/welcome.html +0 -13
- package/doc_build/guide/intro/why-module-engineering-solution.html +0 -9
- package/doc_build/index.html +0 -1
- package/doc_build/plugins/guide/getting-started.html +0 -15
- package/doc_build/plugins/guide/plugin-object.html +0 -14
- package/doc_build/plugins/guide/setup-function.html +0 -30
- package/doc_build/plugins/official-list/overview.html +0 -3
- package/doc_build/static/css/main.edaad072.css +0 -1
- package/doc_build/static/js/1607.70af642a.js +0 -2
- package/doc_build/static/js/1607.70af642a.js.LICENSE.txt +0 -23
- package/doc_build/static/js/async/3799.e31e8293.js +0 -1
- package/doc_build/static/js/async/8652.6fbf1cb7.js +0 -1
- package/doc_build/static/js/async/en_api_config_build-config.367a5701.js +0 -1
- package/doc_build/static/js/async/en_api_config_build-preset.0d78b268.js +0 -1
- package/doc_build/static/js/async/en_api_config_design-system.b28d6723.js +0 -1
- package/doc_build/static/js/async/en_api_config_plugins.fc95fb77.js +0 -1
- package/doc_build/static/js/async/en_api_config_testing.8bc7f316.js +0 -1
- package/doc_build/static/js/async/en_api_index.669f0a56.js +0 -1
- package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.60d0260c.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_asset.5ff1d623.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_build-umd.c254ed46.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_copy.45c0a51d.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_external-dependency.a52d3247.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.51bf3569.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.aec0b4e1.js +0 -1
- package/doc_build/static/js/async/en_guide_advance_theme-config.db0ad9fc.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.a22fc49a.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_command-preview.1707ed29.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.ad453d13.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.08c5112f.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_test-your-project.f5f6b204.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.56325139.js +0 -1
- package/doc_build/static/js/async/en_guide_basic_using-storybook.9d721554.js +0 -1
- package/doc_build/static/js/async/en_guide_best-practices_components.45155af9.js +0 -1
- package/doc_build/static/js/async/en_guide_intro_getting-started.f8682be3.js +0 -1
- package/doc_build/static/js/async/en_guide_intro_welcome.9cc45924.js +0 -1
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.7f2dae5c.js +0 -1
- package/doc_build/static/js/async/en_index.7bd869c4.js +0 -1
- package/doc_build/static/js/async/en_plugins_guide_getting-started.b850249c.js +0 -1
- package/doc_build/static/js/async/en_plugins_guide_plugin-object.bf6c6221.js +0 -1
- package/doc_build/static/js/async/en_plugins_guide_setup-function.80a2bd97.js +0 -1
- package/doc_build/static/js/async/en_plugins_official-list_overview.84e5cea0.js +0 -1
- package/doc_build/static/js/async/zh_api_config_build-config.048fd5ec.js +0 -1
- package/doc_build/static/js/async/zh_api_config_build-preset.7c13584d.js +0 -1
- package/doc_build/static/js/async/zh_api_config_design-system.1eecd474.js +0 -1
- package/doc_build/static/js/async/zh_api_config_plugins.c22dc4be.js +0 -1
- package/doc_build/static/js/async/zh_api_config_testing.a9888eed.js +0 -1
- package/doc_build/static/js/async/zh_api_index.22957707.js +0 -1
- package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.a4d81bf6.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_asset.5b936003.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_build-umd.b6d541ff.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_copy.21a1aea4.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_external-dependency.c7cf5d4b.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.64e795f3.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.168ce7dd.js +0 -1
- package/doc_build/static/js/async/zh_guide_advance_theme-config.b9570109.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_before-getting-started.6b06b54a.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_command-preview.1199124a.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_modify-output-product.8ccbc8d1.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_publish-your-project.bf11b1c4.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_test-your-project.ae52c47a.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.a091d57d.js +0 -1
- package/doc_build/static/js/async/zh_guide_basic_using-storybook.27829e44.js +0 -1
- package/doc_build/static/js/async/zh_guide_best-practices_components.7454d916.js +0 -1
- package/doc_build/static/js/async/zh_guide_intro_getting-started.a4c00d9a.js +0 -1
- package/doc_build/static/js/async/zh_guide_intro_welcome.71c3fe16.js +0 -1
- package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.6f8b5ff6.js +0 -1
- package/doc_build/static/js/async/zh_index.c19f9dcf.js +0 -1
- package/doc_build/static/js/async/zh_plugins_guide_getting-started.099dfaea.js +0 -1
- package/doc_build/static/js/async/zh_plugins_guide_plugin-object.963289d5.js +0 -1
- package/doc_build/static/js/async/zh_plugins_guide_setup-function.67d07b91.js +0 -1
- package/doc_build/static/js/async/zh_plugins_official-list_overview.a7635714.js +0 -1
- package/doc_build/static/js/lib-lodash.c5845536.js +0 -1
- package/doc_build/static/js/lib-polyfill.b3038509.js +0 -1
- package/doc_build/static/js/lib-react.d41ace5e.js +0 -2
- package/doc_build/static/js/lib-react.d41ace5e.js.LICENSE.txt +0 -29
- package/doc_build/static/js/main.2d3257a4.js +0 -1
- package/doc_build/static/search_index.json +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_modern_js_module_tools_docs=self.webpackChunk_modern_js_module_tools_docs||[]).push([[2821],{43319:function(e,o,n){n.r(o),n.d(o,{CH:function(){return i},chCodeConfig:function(){return s},content:function(){return l},frontmatter:function(){return c},title:function(){return a},toc:function(){return d}});var t=n(97458),r=n(53799);const i={annotations:r.ds,Code:r.EK},s={staticMediaQuery:"not screen, (max-width: 768px)",theme:{name:"nord",type:"dark",semanticHighlighting:!0,colors:{focusBorder:"#3b4252",foreground:"#d8dee9","activityBar.background":"#2e3440","activityBar.dropBackground":"#3b4252","activityBar.foreground":"#d8dee9","activityBar.activeBorder":"#88c0d0","activityBar.activeBackground":"#3b4252","activityBarBadge.background":"#88c0d0","activityBarBadge.foreground":"#2e3440","badge.foreground":"#2e3440","badge.background":"#88c0d0","button.background":"#88c0d0ee","button.foreground":"#2e3440","button.hoverBackground":"#88c0d0","button.secondaryBackground":"#434c5e","button.secondaryForeground":"#d8dee9","button.secondaryHoverBackground":"#4c566a","charts.red":"#bf616a","charts.blue":"#81a1c1","charts.yellow":"#ebcb8b","charts.orange":"#d08770","charts.green":"#a3be8c","charts.purple":"#b48ead","charts.foreground":"#d8dee9","charts.lines":"#88c0d0","debugConsole.infoForeground":"#88c0d0","debugConsole.warningForeground":"#ebcb8b","debugConsole.errorForeground":"#bf616a","debugConsole.sourceForeground":"#616e88","debugConsoleInputIcon.foreground":"#81a1c1","debugExceptionWidget.background":"#4c566a","debugExceptionWidget.border":"#2e3440","debugToolBar.background":"#3b4252",descriptionForeground:"#d8dee9e6","diffEditor.insertedTextBackground":"#81a1c133","diffEditor.removedTextBackground":"#bf616a4d","dropdown.background":"#3b4252","dropdown.border":"#3b4252","dropdown.foreground":"#d8dee9","editorActiveLineNumber.foreground":"#d8dee9cc","editorCursor.foreground":"#d8dee9","editorHint.border":"#ebcb8b00","editorHint.foreground":"#ebcb8b","editorIndentGuide.background":"#434c5eb3","editorIndentGuide.activeBackground":"#4c566a","editorInlayHint.background":"#434c5e","editorInlayHint.foreground":"#d8dee9","editorLineNumber.foreground":"#4c566a","editorLineNumber.activeForeground":"#d8dee9","editorWhitespace.foreground":"#4c566ab3","editorWidget.background":"#2e3440","editorWidget.border":"#3b4252","editor.background":"#2e3440","editor.foreground":"#d8dee9","editor.hoverHighlightBackground":"#3b4252","editor.findMatchBackground":"#88c0d066","editor.findMatchHighlightBackground":"#88c0d033","editor.findRangeHighlightBackground":"#88c0d033","editor.lineHighlightBackground":"#3b4252","editor.lineHighlightBorder":"#3b4252","editor.inactiveSelectionBackground":"#434c5ecc","editor.inlineValuesBackground":"#4c566a","editor.inlineValuesForeground":"#eceff4","editor.selectionBackground":"#434c5ecc","editor.selectionHighlightBackground":"#434c5ecc","editor.rangeHighlightBackground":"#434c5e52","editor.wordHighlightBackground":"#81a1c166","editor.wordHighlightStrongBackground":"#81a1c199","editor.stackFrameHighlightBackground":"#5e81ac","editor.focusedStackFrameHighlightBackground":"#5e81ac","editorError.foreground":"#bf616a","editorError.border":"#bf616a00","editorWarning.foreground":"#ebcb8b","editorWarning.border":"#ebcb8b00","editorBracketMatch.background":"#2e344000","editorBracketMatch.border":"#88c0d0","editorBracketHighlight.foreground1":"#8fbcbb","editorBracketHighlight.foreground2":"#88c0d0","editorBracketHighlight.foreground3":"#81a1c1","editorBracketHighlight.foreground4":"#5e81ac","editorBracketHighlight.foreground5":"#8fbcbb","editorBracketHighlight.foreground6":"#88c0d0","editorBracketHighlight.unexpectedBracket.foreground":"#bf616a","editorCodeLens.foreground":"#4c566a","editorGroup.background":"#2e3440","editorGroup.border":"#3b425201","editorGroup.dropBackground":"#3b425299","editorGroupHeader.border":"#3b425200","editorGroupHeader.noTabsBackground":"#2e3440","editorGroupHeader.tabsBackground":"#2e3440","editorGroupHeader.tabsBorder":"#3b425200","editorGutter.background":"#2e3440","editorGutter.modifiedBackground":"#ebcb8b","editorGutter.addedBackground":"#a3be8c","editorGutter.deletedBackground":"#bf616a","editorHoverWidget.background":"#3b4252","editorHoverWidget.border":"#3b4252","editorLink.activeForeground":"#88c0d0","editorMarkerNavigation.background":"#5e81acc0","editorMarkerNavigationError.background":"#bf616ac0","editorMarkerNavigationWarning.background":"#ebcb8bc0","editorOverviewRuler.border":"#3b4252","editorOverviewRuler.currentContentForeground":"#3b4252","editorOverviewRuler.incomingContentForeground":"#3b4252","editorOverviewRuler.findMatchForeground":"#88c0d066","editorOverviewRuler.rangeHighlightForeground":"#88c0d066","editorOverviewRuler.selectionHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightStrongForeground":"#88c0d066","editorOverviewRuler.modifiedForeground":"#ebcb8b","editorOverviewRuler.addedForeground":"#a3be8c","editorOverviewRuler.deletedForeground":"#bf616a","editorOverviewRuler.errorForeground":"#bf616a","editorOverviewRuler.warningForeground":"#ebcb8b","editorOverviewRuler.infoForeground":"#81a1c1","editorRuler.foreground":"#434c5e","editorSuggestWidget.background":"#2e3440","editorSuggestWidget.border":"#3b4252","editorSuggestWidget.foreground":"#d8dee9","editorSuggestWidget.focusHighlightForeground":"#88c0d0","editorSuggestWidget.highlightForeground":"#88c0d0","editorSuggestWidget.selectedBackground":"#434c5e","editorSuggestWidget.selectedForeground":"#d8dee9","extensionButton.prominentForeground":"#d8dee9","extensionButton.prominentBackground":"#434c5e","extensionButton.prominentHoverBackground":"#4c566a",errorForeground:"#bf616a","gitDecoration.modifiedResourceForeground":"#ebcb8b","gitDecoration.deletedResourceForeground":"#bf616a","gitDecoration.untrackedResourceForeground":"#a3be8c","gitDecoration.ignoredResourceForeground":"#d8dee966","gitDecoration.conflictingResourceForeground":"#5e81ac","gitDecoration.submoduleResourceForeground":"#8fbcbb","gitDecoration.stageDeletedResourceForeground":"#bf616a","gitDecoration.stageModifiedResourceForeground":"#ebcb8b","input.background":"#3b4252","input.foreground":"#d8dee9","input.placeholderForeground":"#d8dee999","input.border":"#3b4252","inputOption.activeBackground":"#5e81ac","inputOption.activeBorder":"#5e81ac","inputOption.activeForeground":"#eceff4","inputValidation.errorBackground":"#bf616a","inputValidation.errorBorder":"#bf616a","inputValidation.infoBackground":"#81a1c1","inputValidation.infoBorder":"#81a1c1","inputValidation.warningBackground":"#d08770","inputValidation.warningBorder":"#d08770","keybindingLabel.background":"#4c566a","keybindingLabel.border":"#4c566a","keybindingLabel.bottomBorder":"#4c566a","keybindingLabel.foreground":"#d8dee9","list.activeSelectionBackground":"#88c0d0","list.activeSelectionForeground":"#2e3440","list.inactiveSelectionBackground":"#434c5e","list.inactiveSelectionForeground":"#d8dee9","list.inactiveFocusBackground":"#434c5ecc","list.hoverForeground":"#eceff4","list.focusForeground":"#d8dee9","list.focusBackground":"#88c0d099","list.focusHighlightForeground":"#eceff4","list.hoverBackground":"#3b4252","list.dropBackground":"#88c0d099","list.highlightForeground":"#88c0d0","list.errorForeground":"#bf616a","list.warningForeground":"#ebcb8b","merge.currentHeaderBackground":"#81a1c166","merge.currentContentBackground":"#81a1c14d","merge.incomingHeaderBackground":"#8fbcbb66","merge.incomingContentBackground":"#8fbcbb4d","merge.border":"#3b425200","minimap.background":"#2e3440","minimap.errorHighlight":"#bf616acc","minimap.findMatchHighlight":"#88c0d0","minimap.selectionHighlight":"#88c0d0cc","minimap.warningHighlight":"#ebcb8bcc","minimapGutter.addedBackground":"#a3be8c","minimapGutter.deletedBackground":"#bf616a","minimapGutter.modifiedBackground":"#ebcb8b","minimapSlider.activeBackground":"#434c5eaa","minimapSlider.background":"#434c5e99","minimapSlider.hoverBackground":"#434c5eaa","notification.background":"#3b4252","notification.buttonBackground":"#434c5e","notification.buttonForeground":"#d8dee9","notification.buttonHoverBackground":"#4c566a","notification.errorBackground":"#bf616a","notification.errorForeground":"#2e3440","notification.foreground":"#d8dee9","notification.infoBackground":"#88c0d0","notification.infoForeground":"#2e3440","notification.warningBackground":"#ebcb8b","notification.warningForeground":"#2e3440","notificationCenter.border":"#3b425200","notificationCenterHeader.background":"#2e3440","notificationCenterHeader.foreground":"#88c0d0","notificationLink.foreground":"#88c0d0","notifications.background":"#3b4252","notifications.border":"#2e3440","notifications.foreground":"#d8dee9","notificationToast.border":"#3b425200","panel.background":"#2e3440","panel.border":"#3b4252","panelTitle.activeBorder":"#88c0d000","panelTitle.activeForeground":"#88c0d0","panelTitle.inactiveForeground":"#d8dee9","peekView.border":"#4c566a","peekViewEditor.background":"#2e3440","peekViewEditorGutter.background":"#2e3440","peekViewEditor.matchHighlightBackground":"#88c0d04d","peekViewResult.background":"#2e3440","peekViewResult.fileForeground":"#88c0d0","peekViewResult.lineForeground":"#d8dee966","peekViewResult.matchHighlightBackground":"#88c0d0cc","peekViewResult.selectionBackground":"#434c5e","peekViewResult.selectionForeground":"#d8dee9","peekViewTitle.background":"#3b4252","peekViewTitleDescription.foreground":"#d8dee9","peekViewTitleLabel.foreground":"#88c0d0","pickerGroup.border":"#3b4252","pickerGroup.foreground":"#88c0d0","progressBar.background":"#88c0d0","quickInputList.focusBackground":"#88c0d0","quickInputList.focusForeground":"#2e3440","sash.hoverBorder":"#88c0d0","scrollbar.shadow":"#00000066","scrollbarSlider.activeBackground":"#434c5eaa","scrollbarSlider.background":"#434c5e99","scrollbarSlider.hoverBackground":"#434c5eaa","selection.background":"#88c0d099","sideBar.background":"#2e3440","sideBar.foreground":"#d8dee9","sideBar.border":"#3b4252","sideBarSectionHeader.background":"#3b4252","sideBarSectionHeader.foreground":"#d8dee9","sideBarTitle.foreground":"#d8dee9","statusBar.background":"#3b4252","statusBar.debuggingBackground":"#5e81ac","statusBar.debuggingForeground":"#d8dee9","statusBar.noFolderForeground":"#d8dee9","statusBar.noFolderBackground":"#3b4252","statusBar.foreground":"#d8dee9","statusBarItem.activeBackground":"#4c566a","statusBarItem.hoverBackground":"#434c5e","statusBarItem.prominentBackground":"#3b4252","statusBarItem.prominentHoverBackground":"#434c5e","statusBarItem.errorBackground":"#3b4252","statusBarItem.errorForeground":"#bf616a","statusBarItem.warningBackground":"#ebcb8b","statusBarItem.warningForeground":"#2e3440","statusBar.border":"#3b425200","tab.activeBackground":"#3b4252","tab.activeForeground":"#d8dee9","tab.border":"#3b425200","tab.activeBorder":"#88c0d000","tab.unfocusedActiveBorder":"#88c0d000","tab.inactiveBackground":"#2e3440","tab.inactiveForeground":"#d8dee966","tab.unfocusedActiveForeground":"#d8dee999","tab.unfocusedInactiveForeground":"#d8dee966","tab.hoverBackground":"#3b4252cc","tab.unfocusedHoverBackground":"#3b4252b3","tab.hoverBorder":"#88c0d000","tab.unfocusedHoverBorder":"#88c0d000","tab.activeBorderTop":"#88c0d000","tab.unfocusedActiveBorderTop":"#88c0d000","tab.lastPinnedBorder":"#4c566a","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.ansiBlack":"#3b4252","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#ebcb8b","terminal.ansiBlue":"#81a1c1","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0","terminal.ansiBrightBlack":"#4c566a","terminal.ansiBrightRed":"#bf616a","terminal.ansiBrightGreen":"#a3be8c","terminal.ansiBrightYellow":"#ebcb8b","terminal.ansiBrightBlue":"#81a1c1","terminal.ansiBrightMagenta":"#b48ead","terminal.ansiBrightCyan":"#8fbcbb","terminal.ansiBrightWhite":"#eceff4","terminal.tab.activeBorder":"#88c0d0","textBlockQuote.background":"#3b4252","textBlockQuote.border":"#81a1c1","textCodeBlock.background":"#4c566a","textLink.activeForeground":"#88c0d0","textLink.foreground":"#88c0d0","textPreformat.foreground":"#8fbcbb","textSeparator.foreground":"#eceff4","titleBar.activeBackground":"#2e3440","titleBar.activeForeground":"#d8dee9","titleBar.border":"#2e344000","titleBar.inactiveBackground":"#2e3440","titleBar.inactiveForeground":"#d8dee966","tree.indentGuidesStroke":"#616e88","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonBackground":"#434c5e","welcomePage.buttonHoverBackground":"#4c566a","widget.shadow":"#00000066"},tokenColors:[{settings:{foreground:"#d8dee9ff",background:"#2e3440ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{name:"Comment",scope:"comment",settings:{foreground:"#616E88"}},{name:"Constant Character",scope:"constant.character",settings:{foreground:"#EBCB8B"}},{name:"Constant Character Escape",scope:"constant.character.escape",settings:{foreground:"#EBCB8B"}},{name:"Constant Language",scope:"constant.language",settings:{foreground:"#81A1C1"}},{name:"Constant Numeric",scope:"constant.numeric",settings:{foreground:"#B48EAD"}},{name:"Constant Regexp",scope:"constant.regexp",settings:{foreground:"#EBCB8B"}},{name:"Entity Name Class/Type",scope:["entity.name.class","entity.name.type.class"],settings:{foreground:"#8FBCBB"}},{name:"Entity Name Function",scope:"entity.name.function",settings:{foreground:"#88C0D0"}},{name:"Entity Name Tag",scope:"entity.name.tag",settings:{foreground:"#81A1C1"}},{name:"Entity Other Attribute Name",scope:"entity.other.attribute-name",settings:{foreground:"#8FBCBB"}},{name:"Entity Other Inherited Class",scope:"entity.other.inherited-class",settings:{fontStyle:"bold",foreground:"#8FBCBB"}},{name:"Invalid Deprecated",scope:"invalid.deprecated",settings:{foreground:"#D8DEE9",background:"#EBCB8B"}},{name:"Invalid Illegal",scope:"invalid.illegal",settings:{foreground:"#D8DEE9",background:"#BF616A"}},{name:"Keyword",scope:"keyword",settings:{foreground:"#81A1C1"}},{name:"Keyword Operator",scope:"keyword.operator",settings:{foreground:"#81A1C1"}},{name:"Keyword Other New",scope:"keyword.other.new",settings:{foreground:"#81A1C1"}},{name:"Markup Bold",scope:"markup.bold",settings:{fontStyle:"bold"}},{name:"Markup Changed",scope:"markup.changed",settings:{foreground:"#EBCB8B"}},{name:"Markup Deleted",scope:"markup.deleted",settings:{foreground:"#BF616A"}},{name:"Markup Inserted",scope:"markup.inserted",settings:{foreground:"#A3BE8C"}},{name:"Meta Preprocessor",scope:"meta.preprocessor",settings:{foreground:"#5E81AC"}},{name:"Punctuation",scope:"punctuation",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Parameters",scope:["punctuation.definition.method-parameters","punctuation.definition.function-parameters","punctuation.definition.parameters"],settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Tag",scope:"punctuation.definition.tag",settings:{foreground:"#81A1C1"}},{name:"Punctuation Definition Comment",scope:["punctuation.definition.comment","punctuation.end.definition.comment","punctuation.start.definition.comment"],settings:{foreground:"#616E88"}},{name:"Punctuation Section",scope:"punctuation.section",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Section Embedded",scope:["punctuation.section.embedded.begin","punctuation.section.embedded.end"],settings:{foreground:"#81A1C1"}},{name:"Punctuation Terminator",scope:"punctuation.terminator",settings:{foreground:"#81A1C1"}},{name:"Punctuation Variable",scope:"punctuation.definition.variable",settings:{foreground:"#81A1C1"}},{name:"Storage",scope:"storage",settings:{foreground:"#81A1C1"}},{name:"String",scope:"string",settings:{foreground:"#A3BE8C"}},{name:"String Regexp",scope:"string.regexp",settings:{foreground:"#EBCB8B"}},{name:"Support Class",scope:"support.class",settings:{foreground:"#8FBCBB"}},{name:"Support Constant",scope:"support.constant",settings:{foreground:"#81A1C1"}},{name:"Support Function",scope:"support.function",settings:{foreground:"#88C0D0"}},{name:"Support Function Construct",scope:"support.function.construct",settings:{foreground:"#81A1C1"}},{name:"Support Type",scope:"support.type",settings:{foreground:"#8FBCBB"}},{name:"Support Type Exception",scope:"support.type.exception",settings:{foreground:"#8FBCBB"}},{name:"Token Debug",scope:"token.debug-token",settings:{foreground:"#b48ead"}},{name:"Token Error",scope:"token.error-token",settings:{foreground:"#bf616a"}},{name:"Token Info",scope:"token.info-token",settings:{foreground:"#88c0d0"}},{name:"Token Warning",scope:"token.warn-token",settings:{foreground:"#ebcb8b"}},{name:"Variable",scope:"variable.other",settings:{foreground:"#D8DEE9"}},{name:"Variable Language",scope:"variable.language",settings:{foreground:"#81A1C1"}},{name:"Variable Parameter",scope:"variable.parameter",settings:{foreground:"#D8DEE9"}},{name:"[C/CPP] Punctuation Separator Pointer-Access",scope:"punctuation.separator.pointer-access.c",settings:{foreground:"#81A1C1"}},{name:"[C/CPP] Meta Preprocessor Include",scope:["source.c meta.preprocessor.include","source.c string.quoted.other.lt-gt.include"],settings:{foreground:"#8FBCBB"}},{name:"[C/CPP] Conditional Directive",scope:["source.cpp keyword.control.directive.conditional","source.cpp punctuation.definition.directive","source.c keyword.control.directive.conditional","source.c punctuation.definition.directive"],settings:{foreground:"#5E81AC",fontStyle:"bold"}},{name:"[CSS] Constant Other Color RGB Value",scope:"source.css constant.other.color.rgb-value",settings:{foreground:"#B48EAD"}},{name:"[CSS](Function) Meta Property-Value",scope:"source.css meta.property-value",settings:{foreground:"#88C0D0"}},{name:"[CSS] Media Queries",scope:["source.css keyword.control.at-rule.media","source.css keyword.control.at-rule.media punctuation.definition.keyword"],settings:{foreground:"#D08770"}},{name:"[CSS] Punctuation Definition Keyword",scope:"source.css punctuation.definition.keyword",settings:{foreground:"#81A1C1"}},{name:"[CSS] Support Type Property Name",scope:"source.css support.type.property-name",settings:{foreground:"#D8DEE9"}},{name:"[diff] Meta Range Context",scope:"source.diff meta.diff.range.context",settings:{foreground:"#8FBCBB"}},{name:"[diff] Meta Header From-File",scope:"source.diff meta.diff.header.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition From-File",scope:"source.diff punctuation.definition.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Range",scope:"source.diff punctuation.definition.range",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Separator",scope:"source.diff punctuation.definition.separator",settings:{foreground:"#81A1C1"}},{name:"[Elixir](JakeBecker.elixir-ls) module names",scope:"entity.name.type.module.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Elixir](JakeBecker.elixir-ls) module attributes",scope:"variable.other.readwrite.module.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) atoms",scope:"constant.other.symbol.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) modules",scope:"variable.other.constant.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Go] String Format Placeholder",scope:"source.go constant.other.placeholder.go",settings:{foreground:"#EBCB8B"}},{name:"[Java](JavaDoc) Comment Block Documentation HTML Entities",scope:"source.java comment.block.documentation.javadoc punctuation.definition.entity.html",settings:{foreground:"#81A1C1"}},{name:"[Java](JavaDoc) Constant Other",scope:"source.java constant.other",settings:{foreground:"#D8DEE9"}},{name:"[Java](JavaDoc) Keyword Other Documentation",scope:"source.java keyword.other.documentation",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Author",scope:"source.java keyword.other.documentation.author.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Directive/Custom",scope:["source.java keyword.other.documentation.directive","source.java keyword.other.documentation.custom"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation See",scope:"source.java keyword.other.documentation.see.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java] Meta Method-Call",scope:"source.java meta.method-call meta.method",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Meta Tag Template Link",scope:["source.java meta.tag.template.link.javadoc","source.java string.other.link.title.javadoc"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Meta Tag Template Value",scope:"source.java meta.tag.template.value.javadoc",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Punctuation Definition Keyword",scope:"source.java punctuation.definition.keyword.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Punctuation Definition Tag",scope:["source.java punctuation.definition.tag.begin.javadoc","source.java punctuation.definition.tag.end.javadoc"],settings:{foreground:"#616E88"}},{name:"[Java] Storage Modifier Import",scope:"source.java storage.modifier.import",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Modifier Package",scope:"source.java storage.modifier.package",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type",scope:"source.java storage.type",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Annotation",scope:"source.java storage.type.annotation",settings:{foreground:"#D08770"}},{name:"[Java] Storage Type Generic",scope:"source.java storage.type.generic",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Primitive",scope:"source.java storage.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Decorator",scope:["source.js punctuation.decorator","source.js meta.decorator variable.other.readwrite","source.js meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[JavaScript] Meta Object-Literal Key",scope:"source.js meta.object-literal.key",settings:{foreground:"#88C0D0"}},{name:"[JavaScript](JSDoc) Storage Type Class",scope:"source.js storage.type.class.jsdoc",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] String Template Literals Punctuation",scope:["source.js string.quoted.template punctuation.quasi.element.begin","source.js string.quoted.template punctuation.quasi.element.end","source.js string.template punctuation.definition.template-expression"],settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Interpolated String Template Punctuation Functions",scope:"source.js string.quoted.template meta.method-call.with-arguments",settings:{foreground:"#ECEFF4"}},{name:"[JavaScript] String Template Literal Variable",scope:["source.js string.template meta.template.expression support.variable.property","source.js string.template meta.template.expression variable.other.object"],settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Support Type Primitive",scope:"source.js support.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Variable Other Object",scope:"source.js variable.other.object",settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Variable Other Read-Write Alias",scope:"source.js variable.other.readwrite.alias",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] Parentheses in Template Strings",scope:["source.js meta.embedded.line meta.brace.square","source.js meta.embedded.line meta.brace.round","source.js string.quoted.template meta.brace.square","source.js string.quoted.template meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[HTML] Constant Character Entity",scope:"text.html.basic constant.character.entity.html",settings:{foreground:"#EBCB8B"}},{name:"[HTML] Constant Other Inline-Data",scope:"text.html.basic constant.other.inline-data",settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[HTML] Meta Tag SGML Doctype",scope:"text.html.basic meta.tag.sgml.doctype",settings:{foreground:"#5E81AC"}},{name:"[HTML] Punctuation Definition Entity",scope:"text.html.basic punctuation.definition.entity",settings:{foreground:"#81A1C1"}},{name:"[INI] Entity Name Section Group-Title",scope:"source.properties entity.name.section.group-title.ini",settings:{foreground:"#88C0D0"}},{name:"[INI] Punctuation Separator Key-Value",scope:"source.properties punctuation.separator.key-value.ini",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Fenced Code Block",scope:["text.html.markdown markup.fenced_code.block","text.html.markdown markup.fenced_code.block punctuation.definition"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Heading",scope:"markup.heading",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Inline",scope:["text.html.markdown markup.inline.raw","text.html.markdown markup.inline.raw punctuation.definition.raw"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Italic",scope:"text.html.markdown markup.italic",settings:{fontStyle:"italic"}},{name:"[Markdown] Markup Link",scope:"text.html.markdown markup.underline.link",settings:{fontStyle:"underline"}},{name:"[Markdown] Markup List Numbered/Unnumbered",scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown beginning.punctuation.definition.quote",settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown markup.quote",settings:{foreground:"#616E88"}},{name:"[Markdown] Markup Math Constant",scope:"text.html.markdown constant.character.math.tex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Math Definition Marker",scope:["text.html.markdown punctuation.definition.math.begin","text.html.markdown punctuation.definition.math.end"],settings:{foreground:"#5E81AC"}},{name:"[Markdown] Markup Math Function Definition Marker",scope:"text.html.markdown punctuation.definition.function.math.tex",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Math Operator",scope:"text.html.markdown punctuation.math.operator.latex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Heading",scope:"text.html.markdown punctuation.definition.heading",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Constant/String",scope:["text.html.markdown punctuation.definition.constant","text.html.markdown punctuation.definition.string"],settings:{foreground:"#81A1C1"}},{name:"[Markdown] String Other Link Description/Title",scope:["text.html.markdown constant.other.reference.link","text.html.markdown string.other.link.description","text.html.markdown string.other.link.title"],settings:{foreground:"#88C0D0"}},{name:"[Perl] Perl Sigils",scope:"source.perl punctuation.definition.variable",settings:{foreground:"#D8DEE9"}},{name:"[PHP] Meta Function-Call Object",scope:["source.php meta.function-call","source.php meta.function-call.object"],settings:{foreground:"#88C0D0"}},{name:"[Python] Decorator",scope:["source.python entity.name.function.decorator","source.python meta.function.decorator support.type"],settings:{foreground:"#D08770"}},{name:"[Python] Function Call",scope:"source.python meta.function-call.generic",settings:{foreground:"#88C0D0"}},{name:"[Python] Support Type",scope:"source.python support.type",settings:{foreground:"#88C0D0"}},{name:"[Python] Function Parameter",scope:["source.python variable.parameter.function.language"],settings:{foreground:"#D8DEE9"}},{name:"[Python] Function Parameter Special",scope:["source.python meta.function.parameters variable.parameter.function.language.special.self"],settings:{foreground:"#81A1C1"}},{name:"[Rust] Entity types",scope:"source.rust entity.name.type",settings:{foreground:"#8FBCBB"}},{name:"[Rust] Macro",scope:"source.rust meta.macro entity.name.function",settings:{fontStyle:"bold",foreground:"#88C0D0"}},{name:"[Rust] Attributes",scope:["source.rust meta.attribute","source.rust meta.attribute punctuation","source.rust meta.attribute keyword.operator"],settings:{foreground:"#5E81AC"}},{name:"[Rust] Traits",scope:"source.rust entity.name.type.trait",settings:{fontStyle:"bold"}},{name:"[Rust] Interpolation Bracket Curly",scope:"source.rust punctuation.definition.interpolation",settings:{foreground:"#EBCB8B"}},{name:"[SCSS] Punctuation Definition Interpolation Bracket Curly",scope:["source.css.scss punctuation.definition.interpolation.begin.bracket.curly","source.css.scss punctuation.definition.interpolation.end.bracket.curly"],settings:{foreground:"#81A1C1"}},{name:"[SCSS] Variable Interpolation",scope:"source.css.scss variable.interpolation",settings:{foreground:"#D8DEE9",fontStyle:"italic"}},{name:"[TypeScript] Decorators",scope:["source.ts punctuation.decorator","source.ts meta.decorator variable.other.readwrite","source.ts meta.decorator entity.name.function","source.tsx punctuation.decorator","source.tsx meta.decorator variable.other.readwrite","source.tsx meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[TypeScript] Object-literal keys",scope:["source.ts meta.object-literal.key","source.tsx meta.object-literal.key"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Object-literal functions",scope:["source.ts meta.object-literal.key entity.name.function","source.tsx meta.object-literal.key entity.name.function"],settings:{foreground:"#88C0D0"}},{name:"[TypeScript] Type/Class",scope:["source.ts support.class","source.ts support.type","source.ts entity.name.type","source.ts entity.name.class","source.tsx support.class","source.tsx support.type","source.tsx entity.name.type","source.tsx entity.name.class"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Static Class Support",scope:["source.ts support.constant.math","source.ts support.constant.dom","source.ts support.constant.json","source.tsx support.constant.math","source.tsx support.constant.dom","source.tsx support.constant.json"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Variables",scope:["source.ts support.variable","source.tsx support.variable"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Parentheses in Template Strings",scope:["source.ts meta.embedded.line meta.brace.square","source.ts meta.embedded.line meta.brace.round","source.tsx meta.embedded.line meta.brace.square","source.tsx meta.embedded.line meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[XML] Entity Name Tag Namespace",scope:"text.xml entity.name.tag.namespace",settings:{foreground:"#8FBCBB"}},{name:"[XML] Keyword Other Doctype",scope:"text.xml keyword.other.doctype",settings:{foreground:"#5E81AC"}},{name:"[XML] Meta Tag Preprocessor",scope:"text.xml meta.tag.preprocessor entity.name.tag",settings:{foreground:"#5E81AC"}},{name:"[XML] Entity Name Tag Namespace",scope:["text.xml string.unquoted.cdata","text.xml string.unquoted.cdata punctuation.definition.string"],settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[YAML] Entity Name Tag",scope:"source.yaml entity.name.tag",settings:{foreground:"#8FBCBB"}}]},autoImport:!0,showCopyButton:!0,skipLanguages:[],filepath:"/Users/bytedance/modern.js/website/module-tools/docs/zh/guide/basic/modify-output-product.md"},c={sidebar_position:3},d=[{id:"\u9ed8\u8ba4\u8f93\u51fa\u4ea7\u7269",text:"\u9ed8\u8ba4\u8f93\u51fa\u4ea7\u7269",depth:2},{id:"\u6784\u5efa\u9884\u8bbe",text:"\u6784\u5efa\u9884\u8bbe",depth:2},{id:"\u6784\u5efa\u9884\u8bbe\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f",text:"\u6784\u5efa\u9884\u8bbe\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f",depth:3},{id:"\u6784\u5efa\u9884\u8bbe\u7684\u51fd\u6570\u5f62\u5f0f",text:"\u6784\u5efa\u9884\u8bbe\u7684\u51fd\u6570\u5f62\u5f0f",depth:3},{id:"\u6784\u5efa\u914d\u7f6e\u5bf9\u8c61",text:"\u6784\u5efa\u914d\u7f6e\uff08\u5bf9\u8c61\uff09",depth:2},{id:"\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528-buildconfig",text:"\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528 buildConfig",depth:2}],a="\u4fee\u6539\u8f93\u51fa\u4ea7\u7269",l='"---\\nsidebar_position: 3\\n---\\n\\n# \u4fee\u6539\u8f93\u51fa\u4ea7\u7269\\n\\n## \u9ed8\u8ba4\u8f93\u51fa\u4ea7\u7269\\n\\n\u5f53\u5728\u521d\u59cb\u5316\u7684\u9879\u76ee\u91cc\u4f7f\u7528 `modern build` \u547d\u4ee4\u7684\u65f6\u5019\uff0c\u4f1a\u6839\u636e Module Tools \u9ed8\u8ba4\u652f\u6301\u7684\u914d\u7f6e\u751f\u6210\u76f8\u5e94\u7684\u4ea7\u7269\u3002\u9ed8\u8ba4\u652f\u6301\u7684\u914d\u7f6e\u5177\u4f53\u5982\u4e0b\uff1a\\n\\n```typescript\\nimport moduleTools, { defineConfig } from \'@modern-js/module-tools\';\\n\\nexport default defineConfig({\\n plugins: [moduleTools()],\\n buildPreset: \'npm-library\',\\n});\\n```\\n\\n**\u9ed8\u8ba4\u751f\u6210\u4ea7\u7269\u5177\u6709\u4ee5\u4e0b\u7279\u70b9**\uff1a\\n\\n- \u4f1a\u751f\u6210[CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-modules)\u548c[ESM](https://nodejs.org/api/esm.html#modules-ecmascript-modules)\u4e24\u4efd\u4ea7\u7269\u3002\\n- \u4ee3\u7801\u8bed\u6cd5\u652f\u6301\u5230 `ES6` ,\u66f4\u9ad8\u7ea7\u7684\u8bed\u6cd5\u5c06\u4f1a\u88ab\u8f6c\u6362\u3002\\n- \u6240\u6709\u7684\u4ee3\u7801\u7ecf\u8fc7\u6253\u5305\u53d8\u6210\u4e86\u4e00\u4e2a\u6587\u4ef6\uff0c\u5373\u8fdb\u884c\u4e86 **bundle** \u5904\u7406\u3002\\n- \u4ea7\u7269\u8f93\u51fa\u6839\u76ee\u5f55\u4e3a\u9879\u76ee\u4e0b\u7684 `dist` \u76ee\u5f55\uff0c\u7c7b\u578b\u6587\u4ef6\u8f93\u51fa\u7684\u76ee\u5f55\u4e3a `dist/types`\u3002\\n\\n\u770b\u5230\u8fd9\u91cc\u4f60\u53ef\u80fd\u4f1a\u6709\u4ee5\u4e0b\u7591\u95ee\uff1a\\n\\n1. `buildPreset` \u662f\u4ec0\u4e48\uff1f\\n2. \u4ea7\u7269\u7684\u8fd9\u4e9b\u7279\u70b9\u662f\u7531\u4ec0\u4e48\u51b3\u5b9a\u7684\uff1f\\n\\n\u90a3\u4e48\u63a5\u4e0b\u6765\u9996\u5148\u89e3\u91ca\u4e00\u4e0b `buildPreset`\u3002\\n\\n## \u6784\u5efa\u9884\u8bbe\\n\\n`buildPreset` \u4ee3\u8868\u7740\u63d0\u524d\u51c6\u5907\u597d\u7684\u4e00\u7ec4\u6216\u8005\u591a\u7ec4\u6784\u5efa\u76f8\u5173\u7684\u914d\u7f6e\uff0c\u53ea\u9700\u8981\u4f7f\u7528 `buildPreset` \u5bf9\u5e94\u7684\u9884\u8bbe\u503c\uff0c\u5c31\u53ef\u4ee5\u7701\u53bb\u9ebb\u70e6\u4e14\u590d\u6742\u7684\u914d\u7f6e\u5de5\u4f5c\uff0c\u5f97\u5230\u7b26\u5408\u9884\u671f\u7684\u4ea7\u7269\u3002\\n\\n### \u6784\u5efa\u9884\u8bbe\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f\\n\\n**\u6784\u5efa\u9884\u8bbe\u7684\u503c\u53ef\u4ee5\u662f\u5b57\u7b26\u4e32\u5f62\u5f0f**\uff0c\u56e0\u6b64\u8fd9\u6837\u5f62\u5f0f\u7684\u6784\u5efa\u9884\u8bbe\u53eb\u505a\u9884\u8bbe\u5b57\u7b26\u4e32\u3002\\n\\n\u6a21\u5757\u5de5\u7a0b\u89e3\u51b3\u65b9\u6848\u6839\u636e npm \u5305\u4f7f\u7528\u7684\u901a\u7528\u573a\u666f\uff0c\u63d0\u4f9b\u4e86\u901a\u7528\u7684\u6784\u5efa\u9884\u8bbe\u5b57\u7b26\u4e32\u4ee5\u53ca\u76f8\u5e94\u7684\u53d8\u4f53\u3002\u76ee\u524d\u652f\u6301\u7684\u6240\u6709\u9884\u8bbe\u5b57\u7b26\u4e32\u53ef\u4ee5\u901a\u8fc7 [BuildPreset API](/api/config/build-preset) \u67e5\u770b\u3002\u8fd9\u91cc\u8bb2\u89e3\u4e00\u4e0b\u5173\u4e8e**\u901a\u7528\u7684\u9884\u8bbe\u5b57\u7b26\u4e32\u4e0e\u53d8\u4f53\u4e4b\u95f4\u7684\u5173\u7cfb**\u3002\\n\\n\u5728\u901a\u7528\u7684\u9884\u8bbe\u5b57\u7b26\u4e32\u4e2d\uff0c`\\"npm-library\\"` \u53ef\u4ee5\u7528\u4e8e\u5728\u5f00\u53d1\u5e93\u7c7b\u578b\u7684 npm \u5305\u7684\u573a\u666f\u4e0b\u4f7f\u7528\uff0c\u5b83\u9002\u5408\u5927\u591a\u6570\u666e\u901a\u7684\u6a21\u5757\u7c7b\u578b\u9879\u76ee\u3002\u5f53\u8bbe\u7f6e `\\"npm-library\\"` \u7684\u65f6\u5019\uff0c\u9879\u76ee\u7684\u8f93\u51fa\u4ea7\u7269\u4f1a\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a\\n\\n- \u5728 `dist/lib` \u76ee\u5f55\u4e0b\u4f1a\u5f97\u5230\u4ee3\u7801\u683c\u5f0f\u4e3a `cjs`\u3001\u8bed\u6cd5\u652f\u6301\u5230 `es6` \u4e14\u7ecf\u8fc7\u6253\u5305\u5904\u7406\u540e\u7684\u4ea7\u7269\u3002\\n- \u5728 `dist/es` \u76ee\u5f55\u4e0b\u4f1a\u5f97\u5230\u4ee3\u7801\u683c\u5f0f\u4e3a `esm`\u3001\u8bed\u6cd5\u652f\u6301\u4e3a `es6` \u4e14\u7ecf\u8fc7\u6253\u5305\u5904\u7406\u540e\u7684\u4ea7\u7269\u3002\\n- \u5728 `dist/types` \u76ee\u5f55\u4e0b\u4f1a\u5f97\u5230\u7c7b\u578b\u6587\u4ef6\u3002\u5982\u679c\u4e0d\u662f TypeScript \u9879\u76ee\uff0c\u5219\u6ca1\u6709\u8be5\u76ee\u5f55\u3002\\n\\n\u800c\u9884\u8bbe\u5b57\u7b26\u4e32 `\\"npm-library\\"` \u5bf9\u5e94\u7684\u53d8\u4f53\u5219\u662f\u5728\u539f\u672c\u4ea7\u7269\u7684\u57fa\u7840\u4e0a\u4fee\u6539\u4e86**\u4ee3\u7801\u8bed\u6cd5\u652f\u6301**\u8fd9\u4e00\u7279\u70b9\uff0c\u540c\u65f6\u5728\u5b57\u7b26\u4e32\u547d\u540d\u4e0a\u4e5f\u53d8\u4e3a\u4e86 `\\"npm-library-[es5 | es2016...es2020 | esnext]\\"` \u8fd9\u6837\u7684\u5f62\u5f0f\u3002\\n\\n\u4f8b\u5982\uff0c\u5982\u679c\u5728\u9884\u8bbe\u5b57\u7b26\u4e32 `\\"npm-library\\"` \u5bf9\u5e94\u7684\u8f93\u51fa\u4ea7\u7269\u57fa\u7840\u4e0a\uff0c\u8ba9\u4ea7\u7269\u4ee3\u7801\u652f\u6301\u7684\u8bed\u6cd5\u53d8\u4e3a `es5` \u7684\u8bdd\uff0c\u90a3\u4e48\u53ea\u9700\u8981\u5c06 `\\"npm-library\\"` \u6539\u53d8\u4e3a `\\"npm-library-es5\\"` \u5c31\u53ef\u4ee5\u4e86\u3002\\n\\n### \u6784\u5efa\u9884\u8bbe\u7684\u51fd\u6570\u5f62\u5f0f\\n\\n**\u9664\u4e86\u5b57\u7b26\u4e32\u5f62\u5f0f\u4ee5\u5916\uff0c\u6784\u5efa\u9884\u8bbe\u7684\u503c\u4e5f\u53ef\u4ee5\u662f\u51fd\u6570\u5f62\u5f0f\uff0c\u5728\u51fd\u6570\u4e2d\u53ef\u4ee5\u6253\u5370\u6216\u8005\u4fee\u6539\u67d0\u4e2a\u9884\u8bbe\u503c\u5bf9\u5e94\u7684\u5177\u4f53\u914d\u7f6e**\u3002\\n\\n\u4f8b\u5982\uff0c\u5982\u679c\u4f7f\u7528\u9884\u8bbe\u51fd\u6570\u7684\u5f62\u5f0f\u8fbe\u5230\u9884\u8bbe\u5b57\u7b26\u4e32 `\\"npm-library-es5\\"` \u540c\u6837\u7684\u6548\u679c\uff0c\u53ef\u4ee5\u6309\u7167\u5982\u4e0b\u7684\u65b9\u5f0f\uff1a\\n\\n```typescript\\nimport { defineConfig } from \'@modern-js/module-tools\';\\n\\nexport default defineConfig({\\n buildPreset({ preset }) {\\n return preset.NPM_LIBRARY.map(config => {\\n return { ...config, target: \'es5\' };\\n });\\n },\\n});\\n```\\n\\n\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u5b9e\u73b0\u4e2d\uff0c`preset.NPM_LIBRARY` \u4e0e\u9884\u8bbe\u5b57\u7b26\u4e32 `\\"npm-library\\"` \u662f\u76f8\u5bf9\u5e94\u7684\uff0c\u5b83\u4ee3\u8868\u7740 `\\"npm-library\\"` \u7b49\u4ef7\u7684\u591a\u7ec4\u6784\u5efa\u76f8\u5173\u7684\u914d\u7f6e\u3002\u6211\u4eec\u901a\u8fc7 `map` \u65b9\u6cd5\u904d\u5386\u4e86 `NPM_LIBRARY` \u8fd9\u4e2a\u6570\u7ec4\uff0c\u5728\u8fd9\u4e2a\u6570\u7ec4\u4e2d\u5305\u542b\u4e86\u591a\u4e2a `buildConfig` \u5bf9\u8c61\u3002\u6211\u4eec\u5c06\u539f\u672c\u7684 `buildConfig` \u5bf9\u8c61\u8fdb\u884c\u4e86\u6d45\u62f7\u8d1d\u5e76\u4fee\u6539\u4e86\u6d45\u62f7\u8d1d\u540e\u5f97\u5230 `buildConfig.target`\uff0c\u5c06\u5b83\u6307\u5b9a\u4e3a `es5`\u3002\\n\\n> \u5173\u4e8e `preset.NPM_LIBRARY` \u5177\u4f53\u5bf9\u5e94\u7684\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7 [BuildPreset API](/api/config/build-preset) \u67e5\u770b\u3002\u5728 `preset` \u5bf9\u8c61\u4e0b\u4e0d\u4ec5\u5305\u542b\u4e86 `NPM_LIBRARY`\uff0c\u8fd8\u5305\u542b\u4e86\u5176\u4ed6\u7c7b\u4f3c\u7684\u5e38\u91cf\u3002\\n\\n\u90a3\u4e48\u8fd9\u91cc\u7684 `buildConfig` \u5bf9\u8c61\u662f\u4ec0\u4e48\u5462\uff1f\u4e4b\u524d\u63d0\u5230\u7684\u6784\u5efa\u4ea7\u7269\u7279\u70b9\u53c8\u662f\u6839\u636e\u4ec0\u4e48\u5462\uff1f\\n\\n\u63a5\u4e0b\u6765\u6211\u4eec\u89e3\u91ca\u4e00\u4e0b\u3002\\n\\n## \u6784\u5efa\u914d\u7f6e\uff08\u5bf9\u8c61\uff09\\n\\n**`buildConfig` \u662f\u4e00\u4e2a\u7528\u6765\u63cf\u8ff0\u5982\u4f55\u7f16\u8bd1\u3001\u751f\u6210\u6784\u5efa\u4ea7\u7269\u7684\u914d\u7f6e\u5bf9\u8c61**\u3002\u5728\u6700\u5f00\u59cb\u63d0\u5230\u7684\u5173\u4e8e\u201c_\u6784\u5efa\u4ea7\u7269\u7684\u7279\u70b9_\u201d\uff0c\u5176\u5b9e\u90fd\u662f `buildConfig` \u6240\u652f\u6301\u7684\u5c5e\u6027\u3002\u76ee\u524d\u6240\u652f\u6301\u7684\u5c5e\u6027\u8986\u76d6\u4e86\u5927\u90e8\u5206\u6a21\u5757\u7c7b\u578b\u9879\u76ee\u5728\u6784\u5efa\u4ea7\u7269\u65f6\u7684\u9700\u6c42\uff0c`buildConfig` \u4e0d\u4ec5\u5305\u542b\u4e00\u4e9b\u4ea7\u7269\u6240\u5177\u5907\u7684\u5c5e\u6027\uff0c\u4e5f\u5305\u542b\u4e86\u6784\u5efa\u4ea7\u7269\u6240\u9700\u8981\u7684\u4e00\u4e9b\u7279\u6027\u529f\u80fd\u3002\u63a5\u4e0b\u6765\u4ece\u5206\u7c7b\u7684\u89d2\u5ea6\u7b80\u5355\u7f57\u5217\u4e00\u4e0b\uff1a\\n\\n**\u6784\u5efa\u4ea7\u7269\u7684\u57fa\u672c\u5c5e\u6027\u5305\u62ec\uff1a**\\n\\n- \u4ea7\u7269\u662f\u5426\u88ab\u6253\u5305\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.buildType`](/api/config/build-config#buildtype)\u3002\\n- \u4ea7\u7269\u5bf9\u4e8e\u8bed\u6cd5\u7684\u652f\u6301\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.target`](/api/config/build-config#target)\u3002\\n- \u4ea7\u7269\u683c\u5f0f\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.format`](/api/config/build-config#format)\u3002\\n- \u4ea7\u7269\u7c7b\u578b\u6587\u4ef6\u5982\u4f55\u5904\u7406\uff0c\u5bf9\u5e94\u7684 API \u662f [`buildConfig.dts`](/api/config/build-config#dts)\u3002\\n- \u4ea7\u7269\u7684 sourceMap \u5982\u4f55\u5904\u7406\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.sourceMap`](/api/config/build-config#sourcemap)\u3002\\n- \u4ea7\u7269\u5bf9\u5e94\u7684\u8f93\u5165\uff08\u6216\u8005\u662f\u6e90\u6587\u4ef6\uff09\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.input`](/api/config/build-config#input)\u3002\\n- \u4ea7\u7269\u8f93\u51fa\u7684\u76ee\u5f55\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.outDir`](/api/config/build-config#outDir)\u3002\\n- \u6784\u5efa\u7684\u6e90\u7801\u76ee\u5f55\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.sourceDir`](/api/config/build-config#sourcedir)\u3002\\n\\n**\u6784\u5efa\u4ea7\u7269\u6240\u9700\u7684\u5e38\u7528\u529f\u80fd\u5305\u62ec\uff1a**\\n\\n- \u522b\u540d\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.alias`](/api/config/build-config#alias)\u3002\\n- \u9759\u6001\u8d44\u6e90\u5904\u7406\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.asset`](/api/config/build-config#asset)\u3002\\n- \u7b2c\u4e09\u65b9\u4f9d\u8d56\u5904\u7406\uff1a\u5bf9\u5e94\u7684 API \u6709\uff1a\\n - [`buildConfig.autoExternal`](/api/config/build-config#autoexternal)\u3002\\n - [`buildConfig.externals`](/api/config/build-config#externals)\u3002\\n- \u62f7\u8d1d\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.copy`](/api/config/build-config#copy)\u3002\\n- \u5168\u5c40\u53d8\u91cf\u66ff\u6362\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.define`](/api/config/build-config#define)\u3002\\n- \u6307\u5b9a [JSX](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) \u7f16\u8bd1\u65b9\u5f0f\uff0c\u5bf9\u5e94\u7684 API \u662f [`buildConfig.jsx`](/api/config/build-config#jsx)\u3002\\n\\n**\u4e00\u4e9b\u9ad8\u7ea7\u5c5e\u6027\u6216\u8005\u4f7f\u7528\u9891\u7387\u4e0d\u9ad8\u7684\u529f\u80fd\uff1a**\\n\\n- \u4ea7\u7269\u4ee3\u7801\u538b\u7f29\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.minify`](/api/config/build-config#minify)\u3002\\n- \u4ee3\u7801\u5206\u5272\uff1a[`buildConfig.spitting`](/api/config/build-config#splitting)\\n- \u6307\u5b9a\u6784\u5efa\u4ea7\u7269\u7528\u4e8e NodeJS \u73af\u5883\u8fd8\u662f\u6d4f\u89c8\u5668\u73af\u5883\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.platform`](/api/config/build-config#platform)\u3002\\n- umd \u4ea7\u7269\u76f8\u5173\uff1a\\n - \u6307\u5b9a umd \u4ea7\u7269\u5916\u90e8\u5bfc\u5165\u7684\u5168\u5c40\u53d8\u91cf\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.umdGlobals`](/api/config/build-config#umdglobals)\u3002\\n - \u6307\u5b9a umd \u4ea7\u7269\u7684\u6a21\u5757\u540d\uff1a\u5bf9\u5e94\u7684 API \u662f [`buildConfig.umdModuleName`](/api/config/build-config#umdmodulename)\u3002\\n\\n\u9664\u4e86\u4ee5\u4e0a\u5206\u7c7b\u4ee5\u5916\uff0c\u5173\u4e8e\u8fd9\u4e9b API \u7684\u5e38\u89c1\u95ee\u9898\u548c\u6700\u4f73\u5b9e\u8df5\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u94fe\u63a5\u6765\u4e86\u89e3\\n\\n- [\u4ec0\u4e48\u662f `bundle` \u548c `bundleless`?](/guide/advance/in-depth-about-build#bundle-\u548c-bundleless)\\n- [`input` \u4e0e `sourceDir` \u7684\u5173\u7cfb](/guide/advance/in-depth-about-build#input-\u4e0e-sourcedir-\u7684\u5173\u7cfb)\u3002\\n- [\u4ea7\u7269\u4e2d\u7c7b\u578b\u6587\u4ef6\u7684\u591a\u79cd\u751f\u6210\u65b9\u5f0f](/guide/advance/in-depth-about-build#\u7c7b\u578b\u6587\u4ef6)\u3002\\n- [`buildConfig.define` \u4e0d\u540c\u573a\u666f\u7684\u4f7f\u7528\u65b9\u5f0f\u3002](/guide/advance/in-depth-about-build#buildconfigdefine-\u4e0d\u540c\u573a\u666f\u7684\u4f7f\u7528\u65b9\u5f0f)\\n- [\u5982\u4f55\u5904\u7406\u7b2c\u4e09\u65b9\u4f9d\u8d56\uff1f](/guide/advance/external-dependency)\\n- [\u5982\u4f55\u4f7f\u7528\u62f7\u8d1d\uff1f](/guide/advance/copy)\\n- [\u5982\u4f55\u6784\u5efa umd \u4ea7\u7269\uff1f](/guide/advance/build-umd#\u8bbe\u7f6e\u9879\u76ee\u7684\u5168\u5c40\u53d8\u91cf\u540d\u79f0)\\n- [\u9759\u6001\u8d44\u6e90\u76ee\u524d\u6240\u652f\u6301\u7684\u80fd\u529b\u3002](/guide/advance/asset)\\n\\n## \u4ec0\u4e48\u65f6\u5019\u4f7f\u7528 `buildConfig`\\n\\n`buildConfig` \u662f\u7528\u4e8e\u4fee\u6539\u4ea7\u7269\u7684\u65b9\u5f0f\u4e4b\u4e00\uff0c**\u5f53\u4e0e `buildPreset` \u914d\u7f6e\u540c\u65f6\u5b58\u5728\u7684\u65f6\u5019\uff0c\u53ea\u6709 `buildConfig` \u624d\u4f1a\u751f\u6548**\u3002\u56e0\u6b64\u5982\u679c\u6309\u7167\u5982\u4e0b\u65b9\u5f0f\u914d\u7f6e\uff1a\\n\\n```typescript\\nimport { defineConfig } from \'@modern-js/module-tools\';\\n\\nexport default defineConfig({\\n buildConfig: {\\n format: \'umd\',\\n },\\n buildPreset: \'npm-library\',\\n});\\n```\\n\\n\u90a3\u4e48\u6b64\u65f6\u5c31\u4f1a\u770b\u5230\u5982\u4e0b\u63d0\u793a\uff1a\\n\\n```bash\\n\u56e0\u4e3a\u540c\u65f6\u51fa\u73b0 \'buildConfig\' \u548c \'buildPreset\' \u914d\u7f6e\uff0c\u56e0\u6b64\u4ec5 \'buildConfig\' \u914d\u7f6e\u751f\u6548\\n```\\n\\n`buildPreset` \u4ee3\u8868\u7684\u4e00\u7ec4\u6216\u8005\u591a\u7ec4\u6784\u5efa\u76f8\u5173\u7684\u914d\u7f6e\u90fd\u662f\u7531 `buildConfig` \u7ec4\u6210\uff0c**\u5f53\u4f7f\u7528 `buildPreset` \u65e0\u6cd5\u6ee1\u8db3\u5f53\u524d\u9879\u76ee\u9700\u6c42\u7684\u65f6\u5019\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 `buildConfig` \u6765\u81ea\u5b9a\u4e49\u8f93\u51fa\u4ea7\u7269**\u3002\\n\\n\u5728\u4f7f\u7528 `buildConfig` \u7684\u8fc7\u7a0b\uff0c\u5c31\u662f\u5bf9**\u83b7\u5f97\u600e\u6837\u7684\u6784\u5efa\u4ea7\u7269**\u7684\u601d\u8003\u8fc7\u7a0b\u3002\\n"';function u(e){const o=Object.assign({h1:"h1",a:"a",h2:"h2",p:"p",code:"code",strong:"strong",ul:"ul",li:"li",ol:"ol",h3:"h3",blockquote:"blockquote",em:"em"},e.components);return i||p("CH",!1),i.Code||p("CH.Code",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.h1,{id:"\u4fee\u6539\u8f93\u51fa\u4ea7\u7269",children:[(0,t.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u4fee\u6539\u8f93\u51fa\u4ea7\u7269",children:"#"}),"\u4fee\u6539\u8f93\u51fa\u4ea7\u7269"]}),"\n",(0,t.jsxs)(o.h2,{id:"\u9ed8\u8ba4\u8f93\u51fa\u4ea7\u7269",children:[(0,t.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u9ed8\u8ba4\u8f93\u51fa\u4ea7\u7269",children:"#"}),"\u9ed8\u8ba4\u8f93\u51fa\u4ea7\u7269"]}),"\n",(0,t.jsxs)(o.p,{children:["\u5f53\u5728\u521d\u59cb\u5316\u7684\u9879\u76ee\u91cc\u4f7f\u7528 ",(0,t.jsx)(o.code,{children:"modern build"})," \u547d\u4ee4\u7684\u65f6\u5019\uff0c\u4f1a\u6839\u636e Module Tools \u9ed8\u8ba4\u652f\u6301\u7684\u914d\u7f6e\u751f\u6210\u76f8\u5e94\u7684\u4ea7\u7269\u3002\u9ed8\u8ba4\u652f\u6301\u7684\u914d\u7f6e\u5177\u4f53\u5982\u4e0b\uff1a"]}),"\n",(0,t.jsx)(i.Code,{codeConfig:s,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"import",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"moduleTools",props:{style:{color:"#D8DEE9"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"defineConfig",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"from",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@modern-js/module-tools",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[]},{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"defineConfig",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"plugins",props:{style:{color:"#D8DEE9"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" [",props:{style:{color:"#D8DEE9FF"}}},{content:"moduleTools",props:{style:{color:"#88C0D0"}}},{content:"()]",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"buildPreset",props:{style:{color:"#D8DEE9"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"npm-library",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"typescript"},annotations:[]}]}),"\n",(0,t.jsxs)(o.p,{children:[(0,t.jsx)(o.strong,{children:"\u9ed8\u8ba4\u751f\u6210\u4ea7\u7269\u5177\u6709\u4ee5\u4e0b\u7279\u70b9"}),"\uff1a"]}),"\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsxs)(o.li,{children:["\u4f1a\u751f\u6210",(0,t.jsx)(o.a,{href:"https://nodejs.org/api/modules.html#modules-commonjs-modules-2",target:"_blank",rel:"nofollow",children:"CommonJS"}),"\u548c",(0,t.jsx)(o.a,{href:"https://nodejs.org/api/esm.html#modules-ecmascript-modules-1",target:"_blank",rel:"nofollow",children:"ESM"}),"\u4e24\u4efd\u4ea7\u7269\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ee3\u7801\u8bed\u6cd5\u652f\u6301\u5230 ",(0,t.jsx)(o.code,{children:"ES6"})," ,\u66f4\u9ad8\u7ea7\u7684\u8bed\u6cd5\u5c06\u4f1a\u88ab\u8f6c\u6362\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u6240\u6709\u7684\u4ee3\u7801\u7ecf\u8fc7\u6253\u5305\u53d8\u6210\u4e86\u4e00\u4e2a\u6587\u4ef6\uff0c\u5373\u8fdb\u884c\u4e86 ",(0,t.jsx)(o.strong,{children:"bundle"})," \u5904\u7406\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u8f93\u51fa\u6839\u76ee\u5f55\u4e3a\u9879\u76ee\u4e0b\u7684 ",(0,t.jsx)(o.code,{children:"dist"})," \u76ee\u5f55\uff0c\u7c7b\u578b\u6587\u4ef6\u8f93\u51fa\u7684\u76ee\u5f55\u4e3a ",(0,t.jsx)(o.code,{children:"dist/types"}),"\u3002"]}),"\n"]}),"\n",(0,t.jsx)(o.p,{children:"\u770b\u5230\u8fd9\u91cc\u4f60\u53ef\u80fd\u4f1a\u6709\u4ee5\u4e0b\u7591\u95ee\uff1a"}),"\n",(0,t.jsxs)(o.ol,{children:["\n",(0,t.jsxs)(o.li,{children:[(0,t.jsx)(o.code,{children:"buildPreset"})," \u662f\u4ec0\u4e48\uff1f"]}),"\n",(0,t.jsx)(o.li,{children:"\u4ea7\u7269\u7684\u8fd9\u4e9b\u7279\u70b9\u662f\u7531\u4ec0\u4e48\u51b3\u5b9a\u7684\uff1f"}),"\n"]}),"\n",(0,t.jsxs)(o.p,{children:["\u90a3\u4e48\u63a5\u4e0b\u6765\u9996\u5148\u89e3\u91ca\u4e00\u4e0b ",(0,t.jsx)(o.code,{children:"buildPreset"}),"\u3002"]}),"\n",(0,t.jsxs)(o.h2,{id:"\u6784\u5efa\u9884\u8bbe",children:[(0,t.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u6784\u5efa\u9884\u8bbe",children:"#"}),"\u6784\u5efa\u9884\u8bbe"]}),"\n",(0,t.jsxs)(o.p,{children:[(0,t.jsx)(o.code,{children:"buildPreset"})," \u4ee3\u8868\u7740\u63d0\u524d\u51c6\u5907\u597d\u7684\u4e00\u7ec4\u6216\u8005\u591a\u7ec4\u6784\u5efa\u76f8\u5173\u7684\u914d\u7f6e\uff0c\u53ea\u9700\u8981\u4f7f\u7528 ",(0,t.jsx)(o.code,{children:"buildPreset"})," \u5bf9\u5e94\u7684\u9884\u8bbe\u503c\uff0c\u5c31\u53ef\u4ee5\u7701\u53bb\u9ebb\u70e6\u4e14\u590d\u6742\u7684\u914d\u7f6e\u5de5\u4f5c\uff0c\u5f97\u5230\u7b26\u5408\u9884\u671f\u7684\u4ea7\u7269\u3002"]}),"\n",(0,t.jsxs)(o.h3,{id:"\u6784\u5efa\u9884\u8bbe\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f",children:[(0,t.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u6784\u5efa\u9884\u8bbe\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f",children:"#"}),"\u6784\u5efa\u9884\u8bbe\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f"]}),"\n",(0,t.jsxs)(o.p,{children:[(0,t.jsx)(o.strong,{children:"\u6784\u5efa\u9884\u8bbe\u7684\u503c\u53ef\u4ee5\u662f\u5b57\u7b26\u4e32\u5f62\u5f0f"}),"\uff0c\u56e0\u6b64\u8fd9\u6837\u5f62\u5f0f\u7684\u6784\u5efa\u9884\u8bbe\u53eb\u505a\u9884\u8bbe\u5b57\u7b26\u4e32\u3002"]}),"\n",(0,t.jsxs)(o.p,{children:["\u6a21\u5757\u5de5\u7a0b\u89e3\u51b3\u65b9\u6848\u6839\u636e npm \u5305\u4f7f\u7528\u7684\u901a\u7528\u573a\u666f\uff0c\u63d0\u4f9b\u4e86\u901a\u7528\u7684\u6784\u5efa\u9884\u8bbe\u5b57\u7b26\u4e32\u4ee5\u53ca\u76f8\u5e94\u7684\u53d8\u4f53\u3002\u76ee\u524d\u652f\u6301\u7684\u6240\u6709\u9884\u8bbe\u5b57\u7b26\u4e32\u53ef\u4ee5\u901a\u8fc7 ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-preset.html",children:"BuildPreset API"})," \u67e5\u770b\u3002\u8fd9\u91cc\u8bb2\u89e3\u4e00\u4e0b\u5173\u4e8e",(0,t.jsx)(o.strong,{children:"\u901a\u7528\u7684\u9884\u8bbe\u5b57\u7b26\u4e32\u4e0e\u53d8\u4f53\u4e4b\u95f4\u7684\u5173\u7cfb"}),"\u3002"]}),"\n",(0,t.jsxs)(o.p,{children:["\u5728\u901a\u7528\u7684\u9884\u8bbe\u5b57\u7b26\u4e32\u4e2d\uff0c",(0,t.jsx)(o.code,{children:'"npm-library"'})," \u53ef\u4ee5\u7528\u4e8e\u5728\u5f00\u53d1\u5e93\u7c7b\u578b\u7684 npm \u5305\u7684\u573a\u666f\u4e0b\u4f7f\u7528\uff0c\u5b83\u9002\u5408\u5927\u591a\u6570\u666e\u901a\u7684\u6a21\u5757\u7c7b\u578b\u9879\u76ee\u3002\u5f53\u8bbe\u7f6e ",(0,t.jsx)(o.code,{children:'"npm-library"'})," \u7684\u65f6\u5019\uff0c\u9879\u76ee\u7684\u8f93\u51fa\u4ea7\u7269\u4f1a\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a"]}),"\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsxs)(o.li,{children:["\u5728 ",(0,t.jsx)(o.code,{children:"dist/lib"})," \u76ee\u5f55\u4e0b\u4f1a\u5f97\u5230\u4ee3\u7801\u683c\u5f0f\u4e3a ",(0,t.jsx)(o.code,{children:"cjs"}),"\u3001\u8bed\u6cd5\u652f\u6301\u5230 ",(0,t.jsx)(o.code,{children:"es6"})," \u4e14\u7ecf\u8fc7\u6253\u5305\u5904\u7406\u540e\u7684\u4ea7\u7269\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u5728 ",(0,t.jsx)(o.code,{children:"dist/es"})," \u76ee\u5f55\u4e0b\u4f1a\u5f97\u5230\u4ee3\u7801\u683c\u5f0f\u4e3a ",(0,t.jsx)(o.code,{children:"esm"}),"\u3001\u8bed\u6cd5\u652f\u6301\u4e3a ",(0,t.jsx)(o.code,{children:"es6"})," \u4e14\u7ecf\u8fc7\u6253\u5305\u5904\u7406\u540e\u7684\u4ea7\u7269\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u5728 ",(0,t.jsx)(o.code,{children:"dist/types"})," \u76ee\u5f55\u4e0b\u4f1a\u5f97\u5230\u7c7b\u578b\u6587\u4ef6\u3002\u5982\u679c\u4e0d\u662f TypeScript \u9879\u76ee\uff0c\u5219\u6ca1\u6709\u8be5\u76ee\u5f55\u3002"]}),"\n"]}),"\n",(0,t.jsxs)(o.p,{children:["\u800c\u9884\u8bbe\u5b57\u7b26\u4e32 ",(0,t.jsx)(o.code,{children:'"npm-library"'})," \u5bf9\u5e94\u7684\u53d8\u4f53\u5219\u662f\u5728\u539f\u672c\u4ea7\u7269\u7684\u57fa\u7840\u4e0a\u4fee\u6539\u4e86",(0,t.jsx)(o.strong,{children:"\u4ee3\u7801\u8bed\u6cd5\u652f\u6301"}),"\u8fd9\u4e00\u7279\u70b9\uff0c\u540c\u65f6\u5728\u5b57\u7b26\u4e32\u547d\u540d\u4e0a\u4e5f\u53d8\u4e3a\u4e86 ",(0,t.jsx)(o.code,{children:'"npm-library-[es5 | es2016...es2020 | esnext]"'})," \u8fd9\u6837\u7684\u5f62\u5f0f\u3002"]}),"\n",(0,t.jsxs)(o.p,{children:["\u4f8b\u5982\uff0c\u5982\u679c\u5728\u9884\u8bbe\u5b57\u7b26\u4e32 ",(0,t.jsx)(o.code,{children:'"npm-library"'})," \u5bf9\u5e94\u7684\u8f93\u51fa\u4ea7\u7269\u57fa\u7840\u4e0a\uff0c\u8ba9\u4ea7\u7269\u4ee3\u7801\u652f\u6301\u7684\u8bed\u6cd5\u53d8\u4e3a ",(0,t.jsx)(o.code,{children:"es5"})," \u7684\u8bdd\uff0c\u90a3\u4e48\u53ea\u9700\u8981\u5c06 ",(0,t.jsx)(o.code,{children:'"npm-library"'})," \u6539\u53d8\u4e3a ",(0,t.jsx)(o.code,{children:'"npm-library-es5"'})," \u5c31\u53ef\u4ee5\u4e86\u3002"]}),"\n",(0,t.jsxs)(o.h3,{id:"\u6784\u5efa\u9884\u8bbe\u7684\u51fd\u6570\u5f62\u5f0f",children:[(0,t.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u6784\u5efa\u9884\u8bbe\u7684\u51fd\u6570\u5f62\u5f0f",children:"#"}),"\u6784\u5efa\u9884\u8bbe\u7684\u51fd\u6570\u5f62\u5f0f"]}),"\n",(0,t.jsxs)(o.p,{children:[(0,t.jsx)(o.strong,{children:"\u9664\u4e86\u5b57\u7b26\u4e32\u5f62\u5f0f\u4ee5\u5916\uff0c\u6784\u5efa\u9884\u8bbe\u7684\u503c\u4e5f\u53ef\u4ee5\u662f\u51fd\u6570\u5f62\u5f0f\uff0c\u5728\u51fd\u6570\u4e2d\u53ef\u4ee5\u6253\u5370\u6216\u8005\u4fee\u6539\u67d0\u4e2a\u9884\u8bbe\u503c\u5bf9\u5e94\u7684\u5177\u4f53\u914d\u7f6e"}),"\u3002"]}),"\n",(0,t.jsxs)(o.p,{children:["\u4f8b\u5982\uff0c\u5982\u679c\u4f7f\u7528\u9884\u8bbe\u51fd\u6570\u7684\u5f62\u5f0f\u8fbe\u5230\u9884\u8bbe\u5b57\u7b26\u4e32 ",(0,t.jsx)(o.code,{children:'"npm-library-es5"'})," \u540c\u6837\u7684\u6548\u679c\uff0c\u53ef\u4ee5\u6309\u7167\u5982\u4e0b\u7684\u65b9\u5f0f\uff1a"]}),"\n",(0,t.jsx)(i.Code,{codeConfig:s,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"import",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"defineConfig",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"from",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@modern-js/module-tools",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[]},{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"defineConfig",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"buildPreset",props:{style:{color:"#88C0D0"}}},{content:"({",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"preset",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"})",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"preset",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"NPM_LIBRARY",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"map",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"config",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"=>",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"...",props:{style:{color:"#81A1C1"}}},{content:"config",props:{style:{color:"#D8DEE9"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"target",props:{style:{color:"#D8DEE9"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"es5",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"typescript"},annotations:[]}]}),"\n",(0,t.jsxs)(o.p,{children:["\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u5b9e\u73b0\u4e2d\uff0c",(0,t.jsx)(o.code,{children:"preset.NPM_LIBRARY"})," \u4e0e\u9884\u8bbe\u5b57\u7b26\u4e32 ",(0,t.jsx)(o.code,{children:'"npm-library"'})," \u662f\u76f8\u5bf9\u5e94\u7684\uff0c\u5b83\u4ee3\u8868\u7740 ",(0,t.jsx)(o.code,{children:'"npm-library"'})," \u7b49\u4ef7\u7684\u591a\u7ec4\u6784\u5efa\u76f8\u5173\u7684\u914d\u7f6e\u3002\u6211\u4eec\u901a\u8fc7 ",(0,t.jsx)(o.code,{children:"map"})," \u65b9\u6cd5\u904d\u5386\u4e86 ",(0,t.jsx)(o.code,{children:"NPM_LIBRARY"})," \u8fd9\u4e2a\u6570\u7ec4\uff0c\u5728\u8fd9\u4e2a\u6570\u7ec4\u4e2d\u5305\u542b\u4e86\u591a\u4e2a ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u5bf9\u8c61\u3002\u6211\u4eec\u5c06\u539f\u672c\u7684 ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u5bf9\u8c61\u8fdb\u884c\u4e86\u6d45\u62f7\u8d1d\u5e76\u4fee\u6539\u4e86\u6d45\u62f7\u8d1d\u540e\u5f97\u5230 ",(0,t.jsx)(o.code,{children:"buildConfig.target"}),"\uff0c\u5c06\u5b83\u6307\u5b9a\u4e3a ",(0,t.jsx)(o.code,{children:"es5"}),"\u3002"]}),"\n",(0,t.jsxs)(o.blockquote,{children:["\n",(0,t.jsxs)(o.p,{children:["\u5173\u4e8e ",(0,t.jsx)(o.code,{children:"preset.NPM_LIBRARY"})," \u5177\u4f53\u5bf9\u5e94\u7684\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7 ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-preset.html",children:"BuildPreset API"})," \u67e5\u770b\u3002\u5728 ",(0,t.jsx)(o.code,{children:"preset"})," \u5bf9\u8c61\u4e0b\u4e0d\u4ec5\u5305\u542b\u4e86 ",(0,t.jsx)(o.code,{children:"NPM_LIBRARY"}),"\uff0c\u8fd8\u5305\u542b\u4e86\u5176\u4ed6\u7c7b\u4f3c\u7684\u5e38\u91cf\u3002"]}),"\n"]}),"\n",(0,t.jsxs)(o.p,{children:["\u90a3\u4e48\u8fd9\u91cc\u7684 ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u5bf9\u8c61\u662f\u4ec0\u4e48\u5462\uff1f\u4e4b\u524d\u63d0\u5230\u7684\u6784\u5efa\u4ea7\u7269\u7279\u70b9\u53c8\u662f\u6839\u636e\u4ec0\u4e48\u5462\uff1f"]}),"\n",(0,t.jsx)(o.p,{children:"\u63a5\u4e0b\u6765\u6211\u4eec\u89e3\u91ca\u4e00\u4e0b\u3002"}),"\n",(0,t.jsxs)(o.h2,{id:"\u6784\u5efa\u914d\u7f6e\u5bf9\u8c61",children:[(0,t.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u6784\u5efa\u914d\u7f6e\u5bf9\u8c61",children:"#"}),"\u6784\u5efa\u914d\u7f6e\uff08\u5bf9\u8c61\uff09"]}),"\n",(0,t.jsxs)(o.p,{children:[(0,t.jsxs)(o.strong,{children:[(0,t.jsx)(o.code,{children:"buildConfig"})," \u662f\u4e00\u4e2a\u7528\u6765\u63cf\u8ff0\u5982\u4f55\u7f16\u8bd1\u3001\u751f\u6210\u6784\u5efa\u4ea7\u7269\u7684\u914d\u7f6e\u5bf9\u8c61"]}),"\u3002\u5728\u6700\u5f00\u59cb\u63d0\u5230\u7684\u5173\u4e8e\u201c",(0,t.jsx)(o.em,{children:"\u6784\u5efa\u4ea7\u7269\u7684\u7279\u70b9"}),"\u201d\uff0c\u5176\u5b9e\u90fd\u662f ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u6240\u652f\u6301\u7684\u5c5e\u6027\u3002\u76ee\u524d\u6240\u652f\u6301\u7684\u5c5e\u6027\u8986\u76d6\u4e86\u5927\u90e8\u5206\u6a21\u5757\u7c7b\u578b\u9879\u76ee\u5728\u6784\u5efa\u4ea7\u7269\u65f6\u7684\u9700\u6c42\uff0c",(0,t.jsx)(o.code,{children:"buildConfig"})," \u4e0d\u4ec5\u5305\u542b\u4e00\u4e9b\u4ea7\u7269\u6240\u5177\u5907\u7684\u5c5e\u6027\uff0c\u4e5f\u5305\u542b\u4e86\u6784\u5efa\u4ea7\u7269\u6240\u9700\u8981\u7684\u4e00\u4e9b\u7279\u6027\u529f\u80fd\u3002\u63a5\u4e0b\u6765\u4ece\u5206\u7c7b\u7684\u89d2\u5ea6\u7b80\u5355\u7f57\u5217\u4e00\u4e0b\uff1a"]}),"\n",(0,t.jsx)(o.p,{children:(0,t.jsx)(o.strong,{children:"\u6784\u5efa\u4ea7\u7269\u7684\u57fa\u672c\u5c5e\u6027\u5305\u62ec\uff1a"})}),"\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u662f\u5426\u88ab\u6253\u5305\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#buildtype-5",children:(0,t.jsx)(o.code,{children:"buildConfig.buildType"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u5bf9\u4e8e\u8bed\u6cd5\u7684\u652f\u6301\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#target-2",children:(0,t.jsx)(o.code,{children:"buildConfig.target"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u683c\u5f0f\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#format-2",children:(0,t.jsx)(o.code,{children:"buildConfig.format"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u7c7b\u578b\u6587\u4ef6\u5982\u4f55\u5904\u7406\uff0c\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#dts-5",children:(0,t.jsx)(o.code,{children:"buildConfig.dts"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u7684 sourceMap \u5982\u4f55\u5904\u7406\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#sourcemap-2",children:(0,t.jsx)(o.code,{children:"buildConfig.sourceMap"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u5bf9\u5e94\u7684\u8f93\u5165\uff08\u6216\u8005\u662f\u6e90\u6587\u4ef6\uff09\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#input-5",children:(0,t.jsx)(o.code,{children:"buildConfig.input"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u8f93\u51fa\u7684\u76ee\u5f55\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#outdir-11",children:(0,t.jsx)(o.code,{children:"buildConfig.outDir"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u6784\u5efa\u7684\u6e90\u7801\u76ee\u5f55\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#sourcedir-8",children:(0,t.jsx)(o.code,{children:"buildConfig.sourceDir"})}),"\u3002"]}),"\n"]}),"\n",(0,t.jsx)(o.p,{children:(0,t.jsx)(o.strong,{children:"\u6784\u5efa\u4ea7\u7269\u6240\u9700\u7684\u5e38\u7528\u529f\u80fd\u5305\u62ec\uff1a"})}),"\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsxs)(o.li,{children:["\u522b\u540d\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#alias-2",children:(0,t.jsx)(o.code,{children:"buildConfig.alias"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u9759\u6001\u8d44\u6e90\u5904\u7406\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#asset-5",children:(0,t.jsx)(o.code,{children:"buildConfig.asset"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u7b2c\u4e09\u65b9\u4f9d\u8d56\u5904\u7406\uff1a\u5bf9\u5e94\u7684 API \u6709\uff1a","\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsxs)(o.li,{children:[(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#autoexternal-8",children:(0,t.jsx)(o.code,{children:"buildConfig.autoExternal"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:[(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#externals-11",children:(0,t.jsx)(o.code,{children:"buildConfig.externals"})}),"\u3002"]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(o.li,{children:["\u62f7\u8d1d\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#copy-5",children:(0,t.jsx)(o.code,{children:"buildConfig.copy"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u5168\u5c40\u53d8\u91cf\u66ff\u6362\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#define-5",children:(0,t.jsx)(o.code,{children:"buildConfig.define"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u6307\u5b9a ",(0,t.jsx)(o.a,{href:"https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html",target:"_blank",rel:"nofollow",children:"JSX"})," \u7f16\u8bd1\u65b9\u5f0f\uff0c\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#jsx-1",children:(0,t.jsx)(o.code,{children:"buildConfig.jsx"})}),"\u3002"]}),"\n"]}),"\n",(0,t.jsx)(o.p,{children:(0,t.jsx)(o.strong,{children:"\u4e00\u4e9b\u9ad8\u7ea7\u5c5e\u6027\u6216\u8005\u4f7f\u7528\u9891\u7387\u4e0d\u9ad8\u7684\u529f\u80fd\uff1a"})}),"\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsxs)(o.li,{children:["\u4ea7\u7269\u4ee3\u7801\u538b\u7f29\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#minify-2",children:(0,t.jsx)(o.code,{children:"buildConfig.minify"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u4ee3\u7801\u5206\u5272\uff1a",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#splitting-7",children:(0,t.jsx)(o.code,{children:"buildConfig.spitting"})})]}),"\n",(0,t.jsxs)(o.li,{children:["\u6307\u5b9a\u6784\u5efa\u4ea7\u7269\u7528\u4e8e NodeJS \u73af\u5883\u8fd8\u662f\u6d4f\u89c8\u5668\u73af\u5883\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#platform-2",children:(0,t.jsx)(o.code,{children:"buildConfig.platform"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["umd \u4ea7\u7269\u76f8\u5173\uff1a","\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsxs)(o.li,{children:["\u6307\u5b9a umd \u4ea7\u7269\u5916\u90e8\u5bfc\u5165\u7684\u5168\u5c40\u53d8\u91cf\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#umdglobals-5",children:(0,t.jsx)(o.code,{children:"buildConfig.umdGlobals"})}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:["\u6307\u5b9a umd \u4ea7\u7269\u7684\u6a21\u5757\u540d\uff1a\u5bf9\u5e94\u7684 API \u662f ",(0,t.jsx)(o.a,{href:"/module-tools/api/config/build-config.html#umdmodulename-5",children:(0,t.jsx)(o.code,{children:"buildConfig.umdModuleName"})}),"\u3002"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(o.p,{children:"\u9664\u4e86\u4ee5\u4e0a\u5206\u7c7b\u4ee5\u5916\uff0c\u5173\u4e8e\u8fd9\u4e9b API \u7684\u5e38\u89c1\u95ee\u9898\u548c\u6700\u4f73\u5b9e\u8df5\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u94fe\u63a5\u6765\u4e86\u89e3"}),"\n",(0,t.jsxs)(o.ul,{children:["\n",(0,t.jsx)(o.li,{children:(0,t.jsxs)(o.a,{href:"/module-tools/guide/advance/in-depth-about-build.html#bundle-%E5%92%8C-bundleless-2",children:["\u4ec0\u4e48\u662f ",(0,t.jsx)(o.code,{children:"bundle"})," \u548c ",(0,t.jsx)(o.code,{children:"bundleless"}),"?"]})}),"\n",(0,t.jsxs)(o.li,{children:[(0,t.jsxs)(o.a,{href:"/module-tools/guide/advance/in-depth-about-build.html#input-%E4%B8%8E-sourcedir-%E7%9A%84%E5%85%B3%E7%B3%BB-1",children:[(0,t.jsx)(o.code,{children:"input"})," \u4e0e ",(0,t.jsx)(o.code,{children:"sourceDir"})," \u7684\u5173\u7cfb"]}),"\u3002"]}),"\n",(0,t.jsxs)(o.li,{children:[(0,t.jsx)(o.a,{href:"/module-tools/guide/advance/in-depth-about-build.html#%E7%B1%BB%E5%9E%8B%E6%96%87%E4%BB%B6-1",children:"\u4ea7\u7269\u4e2d\u7c7b\u578b\u6587\u4ef6\u7684\u591a\u79cd\u751f\u6210\u65b9\u5f0f"}),"\u3002"]}),"\n",(0,t.jsx)(o.li,{children:(0,t.jsxs)(o.a,{href:"/module-tools/guide/advance/in-depth-about-build.html#buildconfigdefine-%E4%B8%8D%E5%90%8C%E5%9C%BA%E6%99%AF%E7%9A%84%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F-1",children:[(0,t.jsx)(o.code,{children:"buildConfig.define"})," \u4e0d\u540c\u573a\u666f\u7684\u4f7f\u7528\u65b9\u5f0f\u3002"]})}),"\n",(0,t.jsx)(o.li,{children:(0,t.jsx)(o.a,{href:"/module-tools/guide/advance/external-dependency.html",children:"\u5982\u4f55\u5904\u7406\u7b2c\u4e09\u65b9\u4f9d\u8d56\uff1f"})}),"\n",(0,t.jsx)(o.li,{children:(0,t.jsx)(o.a,{href:"/module-tools/guide/advance/copy.html",children:"\u5982\u4f55\u4f7f\u7528\u62f7\u8d1d\uff1f"})}),"\n",(0,t.jsx)(o.li,{children:(0,t.jsx)(o.a,{href:"/module-tools/guide/advance/build-umd.html#%E8%AE%BE%E7%BD%AE%E9%A1%B9%E7%9B%AE%E7%9A%84%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F%E5%90%8D%E7%A7%B0-1",children:"\u5982\u4f55\u6784\u5efa umd \u4ea7\u7269\uff1f"})}),"\n",(0,t.jsx)(o.li,{children:(0,t.jsx)(o.a,{href:"/module-tools/guide/advance/asset.html",children:"\u9759\u6001\u8d44\u6e90\u76ee\u524d\u6240\u652f\u6301\u7684\u80fd\u529b\u3002"})}),"\n"]}),"\n",(0,t.jsxs)(o.h2,{id:"\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528-buildconfig",children:[(0,t.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528-buildconfig",children:"#"}),"\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528 ",(0,t.jsx)(o.code,{children:"buildConfig"})]}),"\n",(0,t.jsxs)(o.p,{children:[(0,t.jsx)(o.code,{children:"buildConfig"})," \u662f\u7528\u4e8e\u4fee\u6539\u4ea7\u7269\u7684\u65b9\u5f0f\u4e4b\u4e00\uff0c",(0,t.jsxs)(o.strong,{children:["\u5f53\u4e0e ",(0,t.jsx)(o.code,{children:"buildPreset"})," \u914d\u7f6e\u540c\u65f6\u5b58\u5728\u7684\u65f6\u5019\uff0c\u53ea\u6709 ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u624d\u4f1a\u751f\u6548"]}),"\u3002\u56e0\u6b64\u5982\u679c\u6309\u7167\u5982\u4e0b\u65b9\u5f0f\u914d\u7f6e\uff1a"]}),"\n",(0,t.jsx)(i.Code,{codeConfig:s,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"import",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"defineConfig",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"from",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@modern-js/module-tools",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[]},{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"defineConfig",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"buildConfig",props:{style:{color:"#D8DEE9"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"format",props:{style:{color:"#D8DEE9"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"umd",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"buildPreset",props:{style:{color:"#D8DEE9"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"npm-library",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"typescript"},annotations:[]}]}),"\n",(0,t.jsx)(o.p,{children:"\u90a3\u4e48\u6b64\u65f6\u5c31\u4f1a\u770b\u5230\u5982\u4e0b\u63d0\u793a\uff1a"}),"\n",(0,t.jsx)(i.Code,{codeConfig:s,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"\u56e0\u4e3a\u540c\u65f6\u51fa\u73b0 ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"buildConfig",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:" \u548c ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"buildPreset",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:" \u914d\u7f6e\uff0c\u56e0\u6b64\u4ec5 ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"buildConfig",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:" \u914d\u7f6e\u751f\u6548",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),"\n",(0,t.jsxs)(o.p,{children:[(0,t.jsx)(o.code,{children:"buildPreset"})," \u4ee3\u8868\u7684\u4e00\u7ec4\u6216\u8005\u591a\u7ec4\u6784\u5efa\u76f8\u5173\u7684\u914d\u7f6e\u90fd\u662f\u7531 ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u7ec4\u6210\uff0c",(0,t.jsxs)(o.strong,{children:["\u5f53\u4f7f\u7528 ",(0,t.jsx)(o.code,{children:"buildPreset"})," \u65e0\u6cd5\u6ee1\u8db3\u5f53\u524d\u9879\u76ee\u9700\u6c42\u7684\u65f6\u5019\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u6765\u81ea\u5b9a\u4e49\u8f93\u51fa\u4ea7\u7269"]}),"\u3002"]}),"\n",(0,t.jsxs)(o.p,{children:["\u5728\u4f7f\u7528 ",(0,t.jsx)(o.code,{children:"buildConfig"})," \u7684\u8fc7\u7a0b\uff0c\u5c31\u662f\u5bf9",(0,t.jsx)(o.strong,{children:"\u83b7\u5f97\u600e\u6837\u7684\u6784\u5efa\u4ea7\u7269"}),"\u7684\u601d\u8003\u8fc7\u7a0b\u3002"]})]})}function p(e,o){throw new Error("Expected "+(o?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}o.default=function(e={}){const{wrapper:o}=e.components||{};return o?(0,t.jsx)(o,Object.assign({},e,{children:(0,t.jsx)(u,e)})):u(e)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_modern_js_module_tools_docs=self.webpackChunk_modern_js_module_tools_docs||[]).push([[2020],{21415:function(e,o,t){t.r(o),t.d(o,{CH:function(){return a},chCodeConfig:function(){return i},content:function(){return u},frontmatter:function(){return s},title:function(){return d},toc:function(){return c}});var n=t(97458),r=t(53799);const a={annotations:r.ds,Code:r.EK},i={staticMediaQuery:"not screen, (max-width: 768px)",theme:{name:"nord",type:"dark",semanticHighlighting:!0,colors:{focusBorder:"#3b4252",foreground:"#d8dee9","activityBar.background":"#2e3440","activityBar.dropBackground":"#3b4252","activityBar.foreground":"#d8dee9","activityBar.activeBorder":"#88c0d0","activityBar.activeBackground":"#3b4252","activityBarBadge.background":"#88c0d0","activityBarBadge.foreground":"#2e3440","badge.foreground":"#2e3440","badge.background":"#88c0d0","button.background":"#88c0d0ee","button.foreground":"#2e3440","button.hoverBackground":"#88c0d0","button.secondaryBackground":"#434c5e","button.secondaryForeground":"#d8dee9","button.secondaryHoverBackground":"#4c566a","charts.red":"#bf616a","charts.blue":"#81a1c1","charts.yellow":"#ebcb8b","charts.orange":"#d08770","charts.green":"#a3be8c","charts.purple":"#b48ead","charts.foreground":"#d8dee9","charts.lines":"#88c0d0","debugConsole.infoForeground":"#88c0d0","debugConsole.warningForeground":"#ebcb8b","debugConsole.errorForeground":"#bf616a","debugConsole.sourceForeground":"#616e88","debugConsoleInputIcon.foreground":"#81a1c1","debugExceptionWidget.background":"#4c566a","debugExceptionWidget.border":"#2e3440","debugToolBar.background":"#3b4252",descriptionForeground:"#d8dee9e6","diffEditor.insertedTextBackground":"#81a1c133","diffEditor.removedTextBackground":"#bf616a4d","dropdown.background":"#3b4252","dropdown.border":"#3b4252","dropdown.foreground":"#d8dee9","editorActiveLineNumber.foreground":"#d8dee9cc","editorCursor.foreground":"#d8dee9","editorHint.border":"#ebcb8b00","editorHint.foreground":"#ebcb8b","editorIndentGuide.background":"#434c5eb3","editorIndentGuide.activeBackground":"#4c566a","editorInlayHint.background":"#434c5e","editorInlayHint.foreground":"#d8dee9","editorLineNumber.foreground":"#4c566a","editorLineNumber.activeForeground":"#d8dee9","editorWhitespace.foreground":"#4c566ab3","editorWidget.background":"#2e3440","editorWidget.border":"#3b4252","editor.background":"#2e3440","editor.foreground":"#d8dee9","editor.hoverHighlightBackground":"#3b4252","editor.findMatchBackground":"#88c0d066","editor.findMatchHighlightBackground":"#88c0d033","editor.findRangeHighlightBackground":"#88c0d033","editor.lineHighlightBackground":"#3b4252","editor.lineHighlightBorder":"#3b4252","editor.inactiveSelectionBackground":"#434c5ecc","editor.inlineValuesBackground":"#4c566a","editor.inlineValuesForeground":"#eceff4","editor.selectionBackground":"#434c5ecc","editor.selectionHighlightBackground":"#434c5ecc","editor.rangeHighlightBackground":"#434c5e52","editor.wordHighlightBackground":"#81a1c166","editor.wordHighlightStrongBackground":"#81a1c199","editor.stackFrameHighlightBackground":"#5e81ac","editor.focusedStackFrameHighlightBackground":"#5e81ac","editorError.foreground":"#bf616a","editorError.border":"#bf616a00","editorWarning.foreground":"#ebcb8b","editorWarning.border":"#ebcb8b00","editorBracketMatch.background":"#2e344000","editorBracketMatch.border":"#88c0d0","editorBracketHighlight.foreground1":"#8fbcbb","editorBracketHighlight.foreground2":"#88c0d0","editorBracketHighlight.foreground3":"#81a1c1","editorBracketHighlight.foreground4":"#5e81ac","editorBracketHighlight.foreground5":"#8fbcbb","editorBracketHighlight.foreground6":"#88c0d0","editorBracketHighlight.unexpectedBracket.foreground":"#bf616a","editorCodeLens.foreground":"#4c566a","editorGroup.background":"#2e3440","editorGroup.border":"#3b425201","editorGroup.dropBackground":"#3b425299","editorGroupHeader.border":"#3b425200","editorGroupHeader.noTabsBackground":"#2e3440","editorGroupHeader.tabsBackground":"#2e3440","editorGroupHeader.tabsBorder":"#3b425200","editorGutter.background":"#2e3440","editorGutter.modifiedBackground":"#ebcb8b","editorGutter.addedBackground":"#a3be8c","editorGutter.deletedBackground":"#bf616a","editorHoverWidget.background":"#3b4252","editorHoverWidget.border":"#3b4252","editorLink.activeForeground":"#88c0d0","editorMarkerNavigation.background":"#5e81acc0","editorMarkerNavigationError.background":"#bf616ac0","editorMarkerNavigationWarning.background":"#ebcb8bc0","editorOverviewRuler.border":"#3b4252","editorOverviewRuler.currentContentForeground":"#3b4252","editorOverviewRuler.incomingContentForeground":"#3b4252","editorOverviewRuler.findMatchForeground":"#88c0d066","editorOverviewRuler.rangeHighlightForeground":"#88c0d066","editorOverviewRuler.selectionHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightStrongForeground":"#88c0d066","editorOverviewRuler.modifiedForeground":"#ebcb8b","editorOverviewRuler.addedForeground":"#a3be8c","editorOverviewRuler.deletedForeground":"#bf616a","editorOverviewRuler.errorForeground":"#bf616a","editorOverviewRuler.warningForeground":"#ebcb8b","editorOverviewRuler.infoForeground":"#81a1c1","editorRuler.foreground":"#434c5e","editorSuggestWidget.background":"#2e3440","editorSuggestWidget.border":"#3b4252","editorSuggestWidget.foreground":"#d8dee9","editorSuggestWidget.focusHighlightForeground":"#88c0d0","editorSuggestWidget.highlightForeground":"#88c0d0","editorSuggestWidget.selectedBackground":"#434c5e","editorSuggestWidget.selectedForeground":"#d8dee9","extensionButton.prominentForeground":"#d8dee9","extensionButton.prominentBackground":"#434c5e","extensionButton.prominentHoverBackground":"#4c566a",errorForeground:"#bf616a","gitDecoration.modifiedResourceForeground":"#ebcb8b","gitDecoration.deletedResourceForeground":"#bf616a","gitDecoration.untrackedResourceForeground":"#a3be8c","gitDecoration.ignoredResourceForeground":"#d8dee966","gitDecoration.conflictingResourceForeground":"#5e81ac","gitDecoration.submoduleResourceForeground":"#8fbcbb","gitDecoration.stageDeletedResourceForeground":"#bf616a","gitDecoration.stageModifiedResourceForeground":"#ebcb8b","input.background":"#3b4252","input.foreground":"#d8dee9","input.placeholderForeground":"#d8dee999","input.border":"#3b4252","inputOption.activeBackground":"#5e81ac","inputOption.activeBorder":"#5e81ac","inputOption.activeForeground":"#eceff4","inputValidation.errorBackground":"#bf616a","inputValidation.errorBorder":"#bf616a","inputValidation.infoBackground":"#81a1c1","inputValidation.infoBorder":"#81a1c1","inputValidation.warningBackground":"#d08770","inputValidation.warningBorder":"#d08770","keybindingLabel.background":"#4c566a","keybindingLabel.border":"#4c566a","keybindingLabel.bottomBorder":"#4c566a","keybindingLabel.foreground":"#d8dee9","list.activeSelectionBackground":"#88c0d0","list.activeSelectionForeground":"#2e3440","list.inactiveSelectionBackground":"#434c5e","list.inactiveSelectionForeground":"#d8dee9","list.inactiveFocusBackground":"#434c5ecc","list.hoverForeground":"#eceff4","list.focusForeground":"#d8dee9","list.focusBackground":"#88c0d099","list.focusHighlightForeground":"#eceff4","list.hoverBackground":"#3b4252","list.dropBackground":"#88c0d099","list.highlightForeground":"#88c0d0","list.errorForeground":"#bf616a","list.warningForeground":"#ebcb8b","merge.currentHeaderBackground":"#81a1c166","merge.currentContentBackground":"#81a1c14d","merge.incomingHeaderBackground":"#8fbcbb66","merge.incomingContentBackground":"#8fbcbb4d","merge.border":"#3b425200","minimap.background":"#2e3440","minimap.errorHighlight":"#bf616acc","minimap.findMatchHighlight":"#88c0d0","minimap.selectionHighlight":"#88c0d0cc","minimap.warningHighlight":"#ebcb8bcc","minimapGutter.addedBackground":"#a3be8c","minimapGutter.deletedBackground":"#bf616a","minimapGutter.modifiedBackground":"#ebcb8b","minimapSlider.activeBackground":"#434c5eaa","minimapSlider.background":"#434c5e99","minimapSlider.hoverBackground":"#434c5eaa","notification.background":"#3b4252","notification.buttonBackground":"#434c5e","notification.buttonForeground":"#d8dee9","notification.buttonHoverBackground":"#4c566a","notification.errorBackground":"#bf616a","notification.errorForeground":"#2e3440","notification.foreground":"#d8dee9","notification.infoBackground":"#88c0d0","notification.infoForeground":"#2e3440","notification.warningBackground":"#ebcb8b","notification.warningForeground":"#2e3440","notificationCenter.border":"#3b425200","notificationCenterHeader.background":"#2e3440","notificationCenterHeader.foreground":"#88c0d0","notificationLink.foreground":"#88c0d0","notifications.background":"#3b4252","notifications.border":"#2e3440","notifications.foreground":"#d8dee9","notificationToast.border":"#3b425200","panel.background":"#2e3440","panel.border":"#3b4252","panelTitle.activeBorder":"#88c0d000","panelTitle.activeForeground":"#88c0d0","panelTitle.inactiveForeground":"#d8dee9","peekView.border":"#4c566a","peekViewEditor.background":"#2e3440","peekViewEditorGutter.background":"#2e3440","peekViewEditor.matchHighlightBackground":"#88c0d04d","peekViewResult.background":"#2e3440","peekViewResult.fileForeground":"#88c0d0","peekViewResult.lineForeground":"#d8dee966","peekViewResult.matchHighlightBackground":"#88c0d0cc","peekViewResult.selectionBackground":"#434c5e","peekViewResult.selectionForeground":"#d8dee9","peekViewTitle.background":"#3b4252","peekViewTitleDescription.foreground":"#d8dee9","peekViewTitleLabel.foreground":"#88c0d0","pickerGroup.border":"#3b4252","pickerGroup.foreground":"#88c0d0","progressBar.background":"#88c0d0","quickInputList.focusBackground":"#88c0d0","quickInputList.focusForeground":"#2e3440","sash.hoverBorder":"#88c0d0","scrollbar.shadow":"#00000066","scrollbarSlider.activeBackground":"#434c5eaa","scrollbarSlider.background":"#434c5e99","scrollbarSlider.hoverBackground":"#434c5eaa","selection.background":"#88c0d099","sideBar.background":"#2e3440","sideBar.foreground":"#d8dee9","sideBar.border":"#3b4252","sideBarSectionHeader.background":"#3b4252","sideBarSectionHeader.foreground":"#d8dee9","sideBarTitle.foreground":"#d8dee9","statusBar.background":"#3b4252","statusBar.debuggingBackground":"#5e81ac","statusBar.debuggingForeground":"#d8dee9","statusBar.noFolderForeground":"#d8dee9","statusBar.noFolderBackground":"#3b4252","statusBar.foreground":"#d8dee9","statusBarItem.activeBackground":"#4c566a","statusBarItem.hoverBackground":"#434c5e","statusBarItem.prominentBackground":"#3b4252","statusBarItem.prominentHoverBackground":"#434c5e","statusBarItem.errorBackground":"#3b4252","statusBarItem.errorForeground":"#bf616a","statusBarItem.warningBackground":"#ebcb8b","statusBarItem.warningForeground":"#2e3440","statusBar.border":"#3b425200","tab.activeBackground":"#3b4252","tab.activeForeground":"#d8dee9","tab.border":"#3b425200","tab.activeBorder":"#88c0d000","tab.unfocusedActiveBorder":"#88c0d000","tab.inactiveBackground":"#2e3440","tab.inactiveForeground":"#d8dee966","tab.unfocusedActiveForeground":"#d8dee999","tab.unfocusedInactiveForeground":"#d8dee966","tab.hoverBackground":"#3b4252cc","tab.unfocusedHoverBackground":"#3b4252b3","tab.hoverBorder":"#88c0d000","tab.unfocusedHoverBorder":"#88c0d000","tab.activeBorderTop":"#88c0d000","tab.unfocusedActiveBorderTop":"#88c0d000","tab.lastPinnedBorder":"#4c566a","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.ansiBlack":"#3b4252","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#ebcb8b","terminal.ansiBlue":"#81a1c1","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0","terminal.ansiBrightBlack":"#4c566a","terminal.ansiBrightRed":"#bf616a","terminal.ansiBrightGreen":"#a3be8c","terminal.ansiBrightYellow":"#ebcb8b","terminal.ansiBrightBlue":"#81a1c1","terminal.ansiBrightMagenta":"#b48ead","terminal.ansiBrightCyan":"#8fbcbb","terminal.ansiBrightWhite":"#eceff4","terminal.tab.activeBorder":"#88c0d0","textBlockQuote.background":"#3b4252","textBlockQuote.border":"#81a1c1","textCodeBlock.background":"#4c566a","textLink.activeForeground":"#88c0d0","textLink.foreground":"#88c0d0","textPreformat.foreground":"#8fbcbb","textSeparator.foreground":"#eceff4","titleBar.activeBackground":"#2e3440","titleBar.activeForeground":"#d8dee9","titleBar.border":"#2e344000","titleBar.inactiveBackground":"#2e3440","titleBar.inactiveForeground":"#d8dee966","tree.indentGuidesStroke":"#616e88","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonBackground":"#434c5e","welcomePage.buttonHoverBackground":"#4c566a","widget.shadow":"#00000066"},tokenColors:[{settings:{foreground:"#d8dee9ff",background:"#2e3440ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{name:"Comment",scope:"comment",settings:{foreground:"#616E88"}},{name:"Constant Character",scope:"constant.character",settings:{foreground:"#EBCB8B"}},{name:"Constant Character Escape",scope:"constant.character.escape",settings:{foreground:"#EBCB8B"}},{name:"Constant Language",scope:"constant.language",settings:{foreground:"#81A1C1"}},{name:"Constant Numeric",scope:"constant.numeric",settings:{foreground:"#B48EAD"}},{name:"Constant Regexp",scope:"constant.regexp",settings:{foreground:"#EBCB8B"}},{name:"Entity Name Class/Type",scope:["entity.name.class","entity.name.type.class"],settings:{foreground:"#8FBCBB"}},{name:"Entity Name Function",scope:"entity.name.function",settings:{foreground:"#88C0D0"}},{name:"Entity Name Tag",scope:"entity.name.tag",settings:{foreground:"#81A1C1"}},{name:"Entity Other Attribute Name",scope:"entity.other.attribute-name",settings:{foreground:"#8FBCBB"}},{name:"Entity Other Inherited Class",scope:"entity.other.inherited-class",settings:{fontStyle:"bold",foreground:"#8FBCBB"}},{name:"Invalid Deprecated",scope:"invalid.deprecated",settings:{foreground:"#D8DEE9",background:"#EBCB8B"}},{name:"Invalid Illegal",scope:"invalid.illegal",settings:{foreground:"#D8DEE9",background:"#BF616A"}},{name:"Keyword",scope:"keyword",settings:{foreground:"#81A1C1"}},{name:"Keyword Operator",scope:"keyword.operator",settings:{foreground:"#81A1C1"}},{name:"Keyword Other New",scope:"keyword.other.new",settings:{foreground:"#81A1C1"}},{name:"Markup Bold",scope:"markup.bold",settings:{fontStyle:"bold"}},{name:"Markup Changed",scope:"markup.changed",settings:{foreground:"#EBCB8B"}},{name:"Markup Deleted",scope:"markup.deleted",settings:{foreground:"#BF616A"}},{name:"Markup Inserted",scope:"markup.inserted",settings:{foreground:"#A3BE8C"}},{name:"Meta Preprocessor",scope:"meta.preprocessor",settings:{foreground:"#5E81AC"}},{name:"Punctuation",scope:"punctuation",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Parameters",scope:["punctuation.definition.method-parameters","punctuation.definition.function-parameters","punctuation.definition.parameters"],settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Tag",scope:"punctuation.definition.tag",settings:{foreground:"#81A1C1"}},{name:"Punctuation Definition Comment",scope:["punctuation.definition.comment","punctuation.end.definition.comment","punctuation.start.definition.comment"],settings:{foreground:"#616E88"}},{name:"Punctuation Section",scope:"punctuation.section",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Section Embedded",scope:["punctuation.section.embedded.begin","punctuation.section.embedded.end"],settings:{foreground:"#81A1C1"}},{name:"Punctuation Terminator",scope:"punctuation.terminator",settings:{foreground:"#81A1C1"}},{name:"Punctuation Variable",scope:"punctuation.definition.variable",settings:{foreground:"#81A1C1"}},{name:"Storage",scope:"storage",settings:{foreground:"#81A1C1"}},{name:"String",scope:"string",settings:{foreground:"#A3BE8C"}},{name:"String Regexp",scope:"string.regexp",settings:{foreground:"#EBCB8B"}},{name:"Support Class",scope:"support.class",settings:{foreground:"#8FBCBB"}},{name:"Support Constant",scope:"support.constant",settings:{foreground:"#81A1C1"}},{name:"Support Function",scope:"support.function",settings:{foreground:"#88C0D0"}},{name:"Support Function Construct",scope:"support.function.construct",settings:{foreground:"#81A1C1"}},{name:"Support Type",scope:"support.type",settings:{foreground:"#8FBCBB"}},{name:"Support Type Exception",scope:"support.type.exception",settings:{foreground:"#8FBCBB"}},{name:"Token Debug",scope:"token.debug-token",settings:{foreground:"#b48ead"}},{name:"Token Error",scope:"token.error-token",settings:{foreground:"#bf616a"}},{name:"Token Info",scope:"token.info-token",settings:{foreground:"#88c0d0"}},{name:"Token Warning",scope:"token.warn-token",settings:{foreground:"#ebcb8b"}},{name:"Variable",scope:"variable.other",settings:{foreground:"#D8DEE9"}},{name:"Variable Language",scope:"variable.language",settings:{foreground:"#81A1C1"}},{name:"Variable Parameter",scope:"variable.parameter",settings:{foreground:"#D8DEE9"}},{name:"[C/CPP] Punctuation Separator Pointer-Access",scope:"punctuation.separator.pointer-access.c",settings:{foreground:"#81A1C1"}},{name:"[C/CPP] Meta Preprocessor Include",scope:["source.c meta.preprocessor.include","source.c string.quoted.other.lt-gt.include"],settings:{foreground:"#8FBCBB"}},{name:"[C/CPP] Conditional Directive",scope:["source.cpp keyword.control.directive.conditional","source.cpp punctuation.definition.directive","source.c keyword.control.directive.conditional","source.c punctuation.definition.directive"],settings:{foreground:"#5E81AC",fontStyle:"bold"}},{name:"[CSS] Constant Other Color RGB Value",scope:"source.css constant.other.color.rgb-value",settings:{foreground:"#B48EAD"}},{name:"[CSS](Function) Meta Property-Value",scope:"source.css meta.property-value",settings:{foreground:"#88C0D0"}},{name:"[CSS] Media Queries",scope:["source.css keyword.control.at-rule.media","source.css keyword.control.at-rule.media punctuation.definition.keyword"],settings:{foreground:"#D08770"}},{name:"[CSS] Punctuation Definition Keyword",scope:"source.css punctuation.definition.keyword",settings:{foreground:"#81A1C1"}},{name:"[CSS] Support Type Property Name",scope:"source.css support.type.property-name",settings:{foreground:"#D8DEE9"}},{name:"[diff] Meta Range Context",scope:"source.diff meta.diff.range.context",settings:{foreground:"#8FBCBB"}},{name:"[diff] Meta Header From-File",scope:"source.diff meta.diff.header.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition From-File",scope:"source.diff punctuation.definition.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Range",scope:"source.diff punctuation.definition.range",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Separator",scope:"source.diff punctuation.definition.separator",settings:{foreground:"#81A1C1"}},{name:"[Elixir](JakeBecker.elixir-ls) module names",scope:"entity.name.type.module.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Elixir](JakeBecker.elixir-ls) module attributes",scope:"variable.other.readwrite.module.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) atoms",scope:"constant.other.symbol.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) modules",scope:"variable.other.constant.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Go] String Format Placeholder",scope:"source.go constant.other.placeholder.go",settings:{foreground:"#EBCB8B"}},{name:"[Java](JavaDoc) Comment Block Documentation HTML Entities",scope:"source.java comment.block.documentation.javadoc punctuation.definition.entity.html",settings:{foreground:"#81A1C1"}},{name:"[Java](JavaDoc) Constant Other",scope:"source.java constant.other",settings:{foreground:"#D8DEE9"}},{name:"[Java](JavaDoc) Keyword Other Documentation",scope:"source.java keyword.other.documentation",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Author",scope:"source.java keyword.other.documentation.author.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Directive/Custom",scope:["source.java keyword.other.documentation.directive","source.java keyword.other.documentation.custom"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation See",scope:"source.java keyword.other.documentation.see.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java] Meta Method-Call",scope:"source.java meta.method-call meta.method",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Meta Tag Template Link",scope:["source.java meta.tag.template.link.javadoc","source.java string.other.link.title.javadoc"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Meta Tag Template Value",scope:"source.java meta.tag.template.value.javadoc",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Punctuation Definition Keyword",scope:"source.java punctuation.definition.keyword.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Punctuation Definition Tag",scope:["source.java punctuation.definition.tag.begin.javadoc","source.java punctuation.definition.tag.end.javadoc"],settings:{foreground:"#616E88"}},{name:"[Java] Storage Modifier Import",scope:"source.java storage.modifier.import",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Modifier Package",scope:"source.java storage.modifier.package",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type",scope:"source.java storage.type",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Annotation",scope:"source.java storage.type.annotation",settings:{foreground:"#D08770"}},{name:"[Java] Storage Type Generic",scope:"source.java storage.type.generic",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Primitive",scope:"source.java storage.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Decorator",scope:["source.js punctuation.decorator","source.js meta.decorator variable.other.readwrite","source.js meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[JavaScript] Meta Object-Literal Key",scope:"source.js meta.object-literal.key",settings:{foreground:"#88C0D0"}},{name:"[JavaScript](JSDoc) Storage Type Class",scope:"source.js storage.type.class.jsdoc",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] String Template Literals Punctuation",scope:["source.js string.quoted.template punctuation.quasi.element.begin","source.js string.quoted.template punctuation.quasi.element.end","source.js string.template punctuation.definition.template-expression"],settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Interpolated String Template Punctuation Functions",scope:"source.js string.quoted.template meta.method-call.with-arguments",settings:{foreground:"#ECEFF4"}},{name:"[JavaScript] String Template Literal Variable",scope:["source.js string.template meta.template.expression support.variable.property","source.js string.template meta.template.expression variable.other.object"],settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Support Type Primitive",scope:"source.js support.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Variable Other Object",scope:"source.js variable.other.object",settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Variable Other Read-Write Alias",scope:"source.js variable.other.readwrite.alias",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] Parentheses in Template Strings",scope:["source.js meta.embedded.line meta.brace.square","source.js meta.embedded.line meta.brace.round","source.js string.quoted.template meta.brace.square","source.js string.quoted.template meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[HTML] Constant Character Entity",scope:"text.html.basic constant.character.entity.html",settings:{foreground:"#EBCB8B"}},{name:"[HTML] Constant Other Inline-Data",scope:"text.html.basic constant.other.inline-data",settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[HTML] Meta Tag SGML Doctype",scope:"text.html.basic meta.tag.sgml.doctype",settings:{foreground:"#5E81AC"}},{name:"[HTML] Punctuation Definition Entity",scope:"text.html.basic punctuation.definition.entity",settings:{foreground:"#81A1C1"}},{name:"[INI] Entity Name Section Group-Title",scope:"source.properties entity.name.section.group-title.ini",settings:{foreground:"#88C0D0"}},{name:"[INI] Punctuation Separator Key-Value",scope:"source.properties punctuation.separator.key-value.ini",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Fenced Code Block",scope:["text.html.markdown markup.fenced_code.block","text.html.markdown markup.fenced_code.block punctuation.definition"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Heading",scope:"markup.heading",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Inline",scope:["text.html.markdown markup.inline.raw","text.html.markdown markup.inline.raw punctuation.definition.raw"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Italic",scope:"text.html.markdown markup.italic",settings:{fontStyle:"italic"}},{name:"[Markdown] Markup Link",scope:"text.html.markdown markup.underline.link",settings:{fontStyle:"underline"}},{name:"[Markdown] Markup List Numbered/Unnumbered",scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown beginning.punctuation.definition.quote",settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown markup.quote",settings:{foreground:"#616E88"}},{name:"[Markdown] Markup Math Constant",scope:"text.html.markdown constant.character.math.tex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Math Definition Marker",scope:["text.html.markdown punctuation.definition.math.begin","text.html.markdown punctuation.definition.math.end"],settings:{foreground:"#5E81AC"}},{name:"[Markdown] Markup Math Function Definition Marker",scope:"text.html.markdown punctuation.definition.function.math.tex",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Math Operator",scope:"text.html.markdown punctuation.math.operator.latex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Heading",scope:"text.html.markdown punctuation.definition.heading",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Constant/String",scope:["text.html.markdown punctuation.definition.constant","text.html.markdown punctuation.definition.string"],settings:{foreground:"#81A1C1"}},{name:"[Markdown] String Other Link Description/Title",scope:["text.html.markdown constant.other.reference.link","text.html.markdown string.other.link.description","text.html.markdown string.other.link.title"],settings:{foreground:"#88C0D0"}},{name:"[Perl] Perl Sigils",scope:"source.perl punctuation.definition.variable",settings:{foreground:"#D8DEE9"}},{name:"[PHP] Meta Function-Call Object",scope:["source.php meta.function-call","source.php meta.function-call.object"],settings:{foreground:"#88C0D0"}},{name:"[Python] Decorator",scope:["source.python entity.name.function.decorator","source.python meta.function.decorator support.type"],settings:{foreground:"#D08770"}},{name:"[Python] Function Call",scope:"source.python meta.function-call.generic",settings:{foreground:"#88C0D0"}},{name:"[Python] Support Type",scope:"source.python support.type",settings:{foreground:"#88C0D0"}},{name:"[Python] Function Parameter",scope:["source.python variable.parameter.function.language"],settings:{foreground:"#D8DEE9"}},{name:"[Python] Function Parameter Special",scope:["source.python meta.function.parameters variable.parameter.function.language.special.self"],settings:{foreground:"#81A1C1"}},{name:"[Rust] Entity types",scope:"source.rust entity.name.type",settings:{foreground:"#8FBCBB"}},{name:"[Rust] Macro",scope:"source.rust meta.macro entity.name.function",settings:{fontStyle:"bold",foreground:"#88C0D0"}},{name:"[Rust] Attributes",scope:["source.rust meta.attribute","source.rust meta.attribute punctuation","source.rust meta.attribute keyword.operator"],settings:{foreground:"#5E81AC"}},{name:"[Rust] Traits",scope:"source.rust entity.name.type.trait",settings:{fontStyle:"bold"}},{name:"[Rust] Interpolation Bracket Curly",scope:"source.rust punctuation.definition.interpolation",settings:{foreground:"#EBCB8B"}},{name:"[SCSS] Punctuation Definition Interpolation Bracket Curly",scope:["source.css.scss punctuation.definition.interpolation.begin.bracket.curly","source.css.scss punctuation.definition.interpolation.end.bracket.curly"],settings:{foreground:"#81A1C1"}},{name:"[SCSS] Variable Interpolation",scope:"source.css.scss variable.interpolation",settings:{foreground:"#D8DEE9",fontStyle:"italic"}},{name:"[TypeScript] Decorators",scope:["source.ts punctuation.decorator","source.ts meta.decorator variable.other.readwrite","source.ts meta.decorator entity.name.function","source.tsx punctuation.decorator","source.tsx meta.decorator variable.other.readwrite","source.tsx meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[TypeScript] Object-literal keys",scope:["source.ts meta.object-literal.key","source.tsx meta.object-literal.key"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Object-literal functions",scope:["source.ts meta.object-literal.key entity.name.function","source.tsx meta.object-literal.key entity.name.function"],settings:{foreground:"#88C0D0"}},{name:"[TypeScript] Type/Class",scope:["source.ts support.class","source.ts support.type","source.ts entity.name.type","source.ts entity.name.class","source.tsx support.class","source.tsx support.type","source.tsx entity.name.type","source.tsx entity.name.class"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Static Class Support",scope:["source.ts support.constant.math","source.ts support.constant.dom","source.ts support.constant.json","source.tsx support.constant.math","source.tsx support.constant.dom","source.tsx support.constant.json"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Variables",scope:["source.ts support.variable","source.tsx support.variable"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Parentheses in Template Strings",scope:["source.ts meta.embedded.line meta.brace.square","source.ts meta.embedded.line meta.brace.round","source.tsx meta.embedded.line meta.brace.square","source.tsx meta.embedded.line meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[XML] Entity Name Tag Namespace",scope:"text.xml entity.name.tag.namespace",settings:{foreground:"#8FBCBB"}},{name:"[XML] Keyword Other Doctype",scope:"text.xml keyword.other.doctype",settings:{foreground:"#5E81AC"}},{name:"[XML] Meta Tag Preprocessor",scope:"text.xml meta.tag.preprocessor entity.name.tag",settings:{foreground:"#5E81AC"}},{name:"[XML] Entity Name Tag Namespace",scope:["text.xml string.unquoted.cdata","text.xml string.unquoted.cdata punctuation.definition.string"],settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[YAML] Entity Name Tag",scope:"source.yaml entity.name.tag",settings:{foreground:"#8FBCBB"}}]},autoImport:!0,showCopyButton:!0,skipLanguages:[],filepath:"/Users/bytedance/modern.js/website/module-tools/docs/zh/guide/basic/publish-your-project.md"},s={sidebar_position:7},c=[{id:"\u8ddf\u8e2a\u53d8\u66f4",text:"\u8ddf\u8e2a\u53d8\u66f4",depth:2},{id:"\u7248\u672c\u66f4\u65b0",text:"\u7248\u672c\u66f4\u65b0",depth:2},{id:"\u53d1\u5e03",text:"\u53d1\u5e03",depth:2},{id:"\u9884\u53d1\u5e03",text:"\u9884\u53d1\u5e03",depth:2}],d="\u7248\u672c\u7ba1\u7406\u4e0e\u53d1\u5e03",u="\"---\\nsidebar_position: 7\\n---\\n\\n# \u7248\u672c\u7ba1\u7406\u4e0e\u53d1\u5e03\\n\\n\u4e00\u4e2a npm \u7c7b\u578b\u7684\u6a21\u5757\u9879\u76ee\u53d1\u5e03\u6d41\u7a0b\u5305\u542b\u4e86\u4e24\u4e2a\u9636\u6bb5\uff1a\\n\\n- \u7b2c\u4e00\u9636\u6bb5\u662f\u5728\u5f00\u53d1\u671f\u95f4\uff0c\u5f00\u53d1\u8005\u9700\u8981\u63d0\u4f9b\u4e00\u4e2a\u53d8\u66f4\u6587\u4ef6\u6765\u8bb0\u5f55\u9700\u8981\u53d1\u5e03\u7684\u53d8\u52a8\uff1b\\n- \u7b2c\u4e8c\u9636\u6bb5\u662f\u5728\u53d1\u5e03\u671f\u95f4\uff0cModule Tools \u53ef\u4ee5\u6536\u96c6\u6240\u6709\u7684\u53d8\u66f4\u6587\u4ef6\u6765\u66f4\u65b0\u7248\u672c\u3001\u66f4\u65b0\u53d1\u5e03\u65e5\u5fd7\uff0c\u5e76\u53d1\u5e03\u65b0\u7684\u5305\u5230 [npm Registry](https://www.npmjs.com/) \u4e0a\u3002\\n\\n## \u8ddf\u8e2a\u53d8\u66f4\\n\\n**\u5f53\u9879\u76ee\u53d1\u751f\u53d8\u5316\u7684\u65f6\u5019\u9700\u8981\u5c06\u53d8\u5316\u7684\u5185\u5bb9\u8bb0\u5f55\u4e0b\u6765**\u3002\u9879\u76ee\u53d1\u751f\u7684\u53d8\u5316\u4e00\u822c\u662f\u6307\uff1a\\n\\n- \u65b0\u529f\u80fd\\n- \u4fee\u590d\u95ee\u9898\\n- \u914d\u7f6e\u6587\u4ef6\u4fee\u6539\\n- ...\\n\\n\u5f53\u8fd9\u4e9b\u53d8\u5316\u4e00\u65e6\u5b8c\u6210\u540e\uff0c\u9700\u8981\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u5bf9\u5f53\u524d\u7684\u53d8\u5316\u8fdb\u884c\u8bb0\u5f55\uff1a\\n\\n- [`modern change`](/guide/basic/command-preview#modern-change)\\n\\n\u6267\u884c `modern change` \u547d\u4ee4\u540e\u4f1a\u5411\u5f00\u53d1\u8005\u63d0\u51fa\u51e0\u4e2a\u95ee\u9898\uff0c\u5e76\u6839\u636e\u5f00\u53d1\u8005\u7684\u56de\u7b54\u751f\u6210\u53d8\u66f4\u8bb0\u5f55\u3002\u53d8\u66f4\u8bb0\u5f55\u6587\u4ef6\u5305\u542b\u4e86\u7248\u672c\u53d8\u5316\u7684\u7c7b\u578b\u548c\u5176\u63cf\u8ff0\uff0c\u8be5\u6587\u4ef6\u4f1a\u88ab\u63d0\u4ea4\u5230 git \u4ed3\u5e93\u4e2d\u3002\\n\\n```bash\\n$ npx modern change\\n\ud83e\udd8b What kind of change is this for module-example? (current version is 0.1.0) \xb7 patch\\n\ud83e\udd8b Please enter a summary for this change (this will be in the changelogs). Submit empty line to open external editor\\n\ud83e\udd8b Summary \xb7 publish test\\n\ud83e\udd8b === Releasing the following packages ===\\n\ud83e\udd8b [Patch]\\n\ud83e\udd8b module\\n\ud83e\udd8b Is this your desired changeset? (Y/n) \xb7 true\\n\ud83e\udd8b Changeset added! - you can now commit it\\n\ud83e\udd8b\\n\ud83e\udd8b If you want to modify or expand on the changeset summary, you can find it here\\n\ud83e\udd8b info /xxxxxx/module/.changeset/brave-dryers-agree.md\\n```\\n\\n\u5f53\u6267\u884c\u6210\u529f\u540e\uff0c\u751f\u6210\u7684\u5305\u542b\u53d8\u66f4\u8bb0\u5f55\u7684 Markdown \u6587\u4ef6\u4f1a\u4fdd\u5b58\u5728\u9879\u76ee\u7684 `.changeset` \u76ee\u5f55\u4e0b\u9762\u3002\u5176\u5185\u5bb9\u7c7b\u4f3c\u4e0b\u9762\u8fd9\u6837\uff1a\\n\\n```markdown .changeset/brave-dryers-agree.md\\n---\\n'module-example': patch\\n---\\n\\npublish test\\n```\\n\\n## \u7248\u672c\u66f4\u65b0\\n\\n\u5f53\u9700\u8981\u66f4\u65b0\u9879\u76ee\u7248\u672c\u7684\u65f6\u5019\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\\n\\n- [`modern bump`](/guide/basic/command-preview#modern-bump)\\n\\n\u6267\u884c `modern bump` \u5c06\u4f1a\u57fa\u4e8e `.changeset/` \u76ee\u5f55\u4e0b\u8bb0\u5f55\u4e86\u53d8\u66f4\u7684 Markdown \u6587\u4ef6\u5185\u5bb9\u6765\u4fee\u6539 `package.json` \u4e2d\u7684\u7248\u672c\u53f7\uff0c\u540c\u65f6\u751f\u6210 `CHANGELOG.md` \u6587\u4ef6\u3002**\u800c\u5f53\u7248\u672c\u66f4\u65b0\u5b8c\u6210\u540e\uff0c\u8fd9\u4e9b\u8bb0\u5f55\u53d8\u66f4\u7684 Markdown \u6587\u4ef6\u4e5f\u4f1a\u88ab\u5220\u9664\uff0c\u4e5f\u53ef\u8bf4\u8fd9\u4e9b Markdown \u6587\u4ef6\u88ab\u201c\u6d88\u8017\u201d\u6389\u4e86**\u3002\\n\\n```markdown CHANGELOG.md\\n# module\\n\\n## 0.1.1\\n\\n### Patch Changes\\n\\n- publish test\\n```\\n\\n## \u53d1\u5e03\\n\\n\u53d1\u5e03\u9879\u76ee\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\\n\\n- [`modern publish`](/guide/basic/command-preview#modern-release)\\n\\n`modern release` \u547d\u4ee4\u53ef\u4ee5\u5c06\u9879\u76ee\u53d1\u5e03\u5230 npm Registry\u3002\\n\\n\u6b64\u65f6\u53d1\u5e03\u7684\u662f `latest` \u7248\u672c\uff0c\u4e5f\u53ef\u4ee5\u8bf4\u662f\u6b63\u5f0f\u7248\u672c\u3002\u5982\u679c\u60f3\u8981\u4fee\u6539 `dist-tag`\uff0c\u53ef\u4ee5\u901a\u8fc7 `modern release --tag` \u547d\u4ee4\u6765\u6307\u5b9a\u3002\u4f8b\u5982\uff1a\\n\\n```bash\\nmodern release --tag beta\\n```\\n\\n\u4f46\u662f\u5982\u679c\u5e0c\u671b\u5c06\u5f53\u524d\u9879\u76ee\u7684\u7248\u672c\u53f7\u4e5f\u4fee\u6539\u4e3a\u9884\u53d1\u5e03\u7684\u7248\u672c\u53f7\uff0c\u5219\u9700\u8981\u4f7f\u7528 `modern pre` \u547d\u4ee4\u3002\\n\\n> \u6240\u8c13 `dist-tag`\uff0c\u53ef\u4ee5\u7406\u89e3\uff1a\u4e3a\u5f53\u524d\u53d1\u5e03\u7684\u7248\u672c\u6253\u6807\u7b7e\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u9ed8\u8ba4\u53d1\u5e03\u7684\u7248\u672c\u5bf9\u5e94\u7684 `dist-tag` \u4e3a `latest`\uff0c\u56e0\u6b64\u53ef\u4ee5\u628a `latest` \u8ba4\u4e3a\u662f\u6b63\u5f0f\u7248\u672c\u7684 `dist-tag`\u3002\\n\\n## \u9884\u53d1\u5e03\\n\\n\u5f53\u9700\u8981\u5728\u6b63\u5f0f\u53d1\u5e03\u4e4b\u524d\u8fdb\u884c\u9884\u53d1\u5e03\uff0c\u5219\u9700\u8981\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\\n\\n- [`modern pre`](/guide/basic/command-preview#modern-pre)\\n\\n\u9996\u5148 `modern pre enter <tag>` \u8fdb\u5165\u9884\u53d1\u5e03\u6a21\u5f0f\uff0c`<tag>` \u53ef\u4ee5\u4e0e\u53d1\u5e03\u9879\u76ee\u7684\u65f6\u5019\u4f7f\u7528 `modern release --tag` \u547d\u4ee4\u6307\u5b9a\u7684 `tag` \u4e00\u81f4\u3002\\n\\n```bash\\n$ npx modern pre enter next\\n\ud83e\udd8b success Entered pre mode with tag next\\n\ud83e\udd8b info Run `changeset version` to version packages with prerelease versions\\n\u2728 Done in 5.30s.\\n```\\n\\n\u63a5\u7740\u53ef\u4ee5\u4f7f\u7528 `modern bump` \u547d\u4ee4\u66f4\u65b0\u5177\u4f53\u7684\u7248\u672c\u53f7\uff0c**\u6b64\u65f6\u4e0d\u4f1a\u771f\u6b63\u7684\u201c\u6d88\u8017\u201d\u8bb0\u5f55\u53d8\u66f4\u7684 Markdown \u6587\u4ef6**\uff1a\\n\\n```bash\\n$ npx modern bump\\n\ud83e\udd8b warn ===============================IMPORTANT!===============================\\n\ud83e\udd8b warn You are in prerelease mode\\n\ud83e\udd8b warn If you meant to do a normal release you should revert these changes and run `changeset pre exit`\\n\ud83e\udd8b warn You can then run `changeset version` again to do a normal release\\n\ud83e\udd8b warn ----------------------------------------------------------------------\\n\ud83e\udd8b All files have been updated. Review them and commit at your leisure\\n```\\n\\n\u7136\u540e\u53ef\u4ee5\u770b\u5230 `package.json` \u4e2d\u66f4\u65b0\u7684\u7248\u672c\u53f7\u4f1a\u7c7b\u4f3c\u8fd9\u6837\uff1a`0.1.2-next.0`\u3002\\n\\n\u6700\u540e\uff0c**\u5982\u679c\u4e0d\u9700\u8981\u518d\u8fdb\u884c\u9884\u53d1\u5e03\uff0c\u5219\u4e00\u5b9a\u8981\u6267\u884c `modern pre exit` \u547d\u4ee4**\uff0c\u8fd9\u6837\u53ef\u4ee5\u9000\u51fa\u9884\u53d1\u5e03\u72b6\u6001\uff0c\u5e76\u4e14\u5f53\u518d\u6b21\u6267\u884c `modern bump` \u547d\u4ee4\u7684\u65f6\u5019\uff0c\u5c31\u53ef\u4ee5\u53d1\u5e03\u6b63\u5f0f\u7684\u7248\u672c\u3002\\n\"";function g(e){const o=Object.assign({h1:"h1",a:"a",p:"p",ul:"ul",li:"li",h2:"h2",strong:"strong",code:"code",blockquote:"blockquote"},e.components);return a||l("CH",!1),a.Code||l("CH.Code",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.h1,{id:"\u7248\u672c\u7ba1\u7406\u4e0e\u53d1\u5e03",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u7248\u672c\u7ba1\u7406\u4e0e\u53d1\u5e03",children:"#"}),"\u7248\u672c\u7ba1\u7406\u4e0e\u53d1\u5e03"]}),"\n",(0,n.jsx)(o.p,{children:"\u4e00\u4e2a npm \u7c7b\u578b\u7684\u6a21\u5757\u9879\u76ee\u53d1\u5e03\u6d41\u7a0b\u5305\u542b\u4e86\u4e24\u4e2a\u9636\u6bb5\uff1a"}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsx)(o.li,{children:"\u7b2c\u4e00\u9636\u6bb5\u662f\u5728\u5f00\u53d1\u671f\u95f4\uff0c\u5f00\u53d1\u8005\u9700\u8981\u63d0\u4f9b\u4e00\u4e2a\u53d8\u66f4\u6587\u4ef6\u6765\u8bb0\u5f55\u9700\u8981\u53d1\u5e03\u7684\u53d8\u52a8\uff1b"}),"\n",(0,n.jsxs)(o.li,{children:["\u7b2c\u4e8c\u9636\u6bb5\u662f\u5728\u53d1\u5e03\u671f\u95f4\uff0cModule Tools \u53ef\u4ee5\u6536\u96c6\u6240\u6709\u7684\u53d8\u66f4\u6587\u4ef6\u6765\u66f4\u65b0\u7248\u672c\u3001\u66f4\u65b0\u53d1\u5e03\u65e5\u5fd7\uff0c\u5e76\u53d1\u5e03\u65b0\u7684\u5305\u5230 ",(0,n.jsx)(o.a,{href:"https://www.npmjs.com/",target:"_blank",rel:"nofollow",children:"npm Registry"})," \u4e0a\u3002"]}),"\n"]}),"\n",(0,n.jsxs)(o.h2,{id:"\u8ddf\u8e2a\u53d8\u66f4",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u8ddf\u8e2a\u53d8\u66f4",children:"#"}),"\u8ddf\u8e2a\u53d8\u66f4"]}),"\n",(0,n.jsxs)(o.p,{children:[(0,n.jsx)(o.strong,{children:"\u5f53\u9879\u76ee\u53d1\u751f\u53d8\u5316\u7684\u65f6\u5019\u9700\u8981\u5c06\u53d8\u5316\u7684\u5185\u5bb9\u8bb0\u5f55\u4e0b\u6765"}),"\u3002\u9879\u76ee\u53d1\u751f\u7684\u53d8\u5316\u4e00\u822c\u662f\u6307\uff1a"]}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsx)(o.li,{children:"\u65b0\u529f\u80fd"}),"\n",(0,n.jsx)(o.li,{children:"\u4fee\u590d\u95ee\u9898"}),"\n",(0,n.jsx)(o.li,{children:"\u914d\u7f6e\u6587\u4ef6\u4fee\u6539"}),"\n",(0,n.jsx)(o.li,{children:"..."}),"\n"]}),"\n",(0,n.jsx)(o.p,{children:"\u5f53\u8fd9\u4e9b\u53d8\u5316\u4e00\u65e6\u5b8c\u6210\u540e\uff0c\u9700\u8981\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u5bf9\u5f53\u524d\u7684\u53d8\u5316\u8fdb\u884c\u8bb0\u5f55\uff1a"}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsx)(o.li,{children:(0,n.jsx)(o.a,{href:"/module-tools/guide/basic/command-preview.html#modern-change-2",children:(0,n.jsx)(o.code,{children:"modern change"})})}),"\n"]}),"\n",(0,n.jsxs)(o.p,{children:["\u6267\u884c ",(0,n.jsx)(o.code,{children:"modern change"})," \u547d\u4ee4\u540e\u4f1a\u5411\u5f00\u53d1\u8005\u63d0\u51fa\u51e0\u4e2a\u95ee\u9898\uff0c\u5e76\u6839\u636e\u5f00\u53d1\u8005\u7684\u56de\u7b54\u751f\u6210\u53d8\u66f4\u8bb0\u5f55\u3002\u53d8\u66f4\u8bb0\u5f55\u6587\u4ef6\u5305\u542b\u4e86\u7248\u672c\u53d8\u5316\u7684\u7c7b\u578b\u548c\u5176\u63cf\u8ff0\uff0c\u8be5\u6587\u4ef6\u4f1a\u88ab\u63d0\u4ea4\u5230 git \u4ed3\u5e93\u4e2d\u3002"]}),"\n",(0,n.jsx)(a.Code,{codeConfig:i,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"$ npx modern change",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b What kind of change is this ",props:{style:{color:"#D8DEE9FF"}}},{content:"for",props:{style:{color:"#81A1C1"}}},{content:" module-example",props:{style:{color:"#D8DEE9FF"}}},{content:"?",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"(",props:{style:{color:"#ECEFF4"}}},{content:"current version is 0.1.0",props:{style:{color:"#D8DEE9FF"}}},{content:")",props:{style:{color:"#ECEFF4"}}},{content:" \xb7 patch",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b Please enter a summary ",props:{style:{color:"#D8DEE9FF"}}},{content:"for",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"this change (this will be",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"in",props:{style:{color:"#81A1C1"}}},{content:" the changelogs). Submit empty line to open external editor",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b Summary \xb7 publish ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"\ud83e\udd8b === Releasing the following packages ===",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b ",props:{style:{color:"#D8DEE9FF"}}},{content:"[",props:{style:{color:"#ECEFF4"}}},{content:"Patch",props:{style:{color:"#D8DEE9FF"}}},{content:"]",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"\ud83e\udd8b module",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b Is this your desired changeset",props:{style:{color:"#D8DEE9FF"}}},{content:"?",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"(",props:{style:{color:"#ECEFF4"}}},{content:"Y/n",props:{style:{color:"#D8DEE9FF"}}},{content:")",props:{style:{color:"#ECEFF4"}}},{content:" \xb7 ",props:{style:{color:"#D8DEE9FF"}}},{content:"true",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"\ud83e\udd8b Changeset added",props:{style:{color:"#D8DEE9FF"}}},{content:"!",props:{style:{color:"#81A1C1"}}},{content:" - you can now commit it",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b If you want to modify or expand on the changeset summary, you can find it here",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b info /xxxxxx/module/.changeset/brave-dryers-agree.md",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),"\n",(0,n.jsxs)(o.p,{children:["\u5f53\u6267\u884c\u6210\u529f\u540e\uff0c\u751f\u6210\u7684\u5305\u542b\u53d8\u66f4\u8bb0\u5f55\u7684 Markdown \u6587\u4ef6\u4f1a\u4fdd\u5b58\u5728\u9879\u76ee\u7684 ",(0,n.jsx)(o.code,{children:".changeset"})," \u76ee\u5f55\u4e0b\u9762\u3002\u5176\u5185\u5bb9\u7c7b\u4f3c\u4e0b\u9762\u8fd9\u6837\uff1a"]}),"\n",(0,n.jsx)(a.Code,{codeConfig:i,northPanel:{tabs:[".changeset/brave-dryers-agree.md"],active:".changeset/brave-dryers-agree.md",heightRatio:1},files:[{name:".changeset/brave-dryers-agree.md",focus:"",code:{lines:[{tokens:[{content:"---",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"'",props:{style:{color:"#81A1C1"}}},{content:"module-example",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#81A1C1"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"patch",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"---",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[]},{tokens:[{content:"publish test",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"markdown"},annotations:[]}]}),"\n",(0,n.jsxs)(o.h2,{id:"\u7248\u672c\u66f4\u65b0",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u7248\u672c\u66f4\u65b0",children:"#"}),"\u7248\u672c\u66f4\u65b0"]}),"\n",(0,n.jsx)(o.p,{children:"\u5f53\u9700\u8981\u66f4\u65b0\u9879\u76ee\u7248\u672c\u7684\u65f6\u5019\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a"}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsx)(o.li,{children:(0,n.jsx)(o.a,{href:"/module-tools/guide/basic/command-preview.html#modern-bump-2",children:(0,n.jsx)(o.code,{children:"modern bump"})})}),"\n"]}),"\n",(0,n.jsxs)(o.p,{children:["\u6267\u884c ",(0,n.jsx)(o.code,{children:"modern bump"})," \u5c06\u4f1a\u57fa\u4e8e ",(0,n.jsx)(o.code,{children:".changeset/"})," \u76ee\u5f55\u4e0b\u8bb0\u5f55\u4e86\u53d8\u66f4\u7684 Markdown \u6587\u4ef6\u5185\u5bb9\u6765\u4fee\u6539 ",(0,n.jsx)(o.code,{children:"package.json"})," \u4e2d\u7684\u7248\u672c\u53f7\uff0c\u540c\u65f6\u751f\u6210 ",(0,n.jsx)(o.code,{children:"CHANGELOG.md"})," \u6587\u4ef6\u3002",(0,n.jsx)(o.strong,{children:"\u800c\u5f53\u7248\u672c\u66f4\u65b0\u5b8c\u6210\u540e\uff0c\u8fd9\u4e9b\u8bb0\u5f55\u53d8\u66f4\u7684 Markdown \u6587\u4ef6\u4e5f\u4f1a\u88ab\u5220\u9664\uff0c\u4e5f\u53ef\u8bf4\u8fd9\u4e9b Markdown \u6587\u4ef6\u88ab\u201c\u6d88\u8017\u201d\u6389\u4e86"}),"\u3002"]}),"\n",(0,n.jsx)(a.Code,{codeConfig:i,northPanel:{tabs:["CHANGELOG.md"],active:"CHANGELOG.md",heightRatio:1},files:[{name:"CHANGELOG.md",focus:"",code:{lines:[{tokens:[{content:"#",props:{style:{color:"#81A1C1"}}},{content:" module",props:{style:{color:"#88C0D0"}}}]},{tokens:[]},{tokens:[{content:"##",props:{style:{color:"#81A1C1"}}},{content:" 0.1.1",props:{style:{color:"#88C0D0"}}}]},{tokens:[]},{tokens:[{content:"###",props:{style:{color:"#81A1C1"}}},{content:" Patch Changes",props:{style:{color:"#88C0D0"}}}]},{tokens:[]},{tokens:[{content:"-",props:{style:{color:"#ECEFF4"}}},{content:" publish test",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"markdown"},annotations:[]}]}),"\n",(0,n.jsxs)(o.h2,{id:"\u53d1\u5e03",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u53d1\u5e03",children:"#"}),"\u53d1\u5e03"]}),"\n",(0,n.jsx)(o.p,{children:"\u53d1\u5e03\u9879\u76ee\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a"}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsx)(o.li,{children:(0,n.jsx)(o.a,{href:"/module-tools/guide/basic/command-preview.html#modern-release-2",children:(0,n.jsx)(o.code,{children:"modern publish"})})}),"\n"]}),"\n",(0,n.jsxs)(o.p,{children:[(0,n.jsx)(o.code,{children:"modern release"})," \u547d\u4ee4\u53ef\u4ee5\u5c06\u9879\u76ee\u53d1\u5e03\u5230 npm Registry\u3002"]}),"\n",(0,n.jsxs)(o.p,{children:["\u6b64\u65f6\u53d1\u5e03\u7684\u662f ",(0,n.jsx)(o.code,{children:"latest"})," \u7248\u672c\uff0c\u4e5f\u53ef\u4ee5\u8bf4\u662f\u6b63\u5f0f\u7248\u672c\u3002\u5982\u679c\u60f3\u8981\u4fee\u6539 ",(0,n.jsx)(o.code,{children:"dist-tag"}),"\uff0c\u53ef\u4ee5\u901a\u8fc7 ",(0,n.jsx)(o.code,{children:"modern release --tag"})," \u547d\u4ee4\u6765\u6307\u5b9a\u3002\u4f8b\u5982\uff1a"]}),"\n",(0,n.jsx)(a.Code,{codeConfig:i,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"modern release --tag beta",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),"\n",(0,n.jsxs)(o.p,{children:["\u4f46\u662f\u5982\u679c\u5e0c\u671b\u5c06\u5f53\u524d\u9879\u76ee\u7684\u7248\u672c\u53f7\u4e5f\u4fee\u6539\u4e3a\u9884\u53d1\u5e03\u7684\u7248\u672c\u53f7\uff0c\u5219\u9700\u8981\u4f7f\u7528 ",(0,n.jsx)(o.code,{children:"modern pre"})," \u547d\u4ee4\u3002"]}),"\n",(0,n.jsxs)(o.blockquote,{children:["\n",(0,n.jsxs)(o.p,{children:["\u6240\u8c13 ",(0,n.jsx)(o.code,{children:"dist-tag"}),"\uff0c\u53ef\u4ee5\u7406\u89e3\uff1a\u4e3a\u5f53\u524d\u53d1\u5e03\u7684\u7248\u672c\u6253\u6807\u7b7e\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u9ed8\u8ba4\u53d1\u5e03\u7684\u7248\u672c\u5bf9\u5e94\u7684 ",(0,n.jsx)(o.code,{children:"dist-tag"})," \u4e3a ",(0,n.jsx)(o.code,{children:"latest"}),"\uff0c\u56e0\u6b64\u53ef\u4ee5\u628a ",(0,n.jsx)(o.code,{children:"latest"})," \u8ba4\u4e3a\u662f\u6b63\u5f0f\u7248\u672c\u7684 ",(0,n.jsx)(o.code,{children:"dist-tag"}),"\u3002"]}),"\n"]}),"\n",(0,n.jsxs)(o.h2,{id:"\u9884\u53d1\u5e03",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u9884\u53d1\u5e03",children:"#"}),"\u9884\u53d1\u5e03"]}),"\n",(0,n.jsx)(o.p,{children:"\u5f53\u9700\u8981\u5728\u6b63\u5f0f\u53d1\u5e03\u4e4b\u524d\u8fdb\u884c\u9884\u53d1\u5e03\uff0c\u5219\u9700\u8981\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a"}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsx)(o.li,{children:(0,n.jsx)(o.a,{href:"/module-tools/guide/basic/command-preview.html#modern-pre-2",children:(0,n.jsx)(o.code,{children:"modern pre"})})}),"\n"]}),"\n",(0,n.jsxs)(o.p,{children:["\u9996\u5148 ",(0,n.jsx)(o.code,{children:"modern pre enter <tag>"})," \u8fdb\u5165\u9884\u53d1\u5e03\u6a21\u5f0f\uff0c",(0,n.jsx)(o.code,{children:"<tag>"})," \u53ef\u4ee5\u4e0e\u53d1\u5e03\u9879\u76ee\u7684\u65f6\u5019\u4f7f\u7528 ",(0,n.jsx)(o.code,{children:"modern release --tag"})," \u547d\u4ee4\u6307\u5b9a\u7684 ",(0,n.jsx)(o.code,{children:"tag"})," \u4e00\u81f4\u3002"]}),"\n",(0,n.jsx)(a.Code,{codeConfig:i,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"$ npx modern pre enter next",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b success Entered pre mode with tag next",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b info Run ",props:{style:{color:"#D8DEE9FF"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:"changeset version",props:{style:{color:"#A3BE8C"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:" to version packages with prerelease versions",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u2728 Done ",props:{style:{color:"#D8DEE9FF"}}},{content:"in",props:{style:{color:"#81A1C1"}}},{content:" 5.30s.",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),"\n",(0,n.jsxs)(o.p,{children:["\u63a5\u7740\u53ef\u4ee5\u4f7f\u7528 ",(0,n.jsx)(o.code,{children:"modern bump"})," \u547d\u4ee4\u66f4\u65b0\u5177\u4f53\u7684\u7248\u672c\u53f7\uff0c",(0,n.jsx)(o.strong,{children:"\u6b64\u65f6\u4e0d\u4f1a\u771f\u6b63\u7684\u201c\u6d88\u8017\u201d\u8bb0\u5f55\u53d8\u66f4\u7684 Markdown \u6587\u4ef6"}),"\uff1a"]}),"\n",(0,n.jsx)(a.Code,{codeConfig:i,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"$ npx modern bump",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b warn ===============================IMPORTANT",props:{style:{color:"#D8DEE9FF"}}},{content:"!",props:{style:{color:"#81A1C1"}}},{content:"===============================",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b warn You are ",props:{style:{color:"#D8DEE9FF"}}},{content:"in",props:{style:{color:"#81A1C1"}}},{content:" prerelease mode",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b warn If you meant to ",props:{style:{color:"#D8DEE9FF"}}},{content:"do",props:{style:{color:"#81A1C1"}}},{content:" a normal release you should revert these changes and run ",props:{style:{color:"#D8DEE9FF"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:"changeset pre exit",props:{style:{color:"#A3BE8C"}}},{content:"`",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"\ud83e\udd8b warn You can ",props:{style:{color:"#D8DEE9FF"}}},{content:"then",props:{style:{color:"#81A1C1"}}},{content:" run ",props:{style:{color:"#D8DEE9FF"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:"changeset version",props:{style:{color:"#A3BE8C"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:" again to ",props:{style:{color:"#D8DEE9FF"}}},{content:"do",props:{style:{color:"#81A1C1"}}},{content:" a normal release",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b warn ----------------------------------------------------------------------",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\ud83e\udd8b All files have been updated. Review them and commit at your leisure",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),"\n",(0,n.jsxs)(o.p,{children:["\u7136\u540e\u53ef\u4ee5\u770b\u5230 ",(0,n.jsx)(o.code,{children:"package.json"})," \u4e2d\u66f4\u65b0\u7684\u7248\u672c\u53f7\u4f1a\u7c7b\u4f3c\u8fd9\u6837\uff1a",(0,n.jsx)(o.code,{children:"0.1.2-next.0"}),"\u3002"]}),"\n",(0,n.jsxs)(o.p,{children:["\u6700\u540e\uff0c",(0,n.jsxs)(o.strong,{children:["\u5982\u679c\u4e0d\u9700\u8981\u518d\u8fdb\u884c\u9884\u53d1\u5e03\uff0c\u5219\u4e00\u5b9a\u8981\u6267\u884c ",(0,n.jsx)(o.code,{children:"modern pre exit"})," \u547d\u4ee4"]}),"\uff0c\u8fd9\u6837\u53ef\u4ee5\u9000\u51fa\u9884\u53d1\u5e03\u72b6\u6001\uff0c\u5e76\u4e14\u5f53\u518d\u6b21\u6267\u884c ",(0,n.jsx)(o.code,{children:"modern bump"})," \u547d\u4ee4\u7684\u65f6\u5019\uff0c\u5c31\u53ef\u4ee5\u53d1\u5e03\u6b63\u5f0f\u7684\u7248\u672c\u3002"]})]})}function l(e,o){throw new Error("Expected "+(o?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}o.default=function(e={}){const{wrapper:o}=e.components||{};return o?(0,n.jsx)(o,Object.assign({},e,{children:(0,n.jsx)(g,e)})):g(e)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_modern_js_module_tools_docs=self.webpackChunk_modern_js_module_tools_docs||[]).push([[5966],{83703:function(e,o,t){t.r(o),t.d(o,{CH:function(){return s},chCodeConfig:function(){return c},content:function(){return l},frontmatter:function(){return i},title:function(){return d},toc:function(){return a}});var n=t(97458),r=t(53799);const s={annotations:r.ds,Code:r.EK,Spotlight:r.$1,CodeSlot:r.Af},c={staticMediaQuery:"not screen, (max-width: 768px)",theme:{name:"nord",type:"dark",semanticHighlighting:!0,colors:{focusBorder:"#3b4252",foreground:"#d8dee9","activityBar.background":"#2e3440","activityBar.dropBackground":"#3b4252","activityBar.foreground":"#d8dee9","activityBar.activeBorder":"#88c0d0","activityBar.activeBackground":"#3b4252","activityBarBadge.background":"#88c0d0","activityBarBadge.foreground":"#2e3440","badge.foreground":"#2e3440","badge.background":"#88c0d0","button.background":"#88c0d0ee","button.foreground":"#2e3440","button.hoverBackground":"#88c0d0","button.secondaryBackground":"#434c5e","button.secondaryForeground":"#d8dee9","button.secondaryHoverBackground":"#4c566a","charts.red":"#bf616a","charts.blue":"#81a1c1","charts.yellow":"#ebcb8b","charts.orange":"#d08770","charts.green":"#a3be8c","charts.purple":"#b48ead","charts.foreground":"#d8dee9","charts.lines":"#88c0d0","debugConsole.infoForeground":"#88c0d0","debugConsole.warningForeground":"#ebcb8b","debugConsole.errorForeground":"#bf616a","debugConsole.sourceForeground":"#616e88","debugConsoleInputIcon.foreground":"#81a1c1","debugExceptionWidget.background":"#4c566a","debugExceptionWidget.border":"#2e3440","debugToolBar.background":"#3b4252",descriptionForeground:"#d8dee9e6","diffEditor.insertedTextBackground":"#81a1c133","diffEditor.removedTextBackground":"#bf616a4d","dropdown.background":"#3b4252","dropdown.border":"#3b4252","dropdown.foreground":"#d8dee9","editorActiveLineNumber.foreground":"#d8dee9cc","editorCursor.foreground":"#d8dee9","editorHint.border":"#ebcb8b00","editorHint.foreground":"#ebcb8b","editorIndentGuide.background":"#434c5eb3","editorIndentGuide.activeBackground":"#4c566a","editorInlayHint.background":"#434c5e","editorInlayHint.foreground":"#d8dee9","editorLineNumber.foreground":"#4c566a","editorLineNumber.activeForeground":"#d8dee9","editorWhitespace.foreground":"#4c566ab3","editorWidget.background":"#2e3440","editorWidget.border":"#3b4252","editor.background":"#2e3440","editor.foreground":"#d8dee9","editor.hoverHighlightBackground":"#3b4252","editor.findMatchBackground":"#88c0d066","editor.findMatchHighlightBackground":"#88c0d033","editor.findRangeHighlightBackground":"#88c0d033","editor.lineHighlightBackground":"#3b4252","editor.lineHighlightBorder":"#3b4252","editor.inactiveSelectionBackground":"#434c5ecc","editor.inlineValuesBackground":"#4c566a","editor.inlineValuesForeground":"#eceff4","editor.selectionBackground":"#434c5ecc","editor.selectionHighlightBackground":"#434c5ecc","editor.rangeHighlightBackground":"#434c5e52","editor.wordHighlightBackground":"#81a1c166","editor.wordHighlightStrongBackground":"#81a1c199","editor.stackFrameHighlightBackground":"#5e81ac","editor.focusedStackFrameHighlightBackground":"#5e81ac","editorError.foreground":"#bf616a","editorError.border":"#bf616a00","editorWarning.foreground":"#ebcb8b","editorWarning.border":"#ebcb8b00","editorBracketMatch.background":"#2e344000","editorBracketMatch.border":"#88c0d0","editorBracketHighlight.foreground1":"#8fbcbb","editorBracketHighlight.foreground2":"#88c0d0","editorBracketHighlight.foreground3":"#81a1c1","editorBracketHighlight.foreground4":"#5e81ac","editorBracketHighlight.foreground5":"#8fbcbb","editorBracketHighlight.foreground6":"#88c0d0","editorBracketHighlight.unexpectedBracket.foreground":"#bf616a","editorCodeLens.foreground":"#4c566a","editorGroup.background":"#2e3440","editorGroup.border":"#3b425201","editorGroup.dropBackground":"#3b425299","editorGroupHeader.border":"#3b425200","editorGroupHeader.noTabsBackground":"#2e3440","editorGroupHeader.tabsBackground":"#2e3440","editorGroupHeader.tabsBorder":"#3b425200","editorGutter.background":"#2e3440","editorGutter.modifiedBackground":"#ebcb8b","editorGutter.addedBackground":"#a3be8c","editorGutter.deletedBackground":"#bf616a","editorHoverWidget.background":"#3b4252","editorHoverWidget.border":"#3b4252","editorLink.activeForeground":"#88c0d0","editorMarkerNavigation.background":"#5e81acc0","editorMarkerNavigationError.background":"#bf616ac0","editorMarkerNavigationWarning.background":"#ebcb8bc0","editorOverviewRuler.border":"#3b4252","editorOverviewRuler.currentContentForeground":"#3b4252","editorOverviewRuler.incomingContentForeground":"#3b4252","editorOverviewRuler.findMatchForeground":"#88c0d066","editorOverviewRuler.rangeHighlightForeground":"#88c0d066","editorOverviewRuler.selectionHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightStrongForeground":"#88c0d066","editorOverviewRuler.modifiedForeground":"#ebcb8b","editorOverviewRuler.addedForeground":"#a3be8c","editorOverviewRuler.deletedForeground":"#bf616a","editorOverviewRuler.errorForeground":"#bf616a","editorOverviewRuler.warningForeground":"#ebcb8b","editorOverviewRuler.infoForeground":"#81a1c1","editorRuler.foreground":"#434c5e","editorSuggestWidget.background":"#2e3440","editorSuggestWidget.border":"#3b4252","editorSuggestWidget.foreground":"#d8dee9","editorSuggestWidget.focusHighlightForeground":"#88c0d0","editorSuggestWidget.highlightForeground":"#88c0d0","editorSuggestWidget.selectedBackground":"#434c5e","editorSuggestWidget.selectedForeground":"#d8dee9","extensionButton.prominentForeground":"#d8dee9","extensionButton.prominentBackground":"#434c5e","extensionButton.prominentHoverBackground":"#4c566a",errorForeground:"#bf616a","gitDecoration.modifiedResourceForeground":"#ebcb8b","gitDecoration.deletedResourceForeground":"#bf616a","gitDecoration.untrackedResourceForeground":"#a3be8c","gitDecoration.ignoredResourceForeground":"#d8dee966","gitDecoration.conflictingResourceForeground":"#5e81ac","gitDecoration.submoduleResourceForeground":"#8fbcbb","gitDecoration.stageDeletedResourceForeground":"#bf616a","gitDecoration.stageModifiedResourceForeground":"#ebcb8b","input.background":"#3b4252","input.foreground":"#d8dee9","input.placeholderForeground":"#d8dee999","input.border":"#3b4252","inputOption.activeBackground":"#5e81ac","inputOption.activeBorder":"#5e81ac","inputOption.activeForeground":"#eceff4","inputValidation.errorBackground":"#bf616a","inputValidation.errorBorder":"#bf616a","inputValidation.infoBackground":"#81a1c1","inputValidation.infoBorder":"#81a1c1","inputValidation.warningBackground":"#d08770","inputValidation.warningBorder":"#d08770","keybindingLabel.background":"#4c566a","keybindingLabel.border":"#4c566a","keybindingLabel.bottomBorder":"#4c566a","keybindingLabel.foreground":"#d8dee9","list.activeSelectionBackground":"#88c0d0","list.activeSelectionForeground":"#2e3440","list.inactiveSelectionBackground":"#434c5e","list.inactiveSelectionForeground":"#d8dee9","list.inactiveFocusBackground":"#434c5ecc","list.hoverForeground":"#eceff4","list.focusForeground":"#d8dee9","list.focusBackground":"#88c0d099","list.focusHighlightForeground":"#eceff4","list.hoverBackground":"#3b4252","list.dropBackground":"#88c0d099","list.highlightForeground":"#88c0d0","list.errorForeground":"#bf616a","list.warningForeground":"#ebcb8b","merge.currentHeaderBackground":"#81a1c166","merge.currentContentBackground":"#81a1c14d","merge.incomingHeaderBackground":"#8fbcbb66","merge.incomingContentBackground":"#8fbcbb4d","merge.border":"#3b425200","minimap.background":"#2e3440","minimap.errorHighlight":"#bf616acc","minimap.findMatchHighlight":"#88c0d0","minimap.selectionHighlight":"#88c0d0cc","minimap.warningHighlight":"#ebcb8bcc","minimapGutter.addedBackground":"#a3be8c","minimapGutter.deletedBackground":"#bf616a","minimapGutter.modifiedBackground":"#ebcb8b","minimapSlider.activeBackground":"#434c5eaa","minimapSlider.background":"#434c5e99","minimapSlider.hoverBackground":"#434c5eaa","notification.background":"#3b4252","notification.buttonBackground":"#434c5e","notification.buttonForeground":"#d8dee9","notification.buttonHoverBackground":"#4c566a","notification.errorBackground":"#bf616a","notification.errorForeground":"#2e3440","notification.foreground":"#d8dee9","notification.infoBackground":"#88c0d0","notification.infoForeground":"#2e3440","notification.warningBackground":"#ebcb8b","notification.warningForeground":"#2e3440","notificationCenter.border":"#3b425200","notificationCenterHeader.background":"#2e3440","notificationCenterHeader.foreground":"#88c0d0","notificationLink.foreground":"#88c0d0","notifications.background":"#3b4252","notifications.border":"#2e3440","notifications.foreground":"#d8dee9","notificationToast.border":"#3b425200","panel.background":"#2e3440","panel.border":"#3b4252","panelTitle.activeBorder":"#88c0d000","panelTitle.activeForeground":"#88c0d0","panelTitle.inactiveForeground":"#d8dee9","peekView.border":"#4c566a","peekViewEditor.background":"#2e3440","peekViewEditorGutter.background":"#2e3440","peekViewEditor.matchHighlightBackground":"#88c0d04d","peekViewResult.background":"#2e3440","peekViewResult.fileForeground":"#88c0d0","peekViewResult.lineForeground":"#d8dee966","peekViewResult.matchHighlightBackground":"#88c0d0cc","peekViewResult.selectionBackground":"#434c5e","peekViewResult.selectionForeground":"#d8dee9","peekViewTitle.background":"#3b4252","peekViewTitleDescription.foreground":"#d8dee9","peekViewTitleLabel.foreground":"#88c0d0","pickerGroup.border":"#3b4252","pickerGroup.foreground":"#88c0d0","progressBar.background":"#88c0d0","quickInputList.focusBackground":"#88c0d0","quickInputList.focusForeground":"#2e3440","sash.hoverBorder":"#88c0d0","scrollbar.shadow":"#00000066","scrollbarSlider.activeBackground":"#434c5eaa","scrollbarSlider.background":"#434c5e99","scrollbarSlider.hoverBackground":"#434c5eaa","selection.background":"#88c0d099","sideBar.background":"#2e3440","sideBar.foreground":"#d8dee9","sideBar.border":"#3b4252","sideBarSectionHeader.background":"#3b4252","sideBarSectionHeader.foreground":"#d8dee9","sideBarTitle.foreground":"#d8dee9","statusBar.background":"#3b4252","statusBar.debuggingBackground":"#5e81ac","statusBar.debuggingForeground":"#d8dee9","statusBar.noFolderForeground":"#d8dee9","statusBar.noFolderBackground":"#3b4252","statusBar.foreground":"#d8dee9","statusBarItem.activeBackground":"#4c566a","statusBarItem.hoverBackground":"#434c5e","statusBarItem.prominentBackground":"#3b4252","statusBarItem.prominentHoverBackground":"#434c5e","statusBarItem.errorBackground":"#3b4252","statusBarItem.errorForeground":"#bf616a","statusBarItem.warningBackground":"#ebcb8b","statusBarItem.warningForeground":"#2e3440","statusBar.border":"#3b425200","tab.activeBackground":"#3b4252","tab.activeForeground":"#d8dee9","tab.border":"#3b425200","tab.activeBorder":"#88c0d000","tab.unfocusedActiveBorder":"#88c0d000","tab.inactiveBackground":"#2e3440","tab.inactiveForeground":"#d8dee966","tab.unfocusedActiveForeground":"#d8dee999","tab.unfocusedInactiveForeground":"#d8dee966","tab.hoverBackground":"#3b4252cc","tab.unfocusedHoverBackground":"#3b4252b3","tab.hoverBorder":"#88c0d000","tab.unfocusedHoverBorder":"#88c0d000","tab.activeBorderTop":"#88c0d000","tab.unfocusedActiveBorderTop":"#88c0d000","tab.lastPinnedBorder":"#4c566a","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.ansiBlack":"#3b4252","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#ebcb8b","terminal.ansiBlue":"#81a1c1","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0","terminal.ansiBrightBlack":"#4c566a","terminal.ansiBrightRed":"#bf616a","terminal.ansiBrightGreen":"#a3be8c","terminal.ansiBrightYellow":"#ebcb8b","terminal.ansiBrightBlue":"#81a1c1","terminal.ansiBrightMagenta":"#b48ead","terminal.ansiBrightCyan":"#8fbcbb","terminal.ansiBrightWhite":"#eceff4","terminal.tab.activeBorder":"#88c0d0","textBlockQuote.background":"#3b4252","textBlockQuote.border":"#81a1c1","textCodeBlock.background":"#4c566a","textLink.activeForeground":"#88c0d0","textLink.foreground":"#88c0d0","textPreformat.foreground":"#8fbcbb","textSeparator.foreground":"#eceff4","titleBar.activeBackground":"#2e3440","titleBar.activeForeground":"#d8dee9","titleBar.border":"#2e344000","titleBar.inactiveBackground":"#2e3440","titleBar.inactiveForeground":"#d8dee966","tree.indentGuidesStroke":"#616e88","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonBackground":"#434c5e","welcomePage.buttonHoverBackground":"#4c566a","widget.shadow":"#00000066"},tokenColors:[{settings:{foreground:"#d8dee9ff",background:"#2e3440ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{name:"Comment",scope:"comment",settings:{foreground:"#616E88"}},{name:"Constant Character",scope:"constant.character",settings:{foreground:"#EBCB8B"}},{name:"Constant Character Escape",scope:"constant.character.escape",settings:{foreground:"#EBCB8B"}},{name:"Constant Language",scope:"constant.language",settings:{foreground:"#81A1C1"}},{name:"Constant Numeric",scope:"constant.numeric",settings:{foreground:"#B48EAD"}},{name:"Constant Regexp",scope:"constant.regexp",settings:{foreground:"#EBCB8B"}},{name:"Entity Name Class/Type",scope:["entity.name.class","entity.name.type.class"],settings:{foreground:"#8FBCBB"}},{name:"Entity Name Function",scope:"entity.name.function",settings:{foreground:"#88C0D0"}},{name:"Entity Name Tag",scope:"entity.name.tag",settings:{foreground:"#81A1C1"}},{name:"Entity Other Attribute Name",scope:"entity.other.attribute-name",settings:{foreground:"#8FBCBB"}},{name:"Entity Other Inherited Class",scope:"entity.other.inherited-class",settings:{fontStyle:"bold",foreground:"#8FBCBB"}},{name:"Invalid Deprecated",scope:"invalid.deprecated",settings:{foreground:"#D8DEE9",background:"#EBCB8B"}},{name:"Invalid Illegal",scope:"invalid.illegal",settings:{foreground:"#D8DEE9",background:"#BF616A"}},{name:"Keyword",scope:"keyword",settings:{foreground:"#81A1C1"}},{name:"Keyword Operator",scope:"keyword.operator",settings:{foreground:"#81A1C1"}},{name:"Keyword Other New",scope:"keyword.other.new",settings:{foreground:"#81A1C1"}},{name:"Markup Bold",scope:"markup.bold",settings:{fontStyle:"bold"}},{name:"Markup Changed",scope:"markup.changed",settings:{foreground:"#EBCB8B"}},{name:"Markup Deleted",scope:"markup.deleted",settings:{foreground:"#BF616A"}},{name:"Markup Inserted",scope:"markup.inserted",settings:{foreground:"#A3BE8C"}},{name:"Meta Preprocessor",scope:"meta.preprocessor",settings:{foreground:"#5E81AC"}},{name:"Punctuation",scope:"punctuation",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Parameters",scope:["punctuation.definition.method-parameters","punctuation.definition.function-parameters","punctuation.definition.parameters"],settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Tag",scope:"punctuation.definition.tag",settings:{foreground:"#81A1C1"}},{name:"Punctuation Definition Comment",scope:["punctuation.definition.comment","punctuation.end.definition.comment","punctuation.start.definition.comment"],settings:{foreground:"#616E88"}},{name:"Punctuation Section",scope:"punctuation.section",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Section Embedded",scope:["punctuation.section.embedded.begin","punctuation.section.embedded.end"],settings:{foreground:"#81A1C1"}},{name:"Punctuation Terminator",scope:"punctuation.terminator",settings:{foreground:"#81A1C1"}},{name:"Punctuation Variable",scope:"punctuation.definition.variable",settings:{foreground:"#81A1C1"}},{name:"Storage",scope:"storage",settings:{foreground:"#81A1C1"}},{name:"String",scope:"string",settings:{foreground:"#A3BE8C"}},{name:"String Regexp",scope:"string.regexp",settings:{foreground:"#EBCB8B"}},{name:"Support Class",scope:"support.class",settings:{foreground:"#8FBCBB"}},{name:"Support Constant",scope:"support.constant",settings:{foreground:"#81A1C1"}},{name:"Support Function",scope:"support.function",settings:{foreground:"#88C0D0"}},{name:"Support Function Construct",scope:"support.function.construct",settings:{foreground:"#81A1C1"}},{name:"Support Type",scope:"support.type",settings:{foreground:"#8FBCBB"}},{name:"Support Type Exception",scope:"support.type.exception",settings:{foreground:"#8FBCBB"}},{name:"Token Debug",scope:"token.debug-token",settings:{foreground:"#b48ead"}},{name:"Token Error",scope:"token.error-token",settings:{foreground:"#bf616a"}},{name:"Token Info",scope:"token.info-token",settings:{foreground:"#88c0d0"}},{name:"Token Warning",scope:"token.warn-token",settings:{foreground:"#ebcb8b"}},{name:"Variable",scope:"variable.other",settings:{foreground:"#D8DEE9"}},{name:"Variable Language",scope:"variable.language",settings:{foreground:"#81A1C1"}},{name:"Variable Parameter",scope:"variable.parameter",settings:{foreground:"#D8DEE9"}},{name:"[C/CPP] Punctuation Separator Pointer-Access",scope:"punctuation.separator.pointer-access.c",settings:{foreground:"#81A1C1"}},{name:"[C/CPP] Meta Preprocessor Include",scope:["source.c meta.preprocessor.include","source.c string.quoted.other.lt-gt.include"],settings:{foreground:"#8FBCBB"}},{name:"[C/CPP] Conditional Directive",scope:["source.cpp keyword.control.directive.conditional","source.cpp punctuation.definition.directive","source.c keyword.control.directive.conditional","source.c punctuation.definition.directive"],settings:{foreground:"#5E81AC",fontStyle:"bold"}},{name:"[CSS] Constant Other Color RGB Value",scope:"source.css constant.other.color.rgb-value",settings:{foreground:"#B48EAD"}},{name:"[CSS](Function) Meta Property-Value",scope:"source.css meta.property-value",settings:{foreground:"#88C0D0"}},{name:"[CSS] Media Queries",scope:["source.css keyword.control.at-rule.media","source.css keyword.control.at-rule.media punctuation.definition.keyword"],settings:{foreground:"#D08770"}},{name:"[CSS] Punctuation Definition Keyword",scope:"source.css punctuation.definition.keyword",settings:{foreground:"#81A1C1"}},{name:"[CSS] Support Type Property Name",scope:"source.css support.type.property-name",settings:{foreground:"#D8DEE9"}},{name:"[diff] Meta Range Context",scope:"source.diff meta.diff.range.context",settings:{foreground:"#8FBCBB"}},{name:"[diff] Meta Header From-File",scope:"source.diff meta.diff.header.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition From-File",scope:"source.diff punctuation.definition.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Range",scope:"source.diff punctuation.definition.range",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Separator",scope:"source.diff punctuation.definition.separator",settings:{foreground:"#81A1C1"}},{name:"[Elixir](JakeBecker.elixir-ls) module names",scope:"entity.name.type.module.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Elixir](JakeBecker.elixir-ls) module attributes",scope:"variable.other.readwrite.module.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) atoms",scope:"constant.other.symbol.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) modules",scope:"variable.other.constant.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Go] String Format Placeholder",scope:"source.go constant.other.placeholder.go",settings:{foreground:"#EBCB8B"}},{name:"[Java](JavaDoc) Comment Block Documentation HTML Entities",scope:"source.java comment.block.documentation.javadoc punctuation.definition.entity.html",settings:{foreground:"#81A1C1"}},{name:"[Java](JavaDoc) Constant Other",scope:"source.java constant.other",settings:{foreground:"#D8DEE9"}},{name:"[Java](JavaDoc) Keyword Other Documentation",scope:"source.java keyword.other.documentation",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Author",scope:"source.java keyword.other.documentation.author.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Directive/Custom",scope:["source.java keyword.other.documentation.directive","source.java keyword.other.documentation.custom"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation See",scope:"source.java keyword.other.documentation.see.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java] Meta Method-Call",scope:"source.java meta.method-call meta.method",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Meta Tag Template Link",scope:["source.java meta.tag.template.link.javadoc","source.java string.other.link.title.javadoc"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Meta Tag Template Value",scope:"source.java meta.tag.template.value.javadoc",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Punctuation Definition Keyword",scope:"source.java punctuation.definition.keyword.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Punctuation Definition Tag",scope:["source.java punctuation.definition.tag.begin.javadoc","source.java punctuation.definition.tag.end.javadoc"],settings:{foreground:"#616E88"}},{name:"[Java] Storage Modifier Import",scope:"source.java storage.modifier.import",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Modifier Package",scope:"source.java storage.modifier.package",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type",scope:"source.java storage.type",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Annotation",scope:"source.java storage.type.annotation",settings:{foreground:"#D08770"}},{name:"[Java] Storage Type Generic",scope:"source.java storage.type.generic",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Primitive",scope:"source.java storage.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Decorator",scope:["source.js punctuation.decorator","source.js meta.decorator variable.other.readwrite","source.js meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[JavaScript] Meta Object-Literal Key",scope:"source.js meta.object-literal.key",settings:{foreground:"#88C0D0"}},{name:"[JavaScript](JSDoc) Storage Type Class",scope:"source.js storage.type.class.jsdoc",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] String Template Literals Punctuation",scope:["source.js string.quoted.template punctuation.quasi.element.begin","source.js string.quoted.template punctuation.quasi.element.end","source.js string.template punctuation.definition.template-expression"],settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Interpolated String Template Punctuation Functions",scope:"source.js string.quoted.template meta.method-call.with-arguments",settings:{foreground:"#ECEFF4"}},{name:"[JavaScript] String Template Literal Variable",scope:["source.js string.template meta.template.expression support.variable.property","source.js string.template meta.template.expression variable.other.object"],settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Support Type Primitive",scope:"source.js support.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Variable Other Object",scope:"source.js variable.other.object",settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Variable Other Read-Write Alias",scope:"source.js variable.other.readwrite.alias",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] Parentheses in Template Strings",scope:["source.js meta.embedded.line meta.brace.square","source.js meta.embedded.line meta.brace.round","source.js string.quoted.template meta.brace.square","source.js string.quoted.template meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[HTML] Constant Character Entity",scope:"text.html.basic constant.character.entity.html",settings:{foreground:"#EBCB8B"}},{name:"[HTML] Constant Other Inline-Data",scope:"text.html.basic constant.other.inline-data",settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[HTML] Meta Tag SGML Doctype",scope:"text.html.basic meta.tag.sgml.doctype",settings:{foreground:"#5E81AC"}},{name:"[HTML] Punctuation Definition Entity",scope:"text.html.basic punctuation.definition.entity",settings:{foreground:"#81A1C1"}},{name:"[INI] Entity Name Section Group-Title",scope:"source.properties entity.name.section.group-title.ini",settings:{foreground:"#88C0D0"}},{name:"[INI] Punctuation Separator Key-Value",scope:"source.properties punctuation.separator.key-value.ini",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Fenced Code Block",scope:["text.html.markdown markup.fenced_code.block","text.html.markdown markup.fenced_code.block punctuation.definition"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Heading",scope:"markup.heading",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Inline",scope:["text.html.markdown markup.inline.raw","text.html.markdown markup.inline.raw punctuation.definition.raw"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Italic",scope:"text.html.markdown markup.italic",settings:{fontStyle:"italic"}},{name:"[Markdown] Markup Link",scope:"text.html.markdown markup.underline.link",settings:{fontStyle:"underline"}},{name:"[Markdown] Markup List Numbered/Unnumbered",scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown beginning.punctuation.definition.quote",settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown markup.quote",settings:{foreground:"#616E88"}},{name:"[Markdown] Markup Math Constant",scope:"text.html.markdown constant.character.math.tex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Math Definition Marker",scope:["text.html.markdown punctuation.definition.math.begin","text.html.markdown punctuation.definition.math.end"],settings:{foreground:"#5E81AC"}},{name:"[Markdown] Markup Math Function Definition Marker",scope:"text.html.markdown punctuation.definition.function.math.tex",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Math Operator",scope:"text.html.markdown punctuation.math.operator.latex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Heading",scope:"text.html.markdown punctuation.definition.heading",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Constant/String",scope:["text.html.markdown punctuation.definition.constant","text.html.markdown punctuation.definition.string"],settings:{foreground:"#81A1C1"}},{name:"[Markdown] String Other Link Description/Title",scope:["text.html.markdown constant.other.reference.link","text.html.markdown string.other.link.description","text.html.markdown string.other.link.title"],settings:{foreground:"#88C0D0"}},{name:"[Perl] Perl Sigils",scope:"source.perl punctuation.definition.variable",settings:{foreground:"#D8DEE9"}},{name:"[PHP] Meta Function-Call Object",scope:["source.php meta.function-call","source.php meta.function-call.object"],settings:{foreground:"#88C0D0"}},{name:"[Python] Decorator",scope:["source.python entity.name.function.decorator","source.python meta.function.decorator support.type"],settings:{foreground:"#D08770"}},{name:"[Python] Function Call",scope:"source.python meta.function-call.generic",settings:{foreground:"#88C0D0"}},{name:"[Python] Support Type",scope:"source.python support.type",settings:{foreground:"#88C0D0"}},{name:"[Python] Function Parameter",scope:["source.python variable.parameter.function.language"],settings:{foreground:"#D8DEE9"}},{name:"[Python] Function Parameter Special",scope:["source.python meta.function.parameters variable.parameter.function.language.special.self"],settings:{foreground:"#81A1C1"}},{name:"[Rust] Entity types",scope:"source.rust entity.name.type",settings:{foreground:"#8FBCBB"}},{name:"[Rust] Macro",scope:"source.rust meta.macro entity.name.function",settings:{fontStyle:"bold",foreground:"#88C0D0"}},{name:"[Rust] Attributes",scope:["source.rust meta.attribute","source.rust meta.attribute punctuation","source.rust meta.attribute keyword.operator"],settings:{foreground:"#5E81AC"}},{name:"[Rust] Traits",scope:"source.rust entity.name.type.trait",settings:{fontStyle:"bold"}},{name:"[Rust] Interpolation Bracket Curly",scope:"source.rust punctuation.definition.interpolation",settings:{foreground:"#EBCB8B"}},{name:"[SCSS] Punctuation Definition Interpolation Bracket Curly",scope:["source.css.scss punctuation.definition.interpolation.begin.bracket.curly","source.css.scss punctuation.definition.interpolation.end.bracket.curly"],settings:{foreground:"#81A1C1"}},{name:"[SCSS] Variable Interpolation",scope:"source.css.scss variable.interpolation",settings:{foreground:"#D8DEE9",fontStyle:"italic"}},{name:"[TypeScript] Decorators",scope:["source.ts punctuation.decorator","source.ts meta.decorator variable.other.readwrite","source.ts meta.decorator entity.name.function","source.tsx punctuation.decorator","source.tsx meta.decorator variable.other.readwrite","source.tsx meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[TypeScript] Object-literal keys",scope:["source.ts meta.object-literal.key","source.tsx meta.object-literal.key"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Object-literal functions",scope:["source.ts meta.object-literal.key entity.name.function","source.tsx meta.object-literal.key entity.name.function"],settings:{foreground:"#88C0D0"}},{name:"[TypeScript] Type/Class",scope:["source.ts support.class","source.ts support.type","source.ts entity.name.type","source.ts entity.name.class","source.tsx support.class","source.tsx support.type","source.tsx entity.name.type","source.tsx entity.name.class"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Static Class Support",scope:["source.ts support.constant.math","source.ts support.constant.dom","source.ts support.constant.json","source.tsx support.constant.math","source.tsx support.constant.dom","source.tsx support.constant.json"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Variables",scope:["source.ts support.variable","source.tsx support.variable"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Parentheses in Template Strings",scope:["source.ts meta.embedded.line meta.brace.square","source.ts meta.embedded.line meta.brace.round","source.tsx meta.embedded.line meta.brace.square","source.tsx meta.embedded.line meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[XML] Entity Name Tag Namespace",scope:"text.xml entity.name.tag.namespace",settings:{foreground:"#8FBCBB"}},{name:"[XML] Keyword Other Doctype",scope:"text.xml keyword.other.doctype",settings:{foreground:"#5E81AC"}},{name:"[XML] Meta Tag Preprocessor",scope:"text.xml meta.tag.preprocessor entity.name.tag",settings:{foreground:"#5E81AC"}},{name:"[XML] Entity Name Tag Namespace",scope:["text.xml string.unquoted.cdata","text.xml string.unquoted.cdata punctuation.definition.string"],settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[YAML] Entity Name Tag",scope:"source.yaml entity.name.tag",settings:{foreground:"#8FBCBB"}}]},autoImport:!0,showCopyButton:!0,skipLanguages:[],filepath:"/Users/bytedance/modern.js/website/module-tools/docs/zh/guide/basic/test-your-project.mdx"},i={sidebar_position:6},a=[{id:"\u5148\u51b3\u6761\u4ef6\u548c\u7ea6\u5b9a",text:"\u5148\u51b3\u6761\u4ef6\u548c\u7ea6\u5b9a",depth:2},{id:"\u8fd0\u884c\u6d4b\u8bd5",text:"\u8fd0\u884c\u6d4b\u8bd5",depth:2},{id:"\u4f7f\u7528\u914d\u7f6e",text:"\u4f7f\u7528\u914d\u7f6e",depth:2},{id:"\u6d4b\u8bd5\u793a\u4f8b",text:"\u6d4b\u8bd5\u793a\u4f8b",depth:2},{id:"\u666e\u901a\u6a21\u5757",text:"\u666e\u901a\u6a21\u5757",depth:3},{id:"\u7ec4\u4ef6",text:"\u7ec4\u4ef6",depth:3}],d="\u6d4b\u8bd5\u9879\u76ee",l="\"---\\nsidebar_position: 6\\n---\\n\\n# \u6d4b\u8bd5\u9879\u76ee\\n\\n\u672c\u7ae0\u5c06\u8981\u4ecb\u7ecd\u5982\u4f55\u6d4b\u8bd5\u53ef\u590d\u7528\u6a21\u5757\u3002\\n\\n## \u5148\u51b3\u6761\u4ef6\u548c\u7ea6\u5b9a\\n\\n\u60f3\u8981\u4f7f\u7528\u9879\u76ee\u7684\u6d4b\u8bd5\u529f\u80fd\uff0c\u9700\u8981\u786e\u4fdd\u9879\u76ee\u4e2d\u5305\u542b\u4f9d\u8d56\uff1a`\\\"@modern-js/plugin-testing\\\"` ,\u53ef\u4ee5\u901a\u8fc7[modern new](/guide/basic/command-preview#modern-new)\u6765\u5b8c\u6210\u3002\\n\\n\u5728\u6a21\u5757\u5de5\u7a0b\u65b9\u6848\u4e2d\uff0c\u5bf9\u4e8e\u6d4b\u8bd5\u7528\u4f8b\u6216\u8005\u8bf4\u7f16\u5199\u6d4b\u8bd5\u7684\u6587\u4ef6\u6709\u5982\u4e0b\u7ea6\u5b9a\uff1a\\n\\n- \u9879\u76ee\u76ee\u5f55\u4e0b\u7684 `tests` \u76ee\u5f55\u4e3a\u6d4b\u8bd5\u7528\u4f8b\u548c\u6d4b\u8bd5\u6587\u4ef6\u7684\u76ee\u5f55\uff0c**\u4e0d\u652f\u6301\u66f4\u6539\u8fd0\u884c\u6d4b\u8bd5\u7528\u4f8b\u7684\u76ee\u5f55**\u3002\\n- \u9ed8\u8ba4\u4f1a\u81ea\u52a8\u5c06\u540e\u7f00\u4e3a `.test.[tj]sx?` \u7684\u6587\u4ef6\u8bc6\u522b\u4e3a\u6d4b\u8bd5\u6587\u4ef6\u3002\\n- \u5176\u4ed6\u7684 `.[tj]sx?` \u540e\u7f00\u7684\u6587\u4ef6\u88ab\u8bc6\u522b\u4e3a\u666e\u901a\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6d4b\u8bd5\u7684 `utils` \u6587\u4ef6\u6216\u8005\u5176\u4ed6\u7528\u9014\u3002\\n\\n## \u8fd0\u884c\u6d4b\u8bd5\\n\\n\u5f53\u51c6\u5907\u597d\u4e86\u4f9d\u8d56\u4ee5\u53ca\u4e86\u89e3\u4e86\u6d4b\u8bd5\u7528\u4f8b\u5728\u54ea\u91cc\u7f16\u5199\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u6267\u884c\u6d4b\u8bd5\uff1a\\n\\n```bash\\nmodern test\\n\\n// \u66f4\u65b0 snapshot\\nmodern test --updateSnapshot\\n```\\n\\n\u6267\u884c\u4e4b\u540e\uff0c\u4f1a\u770b\u5230\u6d4b\u8bd5\u7684\u7ed3\u679c\uff1a\\n\\n\\n\\n## \u4f7f\u7528\u914d\u7f6e\\n\\n/obj/eden-cn/uhbfnupenuhf/test-result.png\\n\u6a21\u5757\u5de5\u7a0b\u65b9\u6848\u5bf9\u6d4b\u8bd5\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u914d\u7f6e\uff1a\\n\\n- [`testing`](/api/config/testing)\\n\\n\u53ef\u4ee5\u5728 `modern.config.(j|t)s` \u4e2d\u589e\u52a0\u5b83\u3002\\n\\n## \u6d4b\u8bd5\u793a\u4f8b\\n\\n### \u666e\u901a\u6a21\u5757\\n\\n\u5bf9\u4e8e\u666e\u901a\u7684\u6a21\u5757\uff0c\u6211\u4eec\u53ef\u4ee5\u6309\u7167\u5982\u4e0b\u65b9\u5f0f\u4f7f\u7528\u6d4b\u8bd5\u529f\u80fd\uff1a\\n\\n<CH.Spotlight>\\n\\n```typescript ./src/index.ts\\nexport default function () {\\n return 'hello world';\\n}\\n```\\n\\n---\\n\\n\u9996\u5148\u662f\u6a21\u5757\u7684\u4ee3\u7801\u3002\\n\\n```typescript ./src/index.ts\\nexport default function () {\\n return 'hello world';\\n}\\n```\\n\\n---\\n\\n\u7136\u540e\u5728\u6d4b\u8bd5\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u3002\\n\\n\u5176\u4e2d `@` \u6307\u5411\u4e86\u6e90\u7801\u76ee\u5f55\uff0c\u5728\u521d\u59cb\u5316\u9879\u76ee\u7684 `tests/tsconfig.json` \u4e2d\u5b9a\u4e49\u4e86\u3002\\n\\n```typescript ./tests/index.test.ts\\nimport main from '@/index';\\n\\ndescribe('\u9ed8\u8ba4\u503c cases', () => {\\n test('Have returns', () => {\\n const drink = jest.fn(main);\\n drink();\\n expect(drink).toHaveReturned();\\n });\\n});\\n```\\n\\n---\\n\\n\u6700\u540e\u6211\u4eec\u53ef\u4ee5\u6267\u884c `modern test`\u3002\\n\\n```bash\\npnpm test\\n## or\\nyarn test\\n## or\\nnpm run test\\n```\\n\\n</CH.Spotlight>\\n\\n### \u7ec4\u4ef6\\n\\n{/* \u94fe\u63a5\u5f85\u8865\u5145 */}\\n\\n\u5bf9\u4e8e\u7ec4\u4ef6\uff0cModern.js \u7684 Runtime API \u63d0\u4f9b\u4e86\u7528\u4e8e\u6d4b\u8bd5 UI \u7ec4\u4ef6\u7684\u529f\u80fd\uff0c\u5176\u529f\u80fd\u7531 `@modern-js/runtime/testing` \u63d0\u4f9b\u3002\\n\\n:::tip\\n\u5982\u679c\u9700\u8981\u4f7f\u7528 Runtime API\uff0c\u90a3\u4e48\u53ef\u4ee5\u901a\u8fc7 [\u5fae\u751f\u6210\u5668](/guide/basic/command-preview) \u5f00\u542f\u3002\\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\\n\u9996\u5148\u662f\u7ec4\u4ef6\u7684\u4ee3\u7801\u3002\\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\\n\u7136\u540e\u5728\u6d4b\u8bd5\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u3002\\n\\n\u5176\u4e2d `@` \u6307\u5411\u4e86\u6e90\u7801\u76ee\u5f55\uff0c\u5728\u521d\u59cb\u5316\u9879\u76ee\u7684 `tests/tsconfig.json` \u4e2d\u5b9a\u4e49\u4e86\u3002\\n\\n```tsx ./tests/index.test.tsx\\nimport { render, screen } from '@modern-js/runtime/testing';\\n\\nimport Component from '@/index';\\n\\ndescribe('\u9ed8\u8ba4\u503c cases', () => {\\n test('Rendered', () => {\\n render(<Component />);\\n expect(screen.getByText('This is a UI Component')).toBeInTheDocument();\\n });\\n});\\n```\\n\\n---\\n\\n\u6700\u540e\u6211\u4eec\u53ef\u4ee5\u6267\u884c `modern test`\u3002\\n\\n```bash\\npnpm test\\n## or\\nyarn test\\n## or\\nnpm run test\\n```\\n\\n</CH.Spotlight>\\n\"";function p(e){const o=Object.assign({h1:"h1",a:"a",p:"p",h2:"h2",code:"code",ul:"ul",li:"li",strong:"strong",img:"img",h3:"h3",div:"div"},e.components);return s||u("CH",!1),s.Code||u("CH.Code",!0),s.CodeSlot||u("CH.CodeSlot",!0),s.Spotlight||u("CH.Spotlight",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.h1,{id:"\u6d4b\u8bd5\u9879\u76ee",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u6d4b\u8bd5\u9879\u76ee",children:"#"}),"\u6d4b\u8bd5\u9879\u76ee"]}),"\n",(0,n.jsx)(o.p,{children:"\u672c\u7ae0\u5c06\u8981\u4ecb\u7ecd\u5982\u4f55\u6d4b\u8bd5\u53ef\u590d\u7528\u6a21\u5757\u3002"}),"\n",(0,n.jsxs)(o.h2,{id:"\u5148\u51b3\u6761\u4ef6\u548c\u7ea6\u5b9a",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u5148\u51b3\u6761\u4ef6\u548c\u7ea6\u5b9a",children:"#"}),"\u5148\u51b3\u6761\u4ef6\u548c\u7ea6\u5b9a"]}),"\n",(0,n.jsxs)(o.p,{children:["\u60f3\u8981\u4f7f\u7528\u9879\u76ee\u7684\u6d4b\u8bd5\u529f\u80fd\uff0c\u9700\u8981\u786e\u4fdd\u9879\u76ee\u4e2d\u5305\u542b\u4f9d\u8d56\uff1a",(0,n.jsx)(o.code,{children:'"@modern-js/plugin-testing"'})," ,\u53ef\u4ee5\u901a\u8fc7",(0,n.jsx)(o.a,{href:"/module-tools/guide/basic/command-preview.html#modern-new-2",children:"modern new"}),"\u6765\u5b8c\u6210\u3002"]}),"\n",(0,n.jsx)(o.p,{children:"\u5728\u6a21\u5757\u5de5\u7a0b\u65b9\u6848\u4e2d\uff0c\u5bf9\u4e8e\u6d4b\u8bd5\u7528\u4f8b\u6216\u8005\u8bf4\u7f16\u5199\u6d4b\u8bd5\u7684\u6587\u4ef6\u6709\u5982\u4e0b\u7ea6\u5b9a\uff1a"}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsxs)(o.li,{children:["\u9879\u76ee\u76ee\u5f55\u4e0b\u7684 ",(0,n.jsx)(o.code,{children:"tests"})," \u76ee\u5f55\u4e3a\u6d4b\u8bd5\u7528\u4f8b\u548c\u6d4b\u8bd5\u6587\u4ef6\u7684\u76ee\u5f55\uff0c",(0,n.jsx)(o.strong,{children:"\u4e0d\u652f\u6301\u66f4\u6539\u8fd0\u884c\u6d4b\u8bd5\u7528\u4f8b\u7684\u76ee\u5f55"}),"\u3002"]}),"\n",(0,n.jsxs)(o.li,{children:["\u9ed8\u8ba4\u4f1a\u81ea\u52a8\u5c06\u540e\u7f00\u4e3a ",(0,n.jsx)(o.code,{children:".test.[tj]sx?"})," \u7684\u6587\u4ef6\u8bc6\u522b\u4e3a\u6d4b\u8bd5\u6587\u4ef6\u3002"]}),"\n",(0,n.jsxs)(o.li,{children:["\u5176\u4ed6\u7684 ",(0,n.jsx)(o.code,{children:".[tj]sx?"})," \u540e\u7f00\u7684\u6587\u4ef6\u88ab\u8bc6\u522b\u4e3a\u666e\u901a\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6d4b\u8bd5\u7684 ",(0,n.jsx)(o.code,{children:"utils"})," \u6587\u4ef6\u6216\u8005\u5176\u4ed6\u7528\u9014\u3002"]}),"\n"]}),"\n",(0,n.jsxs)(o.h2,{id:"\u8fd0\u884c\u6d4b\u8bd5",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u8fd0\u884c\u6d4b\u8bd5",children:"#"}),"\u8fd0\u884c\u6d4b\u8bd5"]}),"\n",(0,n.jsx)(o.p,{children:"\u5f53\u51c6\u5907\u597d\u4e86\u4f9d\u8d56\u4ee5\u53ca\u4e86\u89e3\u4e86\u6d4b\u8bd5\u7528\u4f8b\u5728\u54ea\u91cc\u7f16\u5199\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u6267\u884c\u6d4b\u8bd5\uff1a"}),"\n",(0,n.jsx)(s.Code,{codeConfig:c,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"modern ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]},{tokens:[]},{tokens:[{content:"// \u66f4\u65b0 snapshot",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"modern ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}},{content:" --updateSnapshot",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),"\n",(0,n.jsx)(o.p,{children:"\u6267\u884c\u4e4b\u540e\uff0c\u4f1a\u770b\u5230\u6d4b\u8bd5\u7684\u7ed3\u679c\uff1a"}),"\n",(0,n.jsx)(o.p,{children:(0,n.jsx)(o.img,{src:"https://lf3-static.bytednsdoc.com/obj/eden-cn/uhbfnupenuhf/test-result.png",alt:"test-result"})}),"\n",(0,n.jsxs)(o.h2,{id:"\u4f7f\u7528\u914d\u7f6e",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u4f7f\u7528\u914d\u7f6e",children:"#"}),"\u4f7f\u7528\u914d\u7f6e"]}),"\n",(0,n.jsx)(o.p,{children:"/obj/eden-cn/uhbfnupenuhf/test-result.png\n\u6a21\u5757\u5de5\u7a0b\u65b9\u6848\u5bf9\u6d4b\u8bd5\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u914d\u7f6e\uff1a"}),"\n",(0,n.jsxs)(o.ul,{children:["\n",(0,n.jsx)(o.li,{children:(0,n.jsx)(o.a,{href:"/module-tools/api/config/testing.html",children:(0,n.jsx)(o.code,{children:"testing"})})}),"\n"]}),"\n",(0,n.jsxs)(o.p,{children:["\u53ef\u4ee5\u5728 ",(0,n.jsx)(o.code,{children:"modern.config.(j|t)s"})," \u4e2d\u589e\u52a0\u5b83\u3002"]}),"\n",(0,n.jsxs)(o.h2,{id:"\u6d4b\u8bd5\u793a\u4f8b",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u6d4b\u8bd5\u793a\u4f8b",children:"#"}),"\u6d4b\u8bd5\u793a\u4f8b"]}),"\n",(0,n.jsxs)(o.h3,{id:"\u666e\u901a\u6a21\u5757",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u666e\u901a\u6a21\u5757",children:"#"}),"\u666e\u901a\u6a21\u5757"]}),"\n",(0,n.jsx)(o.p,{children:"\u5bf9\u4e8e\u666e\u901a\u7684\u6a21\u5757\uff0c\u6211\u4eec\u53ef\u4ee5\u6309\u7167\u5982\u4e0b\u65b9\u5f0f\u4f7f\u7528\u6d4b\u8bd5\u529f\u80fd\uff1a"}),"\n",(0,n.jsxs)(s.Spotlight,{codeConfig:c,editorSteps:[{northPanel:{tabs:["./src/index.ts"],active:"./src/index.ts",heightRatio:1},files:[{name:"./src/index.ts",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"function",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"hello world",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"typescript"},annotations:[]}]},{northPanel:{tabs:["./src/index.ts"],active:"./src/index.ts",heightRatio:1},files:[{name:"./src/index.ts",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"function",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"hello world",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"typescript"},annotations:[]}],southPanel:void 0},{northPanel:{tabs:["./src/index.ts","./tests/index.test.ts"],active:"./tests/index.test.ts",heightRatio:1},files:[{name:"./src/index.ts",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"function",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"hello world",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"typescript"},annotations:[]},{name:"./tests/index.test.ts",focus:"",code:{lines:[{tokens:[{content:"import",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"main",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"from",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@/index",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[]},{tokens:[{content:"describe",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"\u9ed8\u8ba4\u503c cases",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"=>",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"Have returns",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"=>",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"const",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"drink",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"=",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"jest",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"fn",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"main",props:{style:{color:"#D8DEE9"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"drink",props:{style:{color:"#88C0D0"}}},{content:"()",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"expect",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"drink",props:{style:{color:"#D8DEE9"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"toHaveReturned",props:{style:{color:"#88C0D0"}}},{content:"()",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"typescript"},annotations:[]}],southPanel:void 0},{northPanel:{tabs:["./src/index.ts",""],active:"",heightRatio:1},files:[{name:"./src/index.ts",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"function",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"hello world",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"typescript"},annotations:[]},{name:"",focus:"",code:{lines:[{tokens:[{content:"pnpm ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"## or",props:{style:{color:"#616E88"}}}]},{tokens:[{content:"yarn ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"## or",props:{style:{color:"#616E88"}}}]},{tokens:[{content:"npm run ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]}],lang:"bash"},annotations:[]}],southPanel:void 0}],children:[(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.CodeSlot,{})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.p,{children:"\u9996\u5148\u662f\u6a21\u5757\u7684\u4ee3\u7801\u3002"}),(0,n.jsx)(s.CodeSlot,{})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.p,{children:"\u7136\u540e\u5728\u6d4b\u8bd5\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u3002"}),(0,n.jsxs)(o.p,{children:["\u5176\u4e2d ",(0,n.jsx)(o.code,{children:"@"})," \u6307\u5411\u4e86\u6e90\u7801\u76ee\u5f55\uff0c\u5728\u521d\u59cb\u5316\u9879\u76ee\u7684 ",(0,n.jsx)(o.code,{children:"tests/tsconfig.json"})," \u4e2d\u5b9a\u4e49\u4e86\u3002"]}),(0,n.jsx)(s.CodeSlot,{})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.p,{children:["\u6700\u540e\u6211\u4eec\u53ef\u4ee5\u6267\u884c ",(0,n.jsx)(o.code,{children:"modern test"}),"\u3002"]}),(0,n.jsx)(s.CodeSlot,{})]})]}),"\n",(0,n.jsxs)(o.h3,{id:"\u7ec4\u4ef6",children:[(0,n.jsx)(o.a,{className:"header-anchor","aria-hidden":"true",href:"#\u7ec4\u4ef6",children:"#"}),"\u7ec4\u4ef6"]}),"\n","\n",(0,n.jsxs)(o.p,{children:["\u5bf9\u4e8e\u7ec4\u4ef6\uff0cModern.js \u7684 Runtime API \u63d0\u4f9b\u4e86\u7528\u4e8e\u6d4b\u8bd5 UI \u7ec4\u4ef6\u7684\u529f\u80fd\uff0c\u5176\u529f\u80fd\u7531 ",(0,n.jsx)(o.code,{children:"@modern-js/runtime/testing"})," \u63d0\u4f9b\u3002"]}),"\n",(0,n.jsxs)(o.div,{className:"modern-directive tip",children:[(0,n.jsx)(o.p,{className:"modern-directive-title",children:"TIP"}),(0,n.jsx)(o.div,{className:"modern-directive-content",children:(0,n.jsxs)(o.p,{children:["\n\u5982\u679c\u9700\u8981\u4f7f\u7528 Runtime API\uff0c\u90a3\u4e48\u53ef\u4ee5\u901a\u8fc7 ",(0,n.jsx)(o.a,{href:"/module-tools/guide/basic/command-preview.html",children:"\u5fae\u751f\u6210\u5668"}),"\u5f00\u542f\u3002"]})})]}),"\n",(0,n.jsxs)(s.Spotlight,{codeConfig:c,editorSteps:[{northPanel:{tabs:["./src/index.tsx"],active:"./src/index.tsx",heightRatio:1},files:[{name:"./src/index.tsx",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"const",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#D8DEE9"}}},{content:" () {",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" (",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"<div>",props:{style:{color:"#81A1C1"}}},{content:"This is a UI Component",props:{style:{color:"#D8DEE9FF"}}},{content:"</div>",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" )",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"tsx"},annotations:[]}]},{northPanel:{tabs:["./src/index.tsx"],active:"./src/index.tsx",heightRatio:1},files:[{name:"./src/index.tsx",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"const",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#D8DEE9"}}},{content:" () {",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" (",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"<div>",props:{style:{color:"#81A1C1"}}},{content:"This is a UI Component",props:{style:{color:"#D8DEE9FF"}}},{content:"</div>",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" )",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"tsx"},annotations:[]}],southPanel:void 0},{northPanel:{tabs:["./src/index.tsx","./tests/index.test.tsx"],active:"./tests/index.test.tsx",heightRatio:1},files:[{name:"./src/index.tsx",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"const",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#D8DEE9"}}},{content:" () {",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" (",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"<div>",props:{style:{color:"#81A1C1"}}},{content:"This is a UI Component",props:{style:{color:"#D8DEE9FF"}}},{content:"</div>",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" )",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"tsx"},annotations:[]},{name:"./tests/index.test.tsx",focus:"",code:{lines:[{tokens:[{content:"import",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"render",props:{style:{color:"#D8DEE9"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"screen",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"from",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@modern-js/runtime/testing",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[]},{tokens:[{content:"import",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"Component",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"from",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@/index",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[]},{tokens:[{content:"describe",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"\u9ed8\u8ba4\u503c cases",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"=>",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"Rendered",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"()",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"=>",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"render",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"<",props:{style:{color:"#81A1C1"}}},{content:"Component",props:{style:{color:"#8FBCBB"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"/>",props:{style:{color:"#81A1C1"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"expect",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"screen",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"getByText",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"This is a UI Component",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"))",props:{style:{color:"#D8DEE9FF"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"toBeInTheDocument",props:{style:{color:"#88C0D0"}}},{content:"()",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"tsx"},annotations:[]}],southPanel:void 0},{northPanel:{tabs:["./src/index.tsx",""],active:"",heightRatio:1},files:[{name:"./src/index.tsx",focus:"",code:{lines:[{tokens:[{content:"export",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"const",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"default",props:{style:{color:"#D8DEE9"}}},{content:" () {",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"return",props:{style:{color:"#81A1C1"}}},{content:" (",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"<div>",props:{style:{color:"#81A1C1"}}},{content:"This is a UI Component",props:{style:{color:"#D8DEE9FF"}}},{content:"</div>",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" )",props:{style:{color:"#D8DEE9FF"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"tsx"},annotations:[]},{name:"",focus:"",code:{lines:[{tokens:[{content:"pnpm ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"## or",props:{style:{color:"#616E88"}}}]},{tokens:[{content:"yarn ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"## or",props:{style:{color:"#616E88"}}}]},{tokens:[{content:"npm run ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]}],lang:"bash"},annotations:[]}],southPanel:void 0}],children:[(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.CodeSlot,{})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.p,{children:"\u9996\u5148\u662f\u7ec4\u4ef6\u7684\u4ee3\u7801\u3002"}),(0,n.jsx)(s.CodeSlot,{})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.p,{children:"\u7136\u540e\u5728\u6d4b\u8bd5\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u3002"}),(0,n.jsxs)(o.p,{children:["\u5176\u4e2d ",(0,n.jsx)(o.code,{children:"@"})," \u6307\u5411\u4e86\u6e90\u7801\u76ee\u5f55\uff0c\u5728\u521d\u59cb\u5316\u9879\u76ee\u7684 ",(0,n.jsx)(o.code,{children:"tests/tsconfig.json"})," \u4e2d\u5b9a\u4e49\u4e86\u3002"]}),(0,n.jsx)(s.CodeSlot,{})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.p,{children:["\u6700\u540e\u6211\u4eec\u53ef\u4ee5\u6267\u884c ",(0,n.jsx)(o.code,{children:"modern test"}),"\u3002"]}),(0,n.jsx)(s.CodeSlot,{})]})]})]})}function u(e,o){throw new Error("Expected "+(o?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}o.default=function(e={}){const{wrapper:o}=e.components||{};return o?(0,n.jsx)(o,Object.assign({},e,{children:(0,n.jsx)(p,e)})):p(e)}}}]);
|