@modern-js/module-tools-docs 2.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/LICENSE +144 -0
  2. package/docs/.island/config.ts +245 -0
  3. package/docs/.island/dist/404.html +41 -0
  4. package/docs/.island/dist/assets/before-getting-started.1b82b538.js +87 -0
  5. package/docs/.island/dist/assets/before-getting-started.582a31cc.js +87 -0
  6. package/docs/.island/dist/assets/build-config.72eb0918.js +804 -0
  7. package/docs/.island/dist/assets/build-config.d8bb1658.js +809 -0
  8. package/docs/.island/dist/assets/build-preset.96805d7d.js +256 -0
  9. package/docs/.island/dist/assets/build-preset.c20dcd40.js +256 -0
  10. package/docs/.island/dist/assets/build-your-ui.7f349247.js +2 -0
  11. package/docs/.island/dist/assets/build-your-ui.a8361604.js +2 -0
  12. package/docs/.island/dist/assets/command-preview.2d45fc82.js +264 -0
  13. package/docs/.island/dist/assets/command-preview.dc51b953.js +264 -0
  14. package/docs/.island/dist/assets/components.esm.03560353.js +9 -0
  15. package/docs/.island/dist/assets/design-system.86694ff5.js +1254 -0
  16. package/docs/.island/dist/assets/design-system.c4745cce.js +639 -0
  17. package/docs/.island/dist/assets/dev.1d326a37.js +37 -0
  18. package/docs/.island/dist/assets/dev.1fd06000.js +37 -0
  19. package/docs/.island/dist/assets/down.f35427d3.svg +1 -0
  20. package/docs/.island/dist/assets/extension.12299fd6.js +2 -0
  21. package/docs/.island/dist/assets/extension.96dc63a4.js +2 -0
  22. package/docs/.island/dist/assets/getting-started.40e9218d.js +117 -0
  23. package/docs/.island/dist/assets/getting-started.b1ed3f10.js +114 -0
  24. package/docs/.island/dist/assets/github.3bf8ccee.svg +1 -0
  25. package/docs/.island/dist/assets/index.2b2347ea.js +33 -0
  26. package/docs/.island/dist/assets/index.6cef6f5f.js +4 -0
  27. package/docs/.island/dist/assets/index.cb118238.js +36 -0
  28. package/docs/.island/dist/assets/index.ccb6ce27.js +4 -0
  29. package/docs/.island/dist/assets/island_inject.11a12ecc.js +1 -0
  30. package/docs/.island/dist/assets/island_inject.b13deaee.js +1 -0
  31. package/docs/.island/dist/assets/loading.8c9bb911.svg +1 -0
  32. package/docs/.island/dist/assets/modify-output-product.7f6bff35.js +100 -0
  33. package/docs/.island/dist/assets/modify-output-product.b91eff1f.js +100 -0
  34. package/docs/.island/dist/assets/moon.6b705924.svg +3 -0
  35. package/docs/.island/dist/assets/plugin.895932d8.js +42 -0
  36. package/docs/.island/dist/assets/plugin.d2fbc531.js +42 -0
  37. package/docs/.island/dist/assets/publish-your-project.21b8309f.js +164 -0
  38. package/docs/.island/dist/assets/publish-your-project.8d398b17.js +166 -0
  39. package/docs/.island/dist/assets/right.89674cd7.svg +1 -0
  40. package/docs/.island/dist/assets/search.0aea6901.svg +1 -0
  41. package/docs/.island/dist/assets/search.1c85d17c.js +3 -0
  42. package/docs/.island/dist/assets/search.484eca11.js +222 -0
  43. package/docs/.island/dist/assets/search.54fca8d0.js +3 -0
  44. package/docs/.island/dist/assets/style.09015a4b.css +1 -0
  45. package/docs/.island/dist/assets/style.2e5f7bc2.css +1970 -0
  46. package/docs/.island/dist/assets/sun.841dac10.svg +11 -0
  47. package/docs/.island/dist/assets/test-your-project.18bd4582.js +190 -0
  48. package/docs/.island/dist/assets/test-your-project.f53bebf7.js +190 -0
  49. package/docs/.island/dist/assets/test.0da1f99f.js +67 -0
  50. package/docs/.island/dist/assets/test.0e81f002.js +66 -0
  51. package/docs/.island/dist/assets/translator.b1077c44.svg +1 -0
  52. package/docs/.island/dist/assets/use-micro-generator.7d9e4016.js +60 -0
  53. package/docs/.island/dist/assets/use-micro-generator.db5520c1.js +60 -0
  54. package/docs/.island/dist/assets/using-storybook.57ea6b77.js +260 -0
  55. package/docs/.island/dist/assets/using-storybook.a2212f2e.js +260 -0
  56. package/docs/.island/dist/assets/welcome.0449a9c8.js +13 -0
  57. package/docs/.island/dist/assets/welcome.a8448931.js +13 -0
  58. package/docs/.island/dist/assets/why-module-engineering-solution.6ae8c0e3.js +26 -0
  59. package/docs/.island/dist/assets/why-module-engineering-solution.c9a45cbd.js +26 -0
  60. package/docs/.island/dist/chunk-COLCRJ2V.js +1 -0
  61. package/docs/.island/dist/chunk-K5FMOYDC.js +10 -0
  62. package/docs/.island/dist/chunk-WE42KMYS.js +26 -0
  63. package/docs/.island/dist/client-entry.js +3 -0
  64. package/docs/.island/dist/en/api/build-config.html +344 -0
  65. package/docs/.island/dist/en/api/build-preset.html +82 -0
  66. package/docs/.island/dist/en/api/design-system.html +155 -0
  67. package/docs/.island/dist/en/api/dev.html +45 -0
  68. package/docs/.island/dist/en/api/index.html +41 -0
  69. package/docs/.island/dist/en/api/plugin.html +48 -0
  70. package/docs/.island/dist/en/api/test.html +58 -0
  71. package/docs/.island/dist/en/guide/before-getting-started.html +127 -0
  72. package/docs/.island/dist/en/guide/build-your-ui.html +41 -0
  73. package/docs/.island/dist/en/guide/command-preview.html +100 -0
  74. package/docs/.island/dist/en/guide/extension.html +41 -0
  75. package/docs/.island/dist/en/guide/getting-started.html +76 -0
  76. package/docs/.island/dist/en/guide/modify-output-product.html +140 -0
  77. package/docs/.island/dist/en/guide/publish-your-project.html +91 -0
  78. package/docs/.island/dist/en/guide/test-your-project.html +72 -0
  79. package/docs/.island/dist/en/guide/use-micro-generator.html +65 -0
  80. package/docs/.island/dist/en/guide/using-storybook.html +113 -0
  81. package/docs/.island/dist/en/guide/welcome.html +53 -0
  82. package/docs/.island/dist/en/guide/why-module-engineering-solution.html +49 -0
  83. package/docs/.island/dist/en/index.html +42 -0
  84. package/docs/.island/dist/react-dom.js +1 -0
  85. package/docs/.island/dist/react-dom_client.js +1 -0
  86. package/docs/.island/dist/react.js +1 -0
  87. package/docs/.island/dist/react_jsx-runtime.js +10 -0
  88. package/docs/.island/dist/ssr-manifest.json +57 -0
  89. package/docs/.island/dist/test-result.png +0 -0
  90. package/docs/.island/dist/why-module-solution.png +0 -0
  91. package/docs/.island/dist/zh/api/build-config.html +347 -0
  92. package/docs/.island/dist/zh/api/build-preset.html +82 -0
  93. package/docs/.island/dist/zh/api/design-system.html +149 -0
  94. package/docs/.island/dist/zh/api/dev.html +46 -0
  95. package/docs/.island/dist/zh/api/index.html +41 -0
  96. package/docs/.island/dist/zh/api/plugin.html +48 -0
  97. package/docs/.island/dist/zh/api/test.html +59 -0
  98. package/docs/.island/dist/zh/guide/before-getting-started.html +127 -0
  99. package/docs/.island/dist/zh/guide/build-your-ui.html +41 -0
  100. package/docs/.island/dist/zh/guide/command-preview.html +100 -0
  101. package/docs/.island/dist/zh/guide/extension.html +41 -0
  102. package/docs/.island/dist/zh/guide/getting-started.html +79 -0
  103. package/docs/.island/dist/zh/guide/modify-output-product.html +140 -0
  104. package/docs/.island/dist/zh/guide/publish-your-project.html +92 -0
  105. package/docs/.island/dist/zh/guide/test-your-project.html +72 -0
  106. package/docs/.island/dist/zh/guide/use-micro-generator.html +65 -0
  107. package/docs/.island/dist/zh/guide/using-storybook.html +114 -0
  108. package/docs/.island/dist/zh/guide/welcome.html +53 -0
  109. package/docs/.island/dist/zh/guide/why-module-engineering-solution.html +49 -0
  110. package/docs/.island/dist/zh/index.html +42 -0
  111. package/docs/.island/index.html +39 -0
  112. package/docs/.island/styles/index.css +10 -0
  113. package/docs/en/api/build-config.md +501 -0
  114. package/docs/en/api/build-preset.md +214 -0
  115. package/docs/en/api/design-system.md +524 -0
  116. package/docs/en/api/dev.md +32 -0
  117. package/docs/en/api/index.md +3 -0
  118. package/docs/en/api/plugin.md +34 -0
  119. package/docs/en/api/test.md +48 -0
  120. package/docs/en/guide/advance/asset.mdx +132 -0
  121. package/docs/en/guide/advance/build-umd.mdx +241 -0
  122. package/docs/en/guide/advance/copy.md +235 -0
  123. package/docs/en/guide/advance/external-dependency.mdx +125 -0
  124. package/docs/en/guide/advance/in-depth-about-build.md +266 -0
  125. package/docs/en/guide/advance/in-depth-about-dev-command.md +22 -0
  126. package/docs/en/guide/basic/before-getting-started.md +187 -0
  127. package/docs/en/guide/basic/command-preview.md +204 -0
  128. package/docs/en/guide/basic/modify-output-product.md +145 -0
  129. package/docs/en/guide/basic/publish-your-project.md +115 -0
  130. package/docs/en/guide/basic/test-your-project.mdx +158 -0
  131. package/docs/en/guide/basic/use-micro-generator.md +35 -0
  132. package/docs/en/guide/basic/using-storybook.mdx +187 -0
  133. package/docs/en/guide/intro/getting-started.md +78 -0
  134. package/docs/en/guide/intro/welcome.md +14 -0
  135. package/docs/en/guide/intro/why-module-engineering-solution.md +17 -0
  136. package/docs/en/index.md +35 -0
  137. package/docs/public/test-result.png +0 -0
  138. package/docs/public/why-module-solution.png +0 -0
  139. package/docs/zh/api/build-config.md +570 -0
  140. package/docs/zh/api/build-preset.md +220 -0
  141. package/docs/zh/api/design-system.md +1147 -0
  142. package/docs/zh/api/dev.md +33 -0
  143. package/docs/zh/api/index.md +3 -0
  144. package/docs/zh/api/plugins.md +108 -0
  145. package/docs/zh/api/testing.md +52 -0
  146. package/docs/zh/guide/advance/asset.mdx +132 -0
  147. package/docs/zh/guide/advance/build-umd.mdx +232 -0
  148. package/docs/zh/guide/advance/copy.md +235 -0
  149. package/docs/zh/guide/advance/external-dependency.mdx +125 -0
  150. package/docs/zh/guide/advance/in-depth-about-build.md +267 -0
  151. package/docs/zh/guide/advance/in-depth-about-dev-command.md +26 -0
  152. package/docs/zh/guide/basic/before-getting-started.md +187 -0
  153. package/docs/zh/guide/basic/command-preview.md +204 -0
  154. package/docs/zh/guide/basic/modify-output-product.md +144 -0
  155. package/docs/zh/guide/basic/publish-your-project.md +112 -0
  156. package/docs/zh/guide/basic/test-your-project.mdx +158 -0
  157. package/docs/zh/guide/basic/use-micro-generator.md +35 -0
  158. package/docs/zh/guide/basic/using-storybook.mdx +186 -0
  159. package/docs/zh/guide/intro/getting-started.md +78 -0
  160. package/docs/zh/guide/intro/welcome.md +14 -0
  161. package/docs/zh/guide/intro/why-module-engineering-solution.md +17 -0
  162. package/docs/zh/index.md +29 -0
  163. package/package.json +19 -0
@@ -0,0 +1,809 @@
1
+ import{jsx as o,jsxs as t,Fragment as i}from"react/jsx-runtime";import{a as p,C as a}from"./components.esm.03560353.js";import"react";import"react-dom";const n={annotations:p,Code:a},r={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,enableSpa:!0,skipLanguages:[],filepath:"/Users/bytedance/modern.js/website/module-tools/docs/zh/api/build-config.md"},h=void 0,y=[{id:"alias",text:"alias",depth:2},{id:"asset",text:"asset",depth:2},{id:"path",text:"path",depth:3},{id:"limit",text:"limit",depth:3},{id:"publicpath",text:"publicPath",depth:3},{id:"svgr",text:"svgr",depth:3},{id:"include",text:"include",depth:4},{id:"exclude",text:"exclude",depth:4},{id:"autoexternal",text:"autoExternal",depth:2},{id:"dependencies",text:"dependencies",depth:3},{id:"peerdependencies",text:"peerDependencies",depth:3},{id:"buildtype",text:"buildType",depth:2},{id:"copy",text:"copy",depth:2},{id:"define",text:"define",depth:2},{id:"dts",text:"dts",depth:2},{id:"tsconfigpath",text:"tsconfigPath",depth:3},{id:"distpath",text:"distPath",depth:3},{id:"only",text:"only",depth:3},{id:"externals",text:"externals",depth:2},{id:"format",text:"format",depth:2},{id:"input",text:"input",depth:2},{id:"jsx",text:"jsx",depth:2},{id:"minify",text:"minify",depth:2},{id:"outdir",text:"outdir",depth:2},{id:"platform",text:"platform",depth:2},{id:"sourcedir",text:"sourceDir",depth:2},{id:"sourcemap",text:"sourceMap",depth:2},{id:"splitting",text:"splitting",depth:2},{id:"style",text:"style",depth:2},{id:"less",text:"less",depth:3},{id:"lessoptions",text:"lessOptions",depth:4},{id:"additionaldata",text:"additionalData",depth:4},{id:"implementation",text:"implementation",depth:4},{id:"sass",text:"sass",depth:3},{id:"sassoptions",text:"sassOptions",depth:4},{id:"additionaldata-1",text:"additionalData",depth:4},{id:"implementation-1",text:"implementation",depth:4},{id:"postcss",text:"postcss",depth:3},{id:"inject",text:"inject",depth:3},{id:"automodules",text:"autoModules",depth:3},{id:"modules",text:"modules",depth:3},{id:"tailwind",text:"tailwind",depth:3},{id:"target",text:"target",depth:2},{id:"umdglobals",text:"umdGlobals",depth:2},{id:"umdmodulename",text:"umdModuleName",depth:2}],g="BuildConfig";function c(s){const e=Object.assign({h1:"h1",a:"a",p:"p",h2:"h2",ul:"ul",li:"li",code:"code",div:"div",h3:"h3",h4:"h4"},s.components);return n||l("CH",!1),n.Code||l("CH.Code",!0),t(i,{children:[t(e.h1,{id:"buildconfig",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#buildconfig",children:"#"}),"BuildConfig"]}),`
2
+ `,o(e.p,{children:"\u672C\u7AE0\u8282\u63CF\u8FF0\u4E86Module tools\u5173\u4E8E\u6784\u5EFA\u7684\u6240\u6709\u914D\u7F6E"}),`
3
+ `,t(e.h2,{id:"alias",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#alias",children:"#"}),"alias"]}),`
4
+ `,t(e.ul,{children:[`
5
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Record<string, string | string[]> | Function"})]}),`
6
+ `,t(e.li,{children:["default: ",o(e.code,{children:"{'@': 'src',}"})]}),`
7
+ `]}),`
8
+ `,t(e.div,{className:"island-directive tip",children:[o(e.p,{className:"island-directive-title",children:"TIP"}),o(e.div,{className:"island-directive-content",children:t(e.p,{children:["\u5BF9\u4E8E TypeScript \u9879\u76EE\uFF0C\u53EA\u9700\u8981\u5728 ",o(e.code,{children:"tsconfig.json"})," \u4E2D\u914D\u7F6E ",o(e.a,{href:"https://www.typescriptlang.org/tsconfig#paths",target:"_blank",rel:"nofollow",children:"compilerOptions.paths"}),", Module tools\u4F1A\u81EA\u52A8\u8BC6\u522B ",o(e.code,{children:"tsconfig.json"})," \u91CC\u7684\u522B\u540D\uFF0C\u56E0\u6B64\u4E0D\u9700\u8981\u989D\u5916\u914D\u7F6E ",o(e.code,{children:"alias"})," \u5B57\u6BB5\u3002"]})})]}),`
9
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"alias",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@common",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:"./src/common",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:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
10
+ `,t(e.p,{children:["\u4EE5\u4E0A\u914D\u7F6E\u5B8C\u6210\u540E\uFF0C\u5982\u679C\u5728\u4EE3\u7801\u4E2D\u5F15\u7528 ",o(e.code,{children:"@common/Foo.tsx"}),", \u5219\u4F1A\u6620\u5C04\u5230 ",o(e.code,{children:"<root>/src/common/Foo.tsx"})," \u8DEF\u5F84\u4E0A\u3002"]}),`
11
+ `,t(e.p,{children:[o(e.code,{children:"alias"})," \u7684\u503C\u5B9A\u4E49\u4E3A\u51FD\u6570\u65F6\uFF0C\u53EF\u4EE5\u63A5\u53D7\u9884\u8BBE\u7684 alias \u5BF9\u8C61\uFF0C\u5E76\u5BF9\u5176\u8FDB\u884C\u4FEE\u6539\u3002"]}),`
12
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"alias",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"alias",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:"alias",props:{style:{color:"#D8DEE9"}}},{content:"[",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@common",props:{style:{color:"#A3BE8C"}}},{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"}}},{content:"./src/common",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
13
+ `,o(e.p,{children:"\u4E5F\u53EF\u4EE5\u5728\u51FD\u6570\u4E2D\u8FD4\u56DE\u4E00\u4E2A\u65B0\u5BF9\u8C61\u4F5C\u4E3A\u6700\u7EC8\u7ED3\u679C\uFF0C\u65B0\u5BF9\u8C61\u4F1A\u8986\u76D6\u9884\u8BBE\u7684 alias \u5BF9\u8C61\u3002"}),`
14
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"alias",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"alias",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"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"@common",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:"./src/common",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"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
15
+ `,t(e.h2,{id:"asset",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#asset",children:"#"}),"asset"]}),`
16
+ `,t(e.h3,{id:"path",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#path",children:"#"}),"path"]}),`
17
+ `,t(e.p,{children:["\u9759\u6001\u8D44\u6E90\u8F93\u51FA\u8DEF\u5F84\uFF0C\u4F1A\u57FA\u4E8E",o(e.a,{href:"/zh/api/build-config/.html#outdir",children:"outdir"}),"\u8FDB\u884C\u8F93\u51FA"]}),`
18
+ `,t(e.ul,{children:[`
19
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})]}),`
20
+ `,t(e.li,{children:["default: ",o(e.code,{children:"assets"})]}),`
21
+ `]}),`
22
+ `,t(e.h3,{id:"limit",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#limit",children:"#"}),"limit"]}),`
23
+ `,o(e.p,{children:"\u6253\u5305\u65F6\u81EA\u52A8\u5185\u8054\u9759\u6001\u8D44\u6E90\u7684\u9608\u503C\uFF0C\u5C0F\u4E8E 10240 \u5B57\u8282\u7684\u8D44\u6E90\u4F1A\u88AB\u81EA\u52A8\u5185\u8054\u8FDBbundle\u4EA7\u7269\u4E2D"}),`
24
+ `,t(e.ul,{children:[`
25
+ `,t(e.li,{children:["type: ",o(e.code,{children:"number"})]}),`
26
+ `,t(e.li,{children:["default: ",o(e.code,{children:"10 * 1024"})]}),`
27
+ `]}),`
28
+ `,t(e.h3,{id:"publicpath",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#publicpath",children:"#"}),"publicPath"]}),`
29
+ `,o(e.p,{children:"\u6253\u5305\u65F6\u7ED9\u672A\u5185\u8054\u8D44\u6E90\u7684CDN\u524D\u7F00"}),`
30
+ `,t(e.ul,{children:[`
31
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})]}),`
32
+ `,t(e.li,{children:["default: ",o(e.code,{children:"undefined"})]}),`
33
+ `]}),`
34
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"asset",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"publicPath",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"https://xxx/",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
35
+ `,t(e.p,{children:["\u6B64\u65F6\uFF0C\u6240\u6709\u9759\u6001\u8D44\u6E90\u90FD\u4F1A\u6DFB\u52A0",o(e.code,{children:"https://xxx/"}),"\u524D\u7F00"]}),`
36
+ `,t(e.h3,{id:"svgr",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#svgr",children:"#"}),"svgr"]}),`
37
+ `,o(e.p,{children:"\u6253\u5305\u65F6\u5C06svg\u4F5C\u4E3A\u4E00\u4E2AReact\u7EC4\u4EF6\u5904\u7406"}),`
38
+ `,t(e.ul,{children:[`
39
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean | Object"})]}),`
40
+ `]}),`
41
+ `,t(e.h4,{id:"include",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#include",children:"#"}),"include"]}),`
42
+ `,o(e.p,{children:"\u8BBE\u5B9A\u5339\u914D\u7684svg\u6587\u4EF6"}),`
43
+ `,t(e.ul,{children:[`
44
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string | RegExp | (string | RegExp)[]"})]}),`
45
+ `,t(e.li,{children:["default: ",o(e.code,{children:"/\\.svg$/"})]}),`
46
+ `]}),`
47
+ `,t(e.h4,{id:"exclude",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#exclude",children:"#"}),"exclude"]}),`
48
+ `,o(e.p,{children:"\u8BBE\u5B9A\u4E0D\u5339\u914D\u7684svg\u6587\u4EF6"}),`
49
+ `,t(e.ul,{children:[`
50
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string | RegExp | (string | RegExp)[]"})]}),`
51
+ `,t(e.li,{children:["default: ",o(e.code,{children:"undefined"})]}),`
52
+ `]}),`
53
+ `,t(e.h2,{id:"autoexternal",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#autoexternal",children:"#"}),"autoExternal"]}),`
54
+ `,o(e.p,{children:"\u81EA\u52A8\u5916\u7F6E\u9879\u76EE\u7684dependencies\u548CpeerDependencies\uFF0C\u4E0D\u4F1A\u5C06\u5176\u6253\u5305\u5230\u6700\u7EC8\u7684bundle\u4E2D"}),`
55
+ `,t(e.ul,{children:[`
56
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean | Object"})]}),`
57
+ `,t(e.li,{children:["default: ",o(e.code,{children:"true"})]}),`
58
+ `]}),`
59
+ `,t(e.h3,{id:"dependencies",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#dependencies",children:"#"}),"dependencies"]}),`
60
+ `,o(e.p,{children:"\u662F\u5426\u9700\u8981\u5916\u7F6E\u9879\u76EE\u7684dep\u4F9D\u8D56"}),`
61
+ `,t(e.ul,{children:[`
62
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean"})]}),`
63
+ `,t(e.li,{children:["default: ",o(e.code,{children:"true"})]}),`
64
+ `]}),`
65
+ `,t(e.h3,{id:"peerdependencies",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#peerdependencies",children:"#"}),"peerDependencies"]}),`
66
+ `,o(e.p,{children:"\u662F\u5426\u9700\u8981\u5916\u7F6E\u9879\u76EE\u7684peerDep\u4F9D\u8D56"}),`
67
+ `,t(e.ul,{children:[`
68
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean"})]}),`
69
+ `,t(e.li,{children:["default: ",o(e.code,{children:"true"})]}),`
70
+ `]}),`
71
+ `,t(e.h2,{id:"buildtype",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#buildtype",children:"#"}),"buildType"]}),`
72
+ `,t(e.p,{children:["\u6784\u5EFA\u7C7B\u578B\uFF0C",o(e.code,{children:"bundle"}),"\u4F1A\u6253\u5305\u4F60\u7684\u4EE3\u7801\uFF0C",o(e.code,{children:"bundleless"}),"\u53EA\u505A\u4EE3\u7801\u7684\u8F6C\u6362"]}),`
73
+ `,t(e.ul,{children:[`
74
+ `,t(e.li,{children:["type: ",o(e.code,{children:"'bundle' | 'bundleless'"})]}),`
75
+ `,t(e.li,{children:["default: ",o(e.code,{children:"bundle"})]}),`
76
+ `]}),`
77
+ `,t(e.h2,{id:"copy",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#copy",children:"#"}),"copy"]}),`
78
+ `,o(e.p,{children:"\u5C06\u6307\u5B9A\u7684\u6587\u4EF6\u6216\u76EE\u5F55\u62F7\u8D1D\u5230\u6784\u5EFA\u8F93\u51FA\u76EE\u5F55\u4E2D"}),`
79
+ `,t(e.ul,{children:[`
80
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Array"})]}),`
81
+ `,t(e.li,{children:["default: ",o(e.code,{children:"[]"})]}),`
82
+ `]}),`
83
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"copy",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" [",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"from",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"./src/assets",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"to",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"''",props:{style:{color:"#ECEFF4"}}},{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:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
84
+ `,t(e.p,{children:["\u6570\u7EC4\u8BBE\u7F6E\u53C2\u8003\uFF1A",o(e.a,{href:"https://github.com/webpack-contrib/copy-webpack-plugin#patterns",target:"_blank",rel:"nofollow",children:"copy-webpack-plugin patterns"})]}),`
85
+ `,t(e.h2,{id:"define",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#define",children:"#"}),"define"]}),`
86
+ `,o(e.p,{children:"\u5B9A\u4E49\u5168\u5C40\u53D8\u91CF\uFF0C\u4F1A\u88AB\u6CE8\u5165\u5230\u4EE3\u7801\u4E2D"}),`
87
+ `,t(e.ul,{children:[`
88
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Record<string, string>"})]}),`
89
+ `,t(e.li,{children:["default: ",o(e.code,{children:"{}"})]}),`
90
+ `]}),`
91
+ `,t(e.p,{children:["\u7531\u4E8E",o(e.code,{children:"define"}),"\u529F\u80FD\u662F\u7531\u5168\u5C40\u6587\u672C\u66FF\u6362\u5B9E\u73B0\u7684\uFF0C\u6240\u4EE5\u9700\u8981\u4FDD\u8BC1\u5168\u5C40\u53D8\u91CF\u503C\u4E3A\u5B57\u7B26\u4E32\uFF0C\u66F4\u4E3A\u5B89\u5168\u7684\u505A\u6CD5\u662F\u5C06\u6BCF\u4E2A\u5168\u5C40\u53D8\u91CF\u7684\u503C\u8F6C\u5316\u4E3A\u5B57\u7B26\u4E32\uFF0C\u4F7F\u7528",o(e.code,{children:"JSON.stringify"}),"\u8FDB\u884C\u8F6C\u6362\uFF0C\u5982\u4E0B\u6240\u793A\uFF1A"]}),`
92
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"define",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"VERSION",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"JSON",props:{style:{color:"#81A1C1"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"stringify",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"1.0",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
93
+ `,t(e.div,{className:"island-directive tip",children:[o(e.p,{className:"island-directive-title",children:"TIP"}),t(e.div,{className:"island-directive-content",children:[o(e.p,{children:"\u4E3A\u4E86\u9632\u6B62\u5168\u5C40\u66FF\u6362\u66FF\u6362\u8FC7\u5EA6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u65F6\u9075\u5FAA\u4EE5\u4E0B\u4E24\u4E2A\u539F\u5219\uFF1A"}),t(e.ul,{children:[`
94
+ `,o(e.li,{children:"\u5168\u5C40\u5E38\u91CF\u4F7F\u7528\u5927\u5199"}),`
95
+ `,o(e.li,{children:"\u81EA\u5B9A\u4E49\u5168\u5C40\u5E38\u91CF\u524D\u7F00\u540E\u7F00\uFF0C\u786E\u4FDD\u72EC\u4E00\u65E0\u4E8C"}),`
96
+ `]})]})]}),`
97
+ `,t(e.h2,{id:"dts",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#dts",children:"#"}),"dts"]}),`
98
+ `,o(e.p,{children:"dts\u6587\u4EF6\u751F\u6210\u76F8\u5173\u914D\u7F6E\uFF0C\u9ED8\u8BA4\u4F1A\u751F\u6210"}),`
99
+ `,t(e.ul,{children:[`
100
+ `,t(e.li,{children:["type: ",o(e.code,{children:"false | Object"})]}),`
101
+ `,t(e.li,{children:["default: ",o(e.code,{children:"{}"})]}),`
102
+ `]}),`
103
+ `,t(e.h3,{id:"tsconfigpath",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#tsconfigpath",children:"#"}),"tsconfigPath"]}),`
104
+ `,o(e.p,{children:"tsconfig\u6587\u4EF6\u7684\u8DEF\u5F84"}),`
105
+ `,t(e.ul,{children:[`
106
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})]}),`
107
+ `,t(e.li,{children:["default: ",o(e.code,{children:"./tsconfig.json"})]}),`
108
+ `]}),`
109
+ `,t(e.h3,{id:"distpath",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#distpath",children:"#"}),"distPath"]}),`
110
+ `,t(e.p,{children:["dts\u6587\u4EF6\u7684\u8F93\u51FA\u8DEF\u5F84,\u57FA\u4E8E",o(e.a,{href:"/'/zh/api/build-config/.html#outdir'",children:"outdir"}),"\u8FDB\u884C\u8F93\u51FA"]}),`
111
+ `,t(e.ul,{children:[`
112
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})]}),`
113
+ `,t(e.li,{children:["default: ",o(e.code,{children:"./types"})]}),`
114
+ `]}),`
115
+ `,t(e.h3,{id:"only",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#only",children:"#"}),"only"]}),`
116
+ `,o(e.p,{children:"\u53EA\u751F\u6210dts\u6587\u4EF6\uFF0C\u4E0D\u751F\u6210js\u6587\u4EF6"}),`
117
+ `,t(e.ul,{children:[`
118
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean"})]}),`
119
+ `,t(e.li,{children:["default: ",o(e.code,{children:"false"})]}),`
120
+ `]}),`
121
+ `,t(e.h2,{id:"externals",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#externals",children:"#"}),"externals"]}),`
122
+ `,o(e.p,{children:"\u914D\u7F6E\u5916\u90E8\u4F9D\u8D56\uFF0C\u4E0D\u4F1A\u88AB\u6253\u5305\u5230\u6700\u7EC8\u7684bundle\u4E2D"}),`
123
+ `,t(e.ul,{children:[`
124
+ `,t(e.li,{children:["type: ",o(e.code,{children:"(string | RegExp)[]"})]}),`
125
+ `,t(e.li,{children:["default: ",o(e.code,{children:"[]"})]}),`
126
+ `]}),`
127
+ `,t(e.h2,{id:"format",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#format",children:"#"}),"format"]}),`
128
+ `,t(e.p,{children:["js\u4EA7\u7269\u8F93\u51FA\u7684\u683C\u5F0F,\u5176\u4E2D",o(e.code,{children:"iife"}),"\u548C",o(e.code,{children:"umd"}),"\u53EA\u80FD\u5728",o(e.code,{children:"buildType"}),"\u4E3A",o(e.code,{children:"bundle"}),"\u65F6\u751F\u6548"]}),`
129
+ `,t(e.ul,{children:[`
130
+ `,t(e.li,{children:["type: ",o(e.code,{children:"'esm' | 'cjs' | 'iife' | 'umd'"})]}),`
131
+ `,t(e.li,{children:["default: ",o(e.code,{children:"cjs"})]}),`
132
+ `]}),`
133
+ `,t(e.h2,{id:"input",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#input",children:"#"}),"input"]}),`
134
+ `,o(e.p,{children:"\u6307\u5B9A\u6784\u5EFA\u7684\u5165\u53E3\u6587\u4EF6,\u6570\u7EC4\u5F62\u5F0F\u53EF\u4EE5\u6307\u5B9A\u76EE\u5F55"}),`
135
+ `,t(e.ul,{children:[`
136
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string[] | Record<string, string>"})]}),`
137
+ `,t(e.li,{children:["default: ",o(e.code,{children:"bundle"}),"\u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u4E3A",o(e.code,{children:"['src/index.ts']"}),"\uFF0C",o(e.code,{children:"bundleless"}),"\u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u4E3A",o(e.code,{children:"['src']"})]}),`
138
+ `]}),`
139
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"input",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" [",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"src/index.ts",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:"src/index2.ts",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"]",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
140
+ `,t(e.h2,{id:"jsx",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#jsx",children:"#"}),"jsx"]}),`
141
+ `,o(e.p,{children:"\u6307\u5B9Ajsx\u7684\u7F16\u8BD1\u65B9\u5F0F, \u9ED8\u8BA4\u652F\u6301React17,\u81EA\u52A8\u6CE8\u5165jsx\u8FD0\u884C\u65F6\u4EE3\u7801"}),`
142
+ `,t(e.ul,{children:[`
143
+ `,t(e.li,{children:["type: ",o(e.code,{children:"automatic | classic"})]}),`
144
+ `,t(e.li,{children:["default: ",o(e.code,{children:"automatic"})]}),`
145
+ `]}),`
146
+ `,t(e.h2,{id:"minify",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#minify",children:"#"}),"minify"]}),`
147
+ `,t(e.p,{children:["\u4F7F\u7528esbuild\u6216\u8005terser\u538B\u7F29\u4EE3\u7801\uFF0C\u4E5F\u53EF\u4EE5\u4F20\u5165",o(e.a,{href:"https://github.com/terser/terser#minify-options",target:"_blank",rel:"nofollow",children:"terserOptions"})]}),`
148
+ `,t(e.ul,{children:[`
149
+ `,t(e.li,{children:["type: ",o(e.code,{children:"'terser' | 'esbuild' | false | Object"})]}),`
150
+ `,t(e.li,{children:["default: ",o(e.code,{children:"false"})]}),`
151
+ `]}),`
152
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"minify",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"compress",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"drop_console",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"true",props:{style:{color:"#81A1C1"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]}],lang:"js"},annotations:[]}]}),`
153
+ `,t(e.h2,{id:"outdir",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#outdir",children:"#"}),"outdir"]}),`
154
+ `,o(e.p,{children:"\u6307\u5B9A\u6784\u5EFA\u7684\u8F93\u51FA\u76EE\u5F55"}),`
155
+ `,t(e.ul,{children:[`
156
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})]}),`
157
+ `,t(e.li,{children:["default: ",o(e.code,{children:"dist"})]}),`
158
+ `]}),`
159
+ `,t(e.h2,{id:"platform",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#platform",children:"#"}),"platform"]}),`
160
+ `,t(e.p,{children:["\u9ED8\u8BA4\u751F\u6210\u7528\u4E8Enode\u73AF\u5883\u4E0B\u7684\u4EE3\u7801\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u6307\u5B9A\u4E3A",o(e.code,{children:"browser"}),"\uFF0C\u4F1A\u751F\u6210\u7528\u4E8E\u6D4F\u89C8\u5668\u73AF\u5883\u7684\u4EE3\u7801"]}),`
161
+ `,t(e.ul,{children:[`
162
+ `,t(e.li,{children:["type: ",o(e.code,{children:"'browser' | 'node'"})]}),`
163
+ `,t(e.li,{children:["default: ",o(e.code,{children:"node"})]}),`
164
+ `]}),`
165
+ `,t(e.h2,{id:"sourcedir",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#sourcedir",children:"#"}),"sourceDir"]}),`
166
+ `,t(e.p,{children:["\u6307\u5B9A\u6784\u5EFA\u7684\u6E90\u7801\u76EE\u5F55,\u9ED8\u8BA4\u4E3A",o(e.code,{children:"src"}),",\u7528\u4E8E\u5728",o(e.code,{children:"bundleless"}),"\u6784\u5EFA\u65F6\u57FA\u4E8E\u6E90\u7801\u76EE\u5F55\u7ED3\u6784\u751F\u6210\u5BF9\u5E94\u7684\u4EA7\u7269\u76EE\u5F55"]}),`
167
+ `,t(e.ul,{children:[`
168
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})]}),`
169
+ `,t(e.li,{children:["default: ",o(e.code,{children:"src"})]}),`
170
+ `]}),`
171
+ `,t(e.h2,{id:"sourcemap",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#sourcemap",children:"#"}),"sourceMap"]}),`
172
+ `,o(e.p,{children:"\u662F\u5426\u751F\u6210sourceMap"}),`
173
+ `,t(e.ul,{children:[`
174
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean | 'inline' | 'external'"})]}),`
175
+ `,t(e.li,{children:["default: ",o(e.code,{children:"false"})]}),`
176
+ `]}),`
177
+ `,t(e.h2,{id:"splitting",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#splitting",children:"#"}),"splitting"]}),`
178
+ `,o(e.p,{children:"\u662F\u5426\u5F00\u542F\u4EE3\u7801\u5206\u5272"}),`
179
+ `,t(e.ul,{children:[`
180
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean"})]}),`
181
+ `,t(e.li,{children:["default: ",o(e.code,{children:"false"})]}),`
182
+ `]}),`
183
+ `,t(e.h2,{id:"style",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#style",children:"#"}),"style"]}),`
184
+ `,o(e.p,{children:"\u914D\u7F6E\u6837\u5F0F\u76F8\u5173\u7684\u914D\u7F6E"}),`
185
+ `,t(e.h3,{id:"less",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#less",children:"#"}),"less"]}),`
186
+ `,o(e.p,{children:"less\u76F8\u5173\u914D\u7F6E"}),`
187
+ `,t(e.h4,{id:"lessoptions",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#lessoptions",children:"#"}),"lessOptions"]}),`
188
+ `,t(e.p,{children:["\u8BE6\u7EC6\u914D\u7F6E\u53C2\u8003",o(e.a,{href:"https://less.bootcss.com/usage/#less-options",target:"_blank",rel:"nofollow",children:"less"})]}),`
189
+ `,t(e.ul,{children:[`
190
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Object"})]}),`
191
+ `,t(e.li,{children:["default: ",o(e.code,{children:"{ javascriptEnabled: true }"})]}),`
192
+ `]}),`
193
+ `,t(e.h4,{id:"additionaldata",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#additionaldata",children:"#"}),"additionalData"]}),`
194
+ `,t(e.p,{children:["\u5728\u5165\u53E3\u6587\u4EF6\u8D77\u59CB\u6DFB\u52A0 ",o(e.code,{children:"Less"})," \u4EE3\u7801\u3002"]}),`
195
+ `,t(e.ul,{children:[`
196
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})]}),`
197
+ `,t(e.li,{children:["default: ",o(e.code,{children:"undefined"})]}),`
198
+ `]}),`
199
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"style",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"less",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"additionalData",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:"@base-color: #c6538c;",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:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[]}],lang:"js"},annotations:[]}]}),`
200
+ `,t(e.h4,{id:"implementation",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#implementation",children:"#"}),"implementation"]}),`
201
+ `,t(e.p,{children:["\u914D\u7F6E ",o(e.code,{children:"Less"})," \u4F7F\u7528\u7684\u5B9E\u73B0\u5E93\uFF0C\u5728\u4E0D\u6307\u5B9A\u7684\u60C5\u51B5\u4E0B\uFF0C\u4F7F\u7528\u7684\u5185\u7F6E\u7248\u672C\u662F",o(e.code,{children:"4.1.3"})]}),`
202
+ `,t(e.ul,{children:[`
203
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string | Object"})]}),`
204
+ `,t(e.li,{children:["default: ",o(e.code,{children:"undefined"})]}),`
205
+ `]}),`
206
+ `,t(e.p,{children:[o(e.code,{children:"Object"})," \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A ",o(e.code,{children:"Less"})," \u7684\u5B9E\u73B0\u5E93"]}),`
207
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"style",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"less",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"implementation",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"require",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"less",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
208
+ `,t(e.p,{children:[o(e.code,{children:"string"})," \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A ",o(e.code,{children:"Less"})," \u7684\u5B9E\u73B0\u5E93\u7684\u8DEF\u5F84"]}),`
209
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"style",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"less",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"implementation",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"require",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"resolve",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"less",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
210
+ `,t(e.h3,{id:"sass",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#sass",children:"#"}),"sass"]}),`
211
+ `,o(e.p,{children:"sass\u76F8\u5173\u914D\u7F6E"}),`
212
+ `,t(e.h4,{id:"sassoptions",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#sassoptions",children:"#"}),"sassOptions"]}),`
213
+ `,t(e.p,{children:["\u8BE6\u7EC6\u914D\u7F6E\u53C2\u8003",o(e.a,{href:"https://github.com/sass/node-sass#options",target:"_blank",rel:"nofollow",children:"node-sass"})]}),`
214
+ `,t(e.ul,{children:[`
215
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Object"})]}),`
216
+ `,t(e.li,{children:["default: ",o(e.code,{children:"{}"})]}),`
217
+ `]}),`
218
+ `,t(e.h4,{id:"additionaldata-1",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#additionaldata-1",children:"#"}),"additionalData"]}),`
219
+ `,t(e.p,{children:["\u5728\u5165\u53E3\u6587\u4EF6\u8D77\u59CB\u6DFB\u52A0 ",o(e.code,{children:"Sass"})," \u4EE3\u7801\u3002"]}),`
220
+ `,t(e.ul,{children:[`
221
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string | Function"})]}),`
222
+ `,t(e.li,{children:["default: ",o(e.code,{children:"undefined"})]}),`
223
+ `]}),`
224
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"style",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"sass",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"additionalData",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:"$base-color: #c6538c;",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:" $border-dark: rgba($base-color, 0.88);",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:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
225
+ `,t(e.h4,{id:"implementation-1",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#implementation-1",children:"#"}),"implementation"]}),`
226
+ `,t(e.p,{children:["\u914D\u7F6E ",o(e.code,{children:"Sass"})," \u4F7F\u7528\u7684\u5B9E\u73B0\u5E93\uFF0C\u5728\u4E0D\u6307\u5B9A\u7684\u60C5\u51B5\u4E0B\uFF0C\u4F7F\u7528\u7684\u5185\u7F6E\u7248\u672C\u662F",o(e.code,{children:"1.5.4"})]}),`
227
+ `,t(e.ul,{children:[`
228
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string | Object"})]}),`
229
+ `,t(e.li,{children:["default: ",o(e.code,{children:"undefined"})]}),`
230
+ `]}),`
231
+ `,t(e.p,{children:[o(e.code,{children:"Object"})," \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A ",o(e.code,{children:"Sass"})," \u7684\u5B9E\u73B0\u5E93"]}),`
232
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"style",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"sass",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"implementation",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"require",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"sass",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
233
+ `,t(e.p,{children:[o(e.code,{children:"string"})," \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A ",o(e.code,{children:"Sass"})," \u7684\u5B9E\u73B0\u5E93\u7684\u8DEF\u5F84"]}),`
234
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"style",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"sass",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"implementation",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"require",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"resolve",props:{style:{color:"#88C0D0"}}},{content:"(",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"sass",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:")",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
235
+ `,t(e.h3,{id:"postcss",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#postcss",children:"#"}),"postcss"]}),`
236
+ `,t(e.ul,{children:[`
237
+ `,o(e.li,{children:"plugins"}),`
238
+ `,o(e.li,{children:"processOptions"}),`
239
+ `]}),`
240
+ `,t(e.p,{children:["\u8BE6\u7EC6\u914D\u7F6E\u67E5\u770B",o(e.a,{href:"https://github.com/postcss/postcss#options",target:"_blank",rel:"nofollow",children:"postcss"})]}),`
241
+ `,t(e.h3,{id:"inject",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#inject",children:"#"}),"inject"]}),`
242
+ `,o(e.p,{children:"\u914D\u7F6E\u6253\u5305\u6A21\u5F0F\u4E0B\u662F\u5426\u5C06style\u63D2\u5165\u5230js\u4E2D"}),`
243
+ `,t(e.ul,{children:[`
244
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean"})]}),`
245
+ `,t(e.li,{children:["default: ",o(e.code,{children:"false"})]}),`
246
+ `]}),`
247
+ `,t(e.h3,{id:"automodules",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#automodules",children:"#"}),"autoModules"]}),`
248
+ `,o(e.p,{children:"\u6839\u636E\u6587\u4EF6\u540D\u81EA\u52A8\u542F\u7528 CSS Modules\u3002"}),`
249
+ `,t(e.ul,{children:[`
250
+ `,t(e.li,{children:["type: ",o(e.code,{children:"boolean | RegExp"})]}),`
251
+ `,t(e.li,{children:["default: ",o(e.code,{children:"true "})]}),`
252
+ `]}),`
253
+ `,t(e.p,{children:[o(e.code,{children:"true"})," : \u4E3A\u4EE5 ",o(e.code,{children:".module.css"})," ",o(e.code,{children:".module.less"})," ",o(e.code,{children:".module.scss"})," ",o(e.code,{children:".module.sass"})," \u6587\u4EF6\u540D\u7ED3\u5C3E\u7684\u6837\u5F0F\u6587\u4EF6\u542F\u7528 CSS Modules"]}),`
254
+ `,t(e.p,{children:[o(e.code,{children:"false"})," : \u7981\u7528 CSS Modules."]}),`
255
+ `,t(e.p,{children:[o(e.code,{children:"RegExp"})," : \u4E3A\u5339\u914D\u6B63\u5219\u6761\u4EF6\u7684\u6240\u6709\u6587\u4EF6\u542F\u7528 CSS Modules."]}),`
256
+ `,t(e.h3,{id:"modules",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#modules",children:"#"}),"modules"]}),`
257
+ `,o(e.p,{children:"CSS Modules\u914D\u7F6E"}),`
258
+ `,t(e.ul,{children:[`
259
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Object"})]}),`
260
+ `,t(e.li,{children:["default: ",o(e.code,{children:"{}"})]}),`
261
+ `]}),`
262
+ `,t(e.p,{children:["\u4E00\u4E2A\u5E38\u7528\u7684\u914D\u7F6E\u662F",o(e.code,{children:"localsConvention"}),"\uFF0C\u5B83\u53EF\u4EE5\u6539\u53D8css modules\u7684\u7C7B\u540D\u751F\u6210\u89C4\u5219"]}),`
263
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"style",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"modules",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"localsConvention",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"camelCaseOnly",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:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
264
+ `,o(e.p,{children:"\u5BF9\u4E8E\u4EE5\u4E0B\u6837\u5F0F"}),`
265
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:".",props:{style:{color:"#ECEFF4"}}},{content:"box-title",props:{style:{color:"#8FBCBB"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"color",props:{style:{color:"#D8DEE9"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"red;",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"css"},annotations:[]}]}),`
266
+ `,t(e.p,{children:["\u4F60\u53EF\u4EE5\u4F7F\u7528",o(e.code,{children:"styles.boxTitle"}),"\u6765\u8BBF\u95EE"]}),`
267
+ `,t(e.p,{children:["\u8BE6\u7EC6\u914D\u7F6E\u67E5\u770B",o(e.a,{href:"https://github.com/madyankin/postcss-modules#usage",target:"_blank",rel:"nofollow",children:"postcss-modules"})]}),`
268
+ `,t(e.h3,{id:"tailwind",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#tailwind",children:"#"}),"tailwind"]}),`
269
+ `,o(e.p,{children:"tailwindcss\u76F8\u5173\u914D\u7F6E"}),`
270
+ `,t(e.ul,{children:[`
271
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Object | Function"})]}),`
272
+ `,t(e.li,{children:["default: ",o(e.code,{children:"\u89C1\u4E0B\u65B9\u914D\u7F6E\u8BE6\u60C5"})]}),`
273
+ `]}),`
274
+ `,`
275
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"const",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"tailwind",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:"purge",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"enabled",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"options",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"env",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"===",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"production",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"content",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" [",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"./config/html/**/*.html",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"}}},{content:"./config/html/**/*.ejs",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"}}},{content:"./config/html/**/*.hbs",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"}}},{content:"./src/**/*",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:"layers",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" [",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"utilities",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"]",props:{style:{color:"#D8DEE9FF"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#ECEFF4"}}},{content:"// https://tailwindcss.com/docs/upcoming-changes",props:{style:{color:"#616E88"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"future",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"removeDeprecatedGapUtilities",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"false",props:{style:{color:"#81A1C1"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"purgeLayersByDefault",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"true",props:{style:{color:"#81A1C1"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"defaultLineHeights",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"false",props:{style:{color:"#81A1C1"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"standardFontWeights",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"false",props:{style:{color:"#81A1C1"}}},{content:",",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
276
+ `,t(e.p,{children:["\u503C\u4E3A ",o(e.code,{children:"Object"})," \u7C7B\u578B\u65F6\uFF0C\u4E0E\u9ED8\u8BA4\u914D\u7F6E\u901A\u8FC7 ",o(e.code,{children:"Object.assign"})," \u5408\u5E76\u3002"]}),`
277
+ `,t(e.p,{children:["\u503C\u4E3A ",o(e.code,{children:"Function"})," \u7C7B\u578B\u65F6\uFF0C\u51FD\u6570\u8FD4\u56DE\u7684\u5BF9\u8C61\u4E0E\u9ED8\u8BA4\u914D\u7F6E\u901A\u8FC7 ",o(e.code,{children:"Object.assign"})," \u5408\u5E76\u3002"]}),`
278
+ `,t(e.p,{children:["\u4E0D\u5141\u8BB8\u51FA\u73B0 ",o(e.code,{children:"theme"})," \u5C5E\u6027\uFF0C\u5426\u5219\u4F1A\u6784\u5EFA\u5931\u8D25, \u4F7F\u7528 ",o(e.a,{href:"/zh/api/design-system.html",children:o(e.code,{children:"designSystem"})})," \u4F5C\u4E3A ",o(e.code,{children:"Tailwind CSS Theme"})," \u914D\u7F6E\u3002"]}),`
279
+ `,t(e.p,{children:["\u5176\u4ED6\u7684\u4F7F\u7528\u65B9\u5F0F\u548C Tailwind CSS \u4E00\u81F4: ",o(e.a,{href:"https://tailwindcss.com/docs/configuration",target:"_blank",rel:"nofollow",children:"\u5FEB\u901F\u4F20\u9001\u95E8"}),"\u3002"]}),`
280
+ `,t(e.h2,{id:"target",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#target",children:"#"}),"target"]}),`
281
+ `,o(e.p,{children:"\u6307\u5B9A\u6784\u5EFA\u7684\u76EE\u6807\u73AF\u5883"}),`
282
+ `,t(e.ul,{children:[`
283
+ `,t(e.li,{children:["type: ",o(e.code,{children:"'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext'"})]}),`
284
+ `,t(e.li,{children:["default: ",o(e.code,{children:"'es2015'"})]}),`
285
+ `]}),`
286
+ `,t(e.h2,{id:"umdglobals",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#umdglobals",children:"#"}),"umdGlobals"]}),`
287
+ `,o(e.p,{children:"\u6307\u5B9Aumd\u4EA7\u7269\u5916\u90E8\u5BFC\u5165\u7684\u5168\u5C40\u53D8\u91CF"}),`
288
+ `,t(e.ul,{children:[`
289
+ `,t(e.li,{children:["type: ",o(e.code,{children:"Record<string, string>"})]}),`
290
+ `,t(e.li,{children:["default: ",o(e.code,{children:"{}"})]}),`
291
+ `]}),`
292
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"umdGlobals",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"react",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"React",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"}}},{content:"react-dom",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:"ReactDOM",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:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
293
+ `,t(e.p,{children:["\u6B64\u65F6\uFF0C",o(e.code,{children:"react"}),"\u548C",o(e.code,{children:"react-dom"}),"\u4F1A\u88AB\u770B\u505A\u662F\u5916\u90E8\u5BFC\u5165\u7684\u5168\u5C40\u53D8\u91CF\uFF0C\u4E0D\u4F1A\u88AB\u6253\u5305\u8FDBumd\u4EA7\u7269\u4E2D\uFF0C\u800C\u662F\u901A\u8FC7",o(e.code,{children:"global.React"}),"\u548C",o(e.code,{children:"global.ReactDOM"}),"\u7684\u65B9\u5F0F\u8FDB\u884C\u8BBF\u95EE"]}),`
294
+ `,t(e.h2,{id:"umdmodulename",children:[o(e.a,{className:"header-anchor","aria-hidden":"true",href:"#umdmodulename",children:"#"}),"umdModuleName"]}),`
295
+ `,o(e.p,{children:"\u6307\u5B9Aumd\u4EA7\u7269\u7684\u6A21\u5757\u540D"}),`
296
+ `,t(e.ul,{children:[`
297
+ `,t(e.li,{children:["type: ",o(e.code,{children:"string"})," | ",o(e.code,{children:"Function"})]}),`
298
+ `,t(e.li,{children:["default: ",o(e.code,{children:"name => name"})]}),`
299
+ `]}),`
300
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{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:"#88C0D0"}}},{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:"umdModuleName",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:"myLib",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:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]}),`
301
+ `,t(e.p,{children:["\u6B64\u65F6umd\u4EA7\u7269\u4F1A\u53BB\u6302\u8F7D\u5230",o(e.code,{children:"global.myLib"}),"\u4E0A"]}),`
302
+ `,t(e.div,{className:"island-directive tip",children:[o(e.p,{className:"island-directive-title",children:"TIP"}),o(e.div,{className:"island-directive-content",children:t(e.ul,{children:[`
303
+ `,o(e.li,{children:"\u9700\u8981\u9075\u5B88umd\u89C4\u8303\uFF0Cumd\u4EA7\u7269\u7684\u6A21\u5757\u540D\u4E0D\u80FD\u548C\u5168\u5C40\u53D8\u91CF\u540D\u51B2\u7A81"}),`
304
+ `,t(e.li,{children:["\u6A21\u5757\u540D\u4E0D\u80FD\u542B\u6709",o(e.code,{children:"-"}),"\uFF0C",o(e.code,{children:"@"}),"\uFF0C",o(e.code,{children:"/"}),"\u7B49\u7279\u6B8A\u5B57\u7B26"]}),`
305
+ `]})})]}),`
306
+ `,o(e.p,{children:"\u540C\u65F6\u51FD\u6570\u5F62\u5F0F\u53EF\u4EE5\u63A5\u6536\u4E00\u4E2A\u53C2\u6570\uFF0C\u4E3A\u5F53\u524D\u6253\u5305\u6587\u4EF6\u7684\u8F93\u51FA\u8DEF\u5F84"}),`
307
+ `,o(n.Code,{codeConfig:r,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",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:"{",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"build",props:{style:{color:"#88C0D0"}}},{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:"#88C0D0"}}},{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:"umdModuleName",props:{style:{color:"#88C0D0"}}},{content:":",props:{style:{color:"#ECEFF4"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"(",props:{style:{color:"#ECEFF4"}}},{content:"path",props:{style:{color:"#D8DEE9"}}},{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:"if",props:{style:{color:"#81A1C1"}}},{content:" (",props:{style:{color:"#D8DEE9FF"}}},{content:"path",props:{style:{color:"#D8DEE9"}}},{content:".",props:{style:{color:"#ECEFF4"}}},{content:"includes",props:{style:{color:"#88C0D0"}}},{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:"#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:"myLib",props:{style:{color:"#A3BE8C"}}},{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:"else",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:"myLib2",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:";",props:{style:{color:"#81A1C1"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"},",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"}",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"}",props:{style:{color:"#ECEFF4"}}}]}],lang:"js"},annotations:[]}]})]})}function m(s={}){const{wrapper:e}=s.components||{};return e?o(e,Object.assign({},s,{children:o(c,s)})):c(s)}function l(s,e){throw new Error("Expected "+(e?"component":"object")+" `"+s+"` to be defined: you likely forgot to import, pass, or provide it.")}const D="2022/12/1 20:09:37",f=`# BuildConfig
308
+ \u672C\u7AE0\u8282\u63CF\u8FF0\u4E86Module tools\u5173\u4E8E\u6784\u5EFA\u7684\u6240\u6709\u914D\u7F6E
309
+ ## alias
310
+ - type: \`Record<string, string | string[]> | Function\`
311
+ - default: \`{'@': 'src',}\`
312
+
313
+ :::tip
314
+ \u5BF9\u4E8E TypeScript \u9879\u76EE\uFF0C\u53EA\u9700\u8981\u5728 \`tsconfig.json\` \u4E2D\u914D\u7F6E [compilerOptions.paths](https://www.typescriptlang.org/tsconfig#paths), Module tools\u4F1A\u81EA\u52A8\u8BC6\u522B \`tsconfig.json\` \u91CC\u7684\u522B\u540D\uFF0C\u56E0\u6B64\u4E0D\u9700\u8981\u989D\u5916\u914D\u7F6E \`alias\` \u5B57\u6BB5\u3002
315
+ :::
316
+
317
+ \`\`\`js
318
+ export default {
319
+ build: {
320
+ alias: {
321
+ '@common': './src/common',
322
+ },
323
+ },
324
+ };
325
+ \`\`\`
326
+
327
+ \u4EE5\u4E0A\u914D\u7F6E\u5B8C\u6210\u540E\uFF0C\u5982\u679C\u5728\u4EE3\u7801\u4E2D\u5F15\u7528 \`@common/Foo.tsx\`, \u5219\u4F1A\u6620\u5C04\u5230 \`<root>/src/common/Foo.tsx\` \u8DEF\u5F84\u4E0A\u3002
328
+
329
+ \`alias\` \u7684\u503C\u5B9A\u4E49\u4E3A\u51FD\u6570\u65F6\uFF0C\u53EF\u4EE5\u63A5\u53D7\u9884\u8BBE\u7684 alias \u5BF9\u8C61\uFF0C\u5E76\u5BF9\u5176\u8FDB\u884C\u4FEE\u6539\u3002
330
+
331
+ \`\`\`js
332
+ export default {
333
+ build: {
334
+ alias: alias => {
335
+ alias['@common'] = './src/common';
336
+ },
337
+ },
338
+ };
339
+ \`\`\`
340
+
341
+ \u4E5F\u53EF\u4EE5\u5728\u51FD\u6570\u4E2D\u8FD4\u56DE\u4E00\u4E2A\u65B0\u5BF9\u8C61\u4F5C\u4E3A\u6700\u7EC8\u7ED3\u679C\uFF0C\u65B0\u5BF9\u8C61\u4F1A\u8986\u76D6\u9884\u8BBE\u7684 alias \u5BF9\u8C61\u3002
342
+
343
+ \`\`\`js
344
+ export default {
345
+ build: {
346
+ alias: alias => {
347
+ return {
348
+ '@common': './src/common',
349
+ };
350
+ },
351
+ },
352
+ };
353
+ \`\`\`
354
+
355
+ ## asset
356
+
357
+ ### path
358
+ \u9759\u6001\u8D44\u6E90\u8F93\u51FA\u8DEF\u5F84\uFF0C\u4F1A\u57FA\u4E8E[outdir](/zh/api/build-config/#outdir)\u8FDB\u884C\u8F93\u51FA
359
+
360
+ - type: \`string\`
361
+ - default: \`assets\`
362
+
363
+ ### limit
364
+ \u6253\u5305\u65F6\u81EA\u52A8\u5185\u8054\u9759\u6001\u8D44\u6E90\u7684\u9608\u503C\uFF0C\u5C0F\u4E8E 10240 \u5B57\u8282\u7684\u8D44\u6E90\u4F1A\u88AB\u81EA\u52A8\u5185\u8054\u8FDBbundle\u4EA7\u7269\u4E2D
365
+
366
+ - type: \`number\`
367
+ - default: \`10 * 1024\`
368
+
369
+ ### publicPath
370
+ \u6253\u5305\u65F6\u7ED9\u672A\u5185\u8054\u8D44\u6E90\u7684CDN\u524D\u7F00
371
+ - type: \`string\`
372
+ - default: \`undefined\`
373
+ \`\`\`js
374
+ export default {
375
+ build: {
376
+ asset: {
377
+ publicPath: 'https://xxx/'
378
+ }
379
+ }
380
+ };
381
+ \`\`\`
382
+ \u6B64\u65F6\uFF0C\u6240\u6709\u9759\u6001\u8D44\u6E90\u90FD\u4F1A\u6DFB\u52A0\`https://xxx/\`\u524D\u7F00
383
+
384
+ ### svgr
385
+ \u6253\u5305\u65F6\u5C06svg\u4F5C\u4E3A\u4E00\u4E2AReact\u7EC4\u4EF6\u5904\u7406
386
+ - type: \`boolean | Object\`
387
+
388
+ #### include
389
+ \u8BBE\u5B9A\u5339\u914D\u7684svg\u6587\u4EF6
390
+ - type: \`string | RegExp | (string | RegExp)[]\`
391
+ - default: \`/\\.svg$/\`
392
+
393
+ #### exclude
394
+ \u8BBE\u5B9A\u4E0D\u5339\u914D\u7684svg\u6587\u4EF6
395
+ - type: \`string | RegExp | (string | RegExp)[]\`
396
+ - default: \`undefined\`
397
+
398
+
399
+ ## autoExternal
400
+ \u81EA\u52A8\u5916\u7F6E\u9879\u76EE\u7684dependencies\u548CpeerDependencies\uFF0C\u4E0D\u4F1A\u5C06\u5176\u6253\u5305\u5230\u6700\u7EC8\u7684bundle\u4E2D
401
+ - type: \`boolean | Object\`
402
+ - default: \`true\`
403
+
404
+ ### dependencies
405
+ \u662F\u5426\u9700\u8981\u5916\u7F6E\u9879\u76EE\u7684dep\u4F9D\u8D56
406
+ - type: \`boolean\`
407
+ - default: \`true\`
408
+
409
+ ### peerDependencies
410
+ \u662F\u5426\u9700\u8981\u5916\u7F6E\u9879\u76EE\u7684peerDep\u4F9D\u8D56
411
+ - type: \`boolean\`
412
+ - default: \`true\`
413
+
414
+ ## buildType
415
+ \u6784\u5EFA\u7C7B\u578B\uFF0C\`bundle\`\u4F1A\u6253\u5305\u4F60\u7684\u4EE3\u7801\uFF0C\`bundleless\`\u53EA\u505A\u4EE3\u7801\u7684\u8F6C\u6362
416
+ - type: \`'bundle' | 'bundleless'\`
417
+ - default: \`bundle\`
418
+
419
+ ## copy
420
+ \u5C06\u6307\u5B9A\u7684\u6587\u4EF6\u6216\u76EE\u5F55\u62F7\u8D1D\u5230\u6784\u5EFA\u8F93\u51FA\u76EE\u5F55\u4E2D
421
+ - type: \`Array\`
422
+ - default: \`[]\`
423
+ \`\`\`js
424
+
425
+ export default {
426
+ build: {
427
+ copy: [{ from: './src/assets', to: '' }],
428
+ },
429
+ };
430
+ \`\`\`
431
+ \u6570\u7EC4\u8BBE\u7F6E\u53C2\u8003\uFF1A[copy-webpack-plugin patterns](https://github.com/webpack-contrib/copy-webpack-plugin#patterns)
432
+
433
+ ## define
434
+ \u5B9A\u4E49\u5168\u5C40\u53D8\u91CF\uFF0C\u4F1A\u88AB\u6CE8\u5165\u5230\u4EE3\u7801\u4E2D
435
+ - type: \`Record<string, string>\`
436
+ - default: \`{}\`
437
+
438
+ \u7531\u4E8E\`define\`\u529F\u80FD\u662F\u7531\u5168\u5C40\u6587\u672C\u66FF\u6362\u5B9E\u73B0\u7684\uFF0C\u6240\u4EE5\u9700\u8981\u4FDD\u8BC1\u5168\u5C40\u53D8\u91CF\u503C\u4E3A\u5B57\u7B26\u4E32\uFF0C\u66F4\u4E3A\u5B89\u5168\u7684\u505A\u6CD5\u662F\u5C06\u6BCF\u4E2A\u5168\u5C40\u53D8\u91CF\u7684\u503C\u8F6C\u5316\u4E3A\u5B57\u7B26\u4E32\uFF0C\u4F7F\u7528\`JSON.stringify\`\u8FDB\u884C\u8F6C\u6362\uFF0C\u5982\u4E0B\u6240\u793A\uFF1A
439
+ \`\`\`js
440
+ export default {
441
+ build: {
442
+ define: {
443
+ 'VERSION': JSON.stringify('1.0'),
444
+
445
+ },
446
+ },
447
+ };
448
+ \`\`\`
449
+
450
+ :::tip
451
+ \u4E3A\u4E86\u9632\u6B62\u5168\u5C40\u66FF\u6362\u66FF\u6362\u8FC7\u5EA6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u65F6\u9075\u5FAA\u4EE5\u4E0B\u4E24\u4E2A\u539F\u5219\uFF1A
452
+ - \u5168\u5C40\u5E38\u91CF\u4F7F\u7528\u5927\u5199
453
+ - \u81EA\u5B9A\u4E49\u5168\u5C40\u5E38\u91CF\u524D\u7F00\u540E\u7F00\uFF0C\u786E\u4FDD\u72EC\u4E00\u65E0\u4E8C
454
+ :::
455
+
456
+ ## dts
457
+ dts\u6587\u4EF6\u751F\u6210\u76F8\u5173\u914D\u7F6E\uFF0C\u9ED8\u8BA4\u4F1A\u751F\u6210
458
+
459
+ - type: \`false | Object\`
460
+ - default: \`{}\`
461
+
462
+ ### tsconfigPath
463
+ tsconfig\u6587\u4EF6\u7684\u8DEF\u5F84
464
+ - type: \`string\`
465
+ - default: \`./tsconfig.json\`
466
+
467
+ ### distPath
468
+ dts\u6587\u4EF6\u7684\u8F93\u51FA\u8DEF\u5F84,\u57FA\u4E8E[outdir]('/zh/api/build-config/#outdir')\u8FDB\u884C\u8F93\u51FA
469
+ - type: \`string\`
470
+ - default: \`./types\`
471
+
472
+ ### only
473
+ \u53EA\u751F\u6210dts\u6587\u4EF6\uFF0C\u4E0D\u751F\u6210js\u6587\u4EF6
474
+ - type: \`boolean\`
475
+ - default: \`false\`
476
+
477
+ ## externals
478
+ \u914D\u7F6E\u5916\u90E8\u4F9D\u8D56\uFF0C\u4E0D\u4F1A\u88AB\u6253\u5305\u5230\u6700\u7EC8\u7684bundle\u4E2D
479
+ - type: \`(string | RegExp)[]\`
480
+ - default: \`[]\`
481
+ ## format
482
+ js\u4EA7\u7269\u8F93\u51FA\u7684\u683C\u5F0F,\u5176\u4E2D\`iife\`\u548C\`umd\`\u53EA\u80FD\u5728\`buildType\`\u4E3A\`bundle\`\u65F6\u751F\u6548
483
+ - type: \`'esm' | 'cjs' | 'iife' | 'umd'\`
484
+ - default: \`cjs\`
485
+
486
+ ## input
487
+ \u6307\u5B9A\u6784\u5EFA\u7684\u5165\u53E3\u6587\u4EF6,\u6570\u7EC4\u5F62\u5F0F\u53EF\u4EE5\u6307\u5B9A\u76EE\u5F55
488
+ - type: \`string[] | Record<string, string>\`
489
+ - default: \`bundle\`\u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u4E3A\`['src/index.ts']\`\uFF0C\`bundleless\`\u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u4E3A\`['src']\`
490
+
491
+ \`\`\`js
492
+ export default {
493
+ build: {
494
+ input: ['src/index.ts', 'src/index2.ts'],
495
+ },
496
+ };
497
+ \`\`\`
498
+
499
+ ## jsx
500
+ \u6307\u5B9Ajsx\u7684\u7F16\u8BD1\u65B9\u5F0F, \u9ED8\u8BA4\u652F\u6301React17,\u81EA\u52A8\u6CE8\u5165jsx\u8FD0\u884C\u65F6\u4EE3\u7801
501
+ - type: \`automatic | classic\`
502
+ - default: \`automatic\`
503
+
504
+ ## minify
505
+ \u4F7F\u7528esbuild\u6216\u8005terser\u538B\u7F29\u4EE3\u7801\uFF0C\u4E5F\u53EF\u4EE5\u4F20\u5165[terserOptions](https://github.com/terser/terser#minify-options)
506
+ - type: \`'terser' | 'esbuild' | false | Object\`
507
+ - default: \`false\`
508
+
509
+ \`\`\`js
510
+ export default {
511
+ build: {
512
+ minify: {
513
+ compress: {
514
+ drop_console: true,
515
+ },
516
+ },
517
+ },
518
+ };
519
+ \`\`\`
520
+
521
+ ## outdir
522
+ \u6307\u5B9A\u6784\u5EFA\u7684\u8F93\u51FA\u76EE\u5F55
523
+ - type: \`string\`
524
+ - default: \`dist\`
525
+
526
+ ## platform
527
+ \u9ED8\u8BA4\u751F\u6210\u7528\u4E8Enode\u73AF\u5883\u4E0B\u7684\u4EE3\u7801\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u6307\u5B9A\u4E3A\`browser\`\uFF0C\u4F1A\u751F\u6210\u7528\u4E8E\u6D4F\u89C8\u5668\u73AF\u5883\u7684\u4EE3\u7801
528
+ - type: \`'browser' | 'node'\`
529
+ - default: \`node\`
530
+
531
+ ## sourceDir
532
+ \u6307\u5B9A\u6784\u5EFA\u7684\u6E90\u7801\u76EE\u5F55,\u9ED8\u8BA4\u4E3A\`src\`,\u7528\u4E8E\u5728\`bundleless\`\u6784\u5EFA\u65F6\u57FA\u4E8E\u6E90\u7801\u76EE\u5F55\u7ED3\u6784\u751F\u6210\u5BF9\u5E94\u7684\u4EA7\u7269\u76EE\u5F55
533
+ - type: \`string\`
534
+ - default: \`src\`
535
+
536
+ ## sourceMap
537
+ \u662F\u5426\u751F\u6210sourceMap
538
+ - type: \`boolean | 'inline' | 'external'\`
539
+ - default: \`false\`
540
+
541
+ ## splitting
542
+ \u662F\u5426\u5F00\u542F\u4EE3\u7801\u5206\u5272
543
+ - type: \`boolean\`
544
+ - default: \`false\`
545
+
546
+ ## style
547
+ \u914D\u7F6E\u6837\u5F0F\u76F8\u5173\u7684\u914D\u7F6E
548
+
549
+ ### less
550
+ less\u76F8\u5173\u914D\u7F6E
551
+ #### lessOptions
552
+ \u8BE6\u7EC6\u914D\u7F6E\u53C2\u8003[less](https://less.bootcss.com/usage/#less-options)
553
+ - type: \`Object\`
554
+ - default: \`{ javascriptEnabled: true }\`
555
+
556
+ #### additionalData
557
+ \u5728\u5165\u53E3\u6587\u4EF6\u8D77\u59CB\u6DFB\u52A0 \`Less\` \u4EE3\u7801\u3002
558
+ - type: \`string\`
559
+ - default: \`undefined\`
560
+
561
+ \`\`\`js
562
+ export default {
563
+ build: {
564
+ style: {
565
+ less: {
566
+ additionalData: \`@base-color: #c6538c;\`,
567
+ },
568
+ }
569
+ }
570
+ }
571
+
572
+ \`\`\`
573
+ #### implementation
574
+ \u914D\u7F6E \`Less\` \u4F7F\u7528\u7684\u5B9E\u73B0\u5E93\uFF0C\u5728\u4E0D\u6307\u5B9A\u7684\u60C5\u51B5\u4E0B\uFF0C\u4F7F\u7528\u7684\u5185\u7F6E\u7248\u672C\u662F\`4.1.3\`
575
+ - type: \`string | Object\`
576
+ - default: \`undefined\`
577
+
578
+ \`Object\` \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A \`Less\` \u7684\u5B9E\u73B0\u5E93
579
+ \`\`\`js
580
+ export default {
581
+ build: {
582
+ style: {
583
+ less: {
584
+ implementation: require('less'),
585
+ },
586
+ }
587
+ }
588
+ }
589
+ \`\`\`
590
+
591
+ \`string\` \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A \`Less\` \u7684\u5B9E\u73B0\u5E93\u7684\u8DEF\u5F84
592
+ \`\`\`js
593
+ export default {
594
+ build: {
595
+ style: {
596
+ less: {
597
+ implementation: require.resolve('less'),
598
+ },
599
+ }
600
+ }
601
+ }
602
+ \`\`\`
603
+
604
+ ### sass
605
+ sass\u76F8\u5173\u914D\u7F6E
606
+ #### sassOptions
607
+ \u8BE6\u7EC6\u914D\u7F6E\u53C2\u8003[node-sass](https://github.com/sass/node-sass#options)
608
+ - type: \`Object\`
609
+ - default: \`{}\`
610
+ #### additionalData
611
+ \u5728\u5165\u53E3\u6587\u4EF6\u8D77\u59CB\u6DFB\u52A0 \`Sass\` \u4EE3\u7801\u3002
612
+ - type: \`string | Function\`
613
+ - default: \`undefined\`
614
+ \`\`\`js
615
+ export default {
616
+ build: {
617
+ style: {
618
+ sass: {
619
+ additionalData: \`$base-color: #c6538c;
620
+ $border-dark: rgba($base-color, 0.88);\`,
621
+ },
622
+ }
623
+ }
624
+ }
625
+ \`\`\`
626
+
627
+ #### implementation
628
+ \u914D\u7F6E \`Sass\` \u4F7F\u7528\u7684\u5B9E\u73B0\u5E93\uFF0C\u5728\u4E0D\u6307\u5B9A\u7684\u60C5\u51B5\u4E0B\uFF0C\u4F7F\u7528\u7684\u5185\u7F6E\u7248\u672C\u662F\`1.5.4\`
629
+ - type: \`string | Object\`
630
+ - default: \`undefined\`
631
+
632
+ \`Object\` \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A \`Sass\` \u7684\u5B9E\u73B0\u5E93
633
+ \`\`\`js
634
+ export default {
635
+ build: {
636
+ style: {
637
+ sass: {
638
+ implementation: require('sass'),
639
+ },
640
+ }
641
+ }
642
+ }
643
+ \`\`\`
644
+
645
+ \`string\` \u7C7B\u578B\u65F6\uFF0C\u6307\u5B9A \`Sass\` \u7684\u5B9E\u73B0\u5E93\u7684\u8DEF\u5F84
646
+ \`\`\`js
647
+ export default {
648
+ build: {
649
+ style: {
650
+ sass: {
651
+ implementation: require.resolve('sass'),
652
+ },
653
+ }
654
+ }
655
+ }
656
+ \`\`\`
657
+
658
+ ### postcss
659
+ - plugins
660
+ - processOptions
661
+
662
+ \u8BE6\u7EC6\u914D\u7F6E\u67E5\u770B[postcss](https://github.com/postcss/postcss#options)
663
+ ### inject
664
+ \u914D\u7F6E\u6253\u5305\u6A21\u5F0F\u4E0B\u662F\u5426\u5C06style\u63D2\u5165\u5230js\u4E2D
665
+
666
+ - type: \`boolean\`
667
+ - default: \`false\`
668
+
669
+ ### autoModules
670
+ \u6839\u636E\u6587\u4EF6\u540D\u81EA\u52A8\u542F\u7528 CSS Modules\u3002
671
+
672
+ - type: \`boolean | RegExp\`
673
+ - default: \`true \`
674
+
675
+ \`true\` : \u4E3A\u4EE5 \`.module.css\` \`.module.less\` \`.module.scss\` \`.module.sass\` \u6587\u4EF6\u540D\u7ED3\u5C3E\u7684\u6837\u5F0F\u6587\u4EF6\u542F\u7528 CSS Modules
676
+
677
+ \`false\` : \u7981\u7528 CSS Modules.
678
+
679
+ \`RegExp\` : \u4E3A\u5339\u914D\u6B63\u5219\u6761\u4EF6\u7684\u6240\u6709\u6587\u4EF6\u542F\u7528 CSS Modules.
680
+
681
+
682
+ ### modules
683
+ CSS Modules\u914D\u7F6E
684
+
685
+ - type: \`Object\`
686
+ - default: \`{}\`
687
+
688
+ \u4E00\u4E2A\u5E38\u7528\u7684\u914D\u7F6E\u662F\`localsConvention\`\uFF0C\u5B83\u53EF\u4EE5\u6539\u53D8css modules\u7684\u7C7B\u540D\u751F\u6210\u89C4\u5219
689
+ \`\`\`js
690
+ export default {
691
+ build: {
692
+ style: {
693
+ modules: {
694
+ localsConvention: 'camelCaseOnly',
695
+ },
696
+ }
697
+ }
698
+ }
699
+ \`\`\`
700
+ \u5BF9\u4E8E\u4EE5\u4E0B\u6837\u5F0F
701
+ \`\`\`css
702
+ .box-title {
703
+ color: red;
704
+ }
705
+ \`\`\`
706
+ \u4F60\u53EF\u4EE5\u4F7F\u7528\`styles.boxTitle\`\u6765\u8BBF\u95EE
707
+
708
+
709
+ \u8BE6\u7EC6\u914D\u7F6E\u67E5\u770B[postcss-modules](https://github.com/madyankin/postcss-modules#usage)
710
+
711
+ ### tailwind
712
+ tailwindcss\u76F8\u5173\u914D\u7F6E
713
+
714
+ - type: \`Object | Function\`
715
+ - default: \`\u89C1\u4E0B\u65B9\u914D\u7F6E\u8BE6\u60C5\`
716
+
717
+ <details>
718
+ <summary>TailwindCSS \u914D\u7F6E\u8BE6\u60C5</summary>
719
+
720
+ \`\`\`js
721
+ const tailwind = {
722
+ purge: {
723
+ enabled: options.env === 'production',
724
+ content: [
725
+ './config/html/**/*.html',
726
+ './config/html/**/*.ejs',
727
+ './config/html/**/*.hbs',
728
+ './src/**/*',
729
+ ],
730
+ layers: ['utilities'],
731
+ },
732
+ // https://tailwindcss.com/docs/upcoming-changes
733
+ future: {
734
+ removeDeprecatedGapUtilities: false,
735
+ purgeLayersByDefault: true,
736
+ defaultLineHeights: false,
737
+ standardFontWeights: false,
738
+ },
739
+ }
740
+ \`\`\`
741
+
742
+ \u503C\u4E3A \`Object\` \u7C7B\u578B\u65F6\uFF0C\u4E0E\u9ED8\u8BA4\u914D\u7F6E\u901A\u8FC7 \`Object.assign\` \u5408\u5E76\u3002
743
+
744
+ \u503C\u4E3A \`Function\` \u7C7B\u578B\u65F6\uFF0C\u51FD\u6570\u8FD4\u56DE\u7684\u5BF9\u8C61\u4E0E\u9ED8\u8BA4\u914D\u7F6E\u901A\u8FC7 \`Object.assign\` \u5408\u5E76\u3002
745
+
746
+ \u4E0D\u5141\u8BB8\u51FA\u73B0 \`theme\` \u5C5E\u6027\uFF0C\u5426\u5219\u4F1A\u6784\u5EFA\u5931\u8D25, \u4F7F\u7528 [\`designSystem\`](/zh/api/design-system) \u4F5C\u4E3A \`Tailwind CSS Theme\` \u914D\u7F6E\u3002
747
+
748
+ \u5176\u4ED6\u7684\u4F7F\u7528\u65B9\u5F0F\u548C Tailwind CSS \u4E00\u81F4: [\u5FEB\u901F\u4F20\u9001\u95E8](https://tailwindcss.com/docs/configuration)\u3002
749
+
750
+
751
+ ## target
752
+ \u6307\u5B9A\u6784\u5EFA\u7684\u76EE\u6807\u73AF\u5883
753
+ - type: \`'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext'\`
754
+ - default: \`'es2015'\`
755
+
756
+
757
+ ## umdGlobals
758
+ \u6307\u5B9Aumd\u4EA7\u7269\u5916\u90E8\u5BFC\u5165\u7684\u5168\u5C40\u53D8\u91CF
759
+ - type: \`Record<string, string>\`
760
+ - default: \`{}\`
761
+
762
+ \`\`\`js
763
+ export default {
764
+ build: {
765
+ umdGlobals: {
766
+ react: 'React',
767
+ 'react-dom': 'ReactDOM',
768
+ },
769
+ }
770
+ }
771
+ \`\`\`
772
+ \u6B64\u65F6\uFF0C\`react\`\u548C\`react-dom\`\u4F1A\u88AB\u770B\u505A\u662F\u5916\u90E8\u5BFC\u5165\u7684\u5168\u5C40\u53D8\u91CF\uFF0C\u4E0D\u4F1A\u88AB\u6253\u5305\u8FDBumd\u4EA7\u7269\u4E2D\uFF0C\u800C\u662F\u901A\u8FC7\`global.React\`\u548C\`global.ReactDOM\`\u7684\u65B9\u5F0F\u8FDB\u884C\u8BBF\u95EE
773
+
774
+ ## umdModuleName
775
+ \u6307\u5B9Aumd\u4EA7\u7269\u7684\u6A21\u5757\u540D
776
+
777
+ - type: \`string\` | \`Function\`
778
+ - default: \`name => name\`
779
+
780
+ \`\`\`js
781
+ export default {
782
+ build: {
783
+ format: 'umd',
784
+ umdModuleName: 'myLib',
785
+ }
786
+ }
787
+ \`\`\`
788
+ \u6B64\u65F6umd\u4EA7\u7269\u4F1A\u53BB\u6302\u8F7D\u5230\`global.myLib\`\u4E0A
789
+ :::tip
790
+ - \u9700\u8981\u9075\u5B88umd\u89C4\u8303\uFF0Cumd\u4EA7\u7269\u7684\u6A21\u5757\u540D\u4E0D\u80FD\u548C\u5168\u5C40\u53D8\u91CF\u540D\u51B2\u7A81
791
+ - \u6A21\u5757\u540D\u4E0D\u80FD\u542B\u6709\`-\`\uFF0C\`@\`\uFF0C\`/\`\u7B49\u7279\u6B8A\u5B57\u7B26
792
+ :::
793
+
794
+ \u540C\u65F6\u51FD\u6570\u5F62\u5F0F\u53EF\u4EE5\u63A5\u6536\u4E00\u4E2A\u53C2\u6570\uFF0C\u4E3A\u5F53\u524D\u6253\u5305\u6587\u4EF6\u7684\u8F93\u51FA\u8DEF\u5F84
795
+ \`\`\`js
796
+ export default {
797
+ build: {
798
+ format: 'umd',
799
+ umdModuleName: (path) => {
800
+ if (path.includes('index')) {
801
+ return 'myLib';
802
+ } else {
803
+ return 'myLib2';
804
+ }
805
+ },
806
+ }
807
+ }
808
+ \`\`\`
809
+ `;export{n as CH,r as chCodeConfig,f as content,m as default,h as frontmatter,D as lastUpdatedTime,g as title,y as toc};