@modern-js/module-tools-docs 2.0.1 → 2.0.2

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 (192) hide show
  1. package/doc_build/html/main/index.html +16 -0
  2. package/doc_build/route.json +10 -0
  3. package/doc_build/static/css/main.css +3370 -0
  4. package/doc_build/static/css/main.css.map +1 -0
  5. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +85 -0
  6. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +1 -0
  7. package/doc_build/static/js/async/api_.js +56 -0
  8. package/doc_build/static/js/async/api_.js.map +1 -0
  9. package/doc_build/static/js/async/api_config_build-config.js +11309 -0
  10. package/doc_build/static/js/async/api_config_build-config.js.map +1 -0
  11. package/doc_build/static/js/async/api_config_build-preset.js +7849 -0
  12. package/doc_build/static/js/async/api_config_build-preset.js.map +1 -0
  13. package/doc_build/static/js/async/api_config_design-system.js +48708 -0
  14. package/doc_build/static/js/async/api_config_design-system.js.map +1 -0
  15. package/doc_build/static/js/async/api_config_plugins.js +1492 -0
  16. package/doc_build/static/js/async/api_config_plugins.js.map +1 -0
  17. package/doc_build/static/js/async/api_config_testing.js +2130 -0
  18. package/doc_build/static/js/async/api_config_testing.js.map +1 -0
  19. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js +14394 -0
  20. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js.map +1 -0
  21. package/doc_build/static/js/async/en_.js +85 -0
  22. package/doc_build/static/js/async/en_.js.map +1 -0
  23. package/doc_build/static/js/async/en_api_.js +55 -0
  24. package/doc_build/static/js/async/en_api_.js.map +1 -0
  25. package/doc_build/static/js/async/en_api_config_build-config.js +8363 -0
  26. package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -0
  27. package/doc_build/static/js/async/en_api_config_build-preset.js +7845 -0
  28. package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -0
  29. package/doc_build/static/js/async/en_api_config_design-system.js +16345 -0
  30. package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -0
  31. package/doc_build/static/js/async/en_api_config_plugins.js +1492 -0
  32. package/doc_build/static/js/async/en_api_config_plugins.js.map +1 -0
  33. package/doc_build/static/js/async/en_api_config_testing.js +2137 -0
  34. package/doc_build/static/js/async/en_api_config_testing.js.map +1 -0
  35. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +14362 -0
  36. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -0
  37. package/doc_build/static/js/async/en_guide_advance_asset.js +3997 -0
  38. package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -0
  39. package/doc_build/static/js/async/en_guide_advance_build-umd.js +9861 -0
  40. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +1 -0
  41. package/doc_build/static/js/async/en_guide_advance_copy.js +6539 -0
  42. package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -0
  43. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +3810 -0
  44. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +1 -0
  45. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +5046 -0
  46. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -0
  47. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +150 -0
  48. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -0
  49. package/doc_build/static/js/async/en_guide_advance_theme-config.js +2484 -0
  50. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -0
  51. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +3671 -0
  52. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -0
  53. package/doc_build/static/js/async/en_guide_basic_command-preview.js +3961 -0
  54. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -0
  55. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +2970 -0
  56. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -0
  57. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +2182 -0
  58. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -0
  59. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +3892 -0
  60. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -0
  61. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +168 -0
  62. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -0
  63. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +4762 -0
  64. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -0
  65. package/doc_build/static/js/async/en_guide_best-practices_components.js +21388 -0
  66. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -0
  67. package/doc_build/static/js/async/en_guide_intro_getting-started.js +1906 -0
  68. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -0
  69. package/doc_build/static/js/async/en_guide_intro_welcome.js +148 -0
  70. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -0
  71. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +92 -0
  72. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -0
  73. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +2560 -0
  74. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +1 -0
  75. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +4177 -0
  76. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +1 -0
  77. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +3819 -0
  78. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -0
  79. package/doc_build/static/js/async/en_plugins_official-list_overview.js +70 -0
  80. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +1 -0
  81. package/doc_build/static/js/async/guide_advance_asset.js +3997 -0
  82. package/doc_build/static/js/async/guide_advance_asset.js.map +1 -0
  83. package/doc_build/static/js/async/guide_advance_build-umd.js +9863 -0
  84. package/doc_build/static/js/async/guide_advance_build-umd.js.map +1 -0
  85. package/doc_build/static/js/async/guide_advance_copy.js +6539 -0
  86. package/doc_build/static/js/async/guide_advance_copy.js.map +1 -0
  87. package/doc_build/static/js/async/guide_advance_external-dependency.js +3812 -0
  88. package/doc_build/static/js/async/guide_advance_external-dependency.js.map +1 -0
  89. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js +5046 -0
  90. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js.map +1 -0
  91. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js +152 -0
  92. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js.map +1 -0
  93. package/doc_build/static/js/async/guide_advance_theme-config.js +2475 -0
  94. package/doc_build/static/js/async/guide_advance_theme-config.js.map +1 -0
  95. package/doc_build/static/js/async/guide_basic_before-getting-started.js +3662 -0
  96. package/doc_build/static/js/async/guide_basic_before-getting-started.js.map +1 -0
  97. package/doc_build/static/js/async/guide_basic_command-preview.js +3793 -0
  98. package/doc_build/static/js/async/guide_basic_command-preview.js.map +1 -0
  99. package/doc_build/static/js/async/guide_basic_modify-output-product.js +2949 -0
  100. package/doc_build/static/js/async/guide_basic_modify-output-product.js.map +1 -0
  101. package/doc_build/static/js/async/guide_basic_publish-your-project.js +2243 -0
  102. package/doc_build/static/js/async/guide_basic_publish-your-project.js.map +1 -0
  103. package/doc_build/static/js/async/guide_basic_test-your-project.js +3892 -0
  104. package/doc_build/static/js/async/guide_basic_test-your-project.js.map +1 -0
  105. package/doc_build/static/js/async/guide_basic_use-micro-generator.js +172 -0
  106. package/doc_build/static/js/async/guide_basic_use-micro-generator.js.map +1 -0
  107. package/doc_build/static/js/async/guide_basic_using-storybook.js +4762 -0
  108. package/doc_build/static/js/async/guide_basic_using-storybook.js.map +1 -0
  109. package/doc_build/static/js/async/guide_best-practices_components.js +21088 -0
  110. package/doc_build/static/js/async/guide_best-practices_components.js.map +1 -0
  111. package/doc_build/static/js/async/guide_intro_getting-started.js +1782 -0
  112. package/doc_build/static/js/async/guide_intro_getting-started.js.map +1 -0
  113. package/doc_build/static/js/async/guide_intro_welcome.js +148 -0
  114. package/doc_build/static/js/async/guide_intro_welcome.js.map +1 -0
  115. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js +92 -0
  116. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js.map +1 -0
  117. package/doc_build/static/js/async/index.js +85 -0
  118. package/doc_build/static/js/async/index.js.map +1 -0
  119. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +447 -0
  120. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -0
  121. package/doc_build/static/js/async/plugins_guide_getting-started.js +2608 -0
  122. package/doc_build/static/js/async/plugins_guide_getting-started.js.map +1 -0
  123. package/doc_build/static/js/async/plugins_guide_plugin-object.js +4173 -0
  124. package/doc_build/static/js/async/plugins_guide_plugin-object.js.map +1 -0
  125. package/doc_build/static/js/async/plugins_guide_setup-function.js +3819 -0
  126. package/doc_build/static/js/async/plugins_guide_setup-function.js.map +1 -0
  127. package/doc_build/static/js/async/plugins_official-list_overview.js +70 -0
  128. package/doc_build/static/js/async/plugins_official-list_overview.js.map +1 -0
  129. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js +6656 -0
  130. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js.map +1 -0
  131. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +54 -0
  132. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js.map +1 -0
  133. package/doc_build/static/js/builder-runtime.js +1375 -0
  134. package/doc_build/static/js/builder-runtime.js.map +1 -0
  135. package/doc_build/static/js/lib-lodash.js +4907 -0
  136. package/doc_build/static/js/lib-lodash.js.map +1 -0
  137. package/doc_build/static/js/lib-polyfill.js +24769 -0
  138. package/doc_build/static/js/lib-polyfill.js.map +1 -0
  139. package/doc_build/static/js/lib-react.js +39510 -0
  140. package/doc_build/static/js/lib-react.js.map +1 -0
  141. package/doc_build/static/js/main.js +9237 -0
  142. package/doc_build/static/js/main.js.map +1 -0
  143. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +8532 -0
  144. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +1 -0
  145. package/docs/en/api/config/build-config.md +5 -5
  146. package/docs/en/api/plugin-api/plugin-hooks.md +1 -1
  147. package/docs/en/guide/advance/asset.mdx +1 -1
  148. package/docs/en/guide/advance/build-umd.mdx +3 -3
  149. package/docs/en/guide/advance/copy.md +5 -5
  150. package/docs/en/guide/advance/external-dependency.mdx +2 -2
  151. package/docs/en/guide/advance/in-depth-about-build.md +7 -7
  152. package/docs/en/guide/advance/in-depth-about-dev-command.md +1 -1
  153. package/docs/en/guide/advance/theme-config.mdx +2 -2
  154. package/docs/en/guide/basic/before-getting-started.md +1 -1
  155. package/docs/en/guide/basic/command-preview.md +2 -2
  156. package/docs/en/guide/basic/modify-output-product.md +23 -22
  157. package/docs/en/guide/basic/publish-your-project.md +4 -4
  158. package/docs/en/guide/basic/test-your-project.mdx +5 -3
  159. package/docs/en/guide/basic/use-micro-generator.md +9 -5
  160. package/docs/en/guide/basic/using-storybook.mdx +6 -4
  161. package/docs/en/guide/best-practices/components.mdx +103 -97
  162. package/docs/en/guide/intro/getting-started.md +2 -2
  163. package/docs/en/index.md +14 -17
  164. package/docs/en/plugins/guide/getting-started.mdx +2 -2
  165. package/docs/en/plugins/guide/setup-function.mdx +2 -2
  166. package/docs/zh/api/config/_category_.json +1 -1
  167. package/docs/zh/api/config/build-config.md +16 -5
  168. package/docs/zh/api/config/plugins.md +1 -1
  169. package/docs/zh/api/index.md +1 -0
  170. package/docs/zh/api/plugin-api/_category_.json +1 -1
  171. package/docs/zh/api/plugin-api/plugin-hooks.md +56 -55
  172. package/docs/zh/guide/advance/asset.mdx +1 -1
  173. package/docs/zh/guide/advance/build-umd.mdx +3 -3
  174. package/docs/zh/guide/advance/copy.md +5 -5
  175. package/docs/zh/guide/advance/external-dependency.mdx +3 -3
  176. package/docs/zh/guide/advance/in-depth-about-build.md +7 -7
  177. package/docs/zh/guide/advance/in-depth-about-dev-command.md +1 -1
  178. package/docs/zh/guide/advance/theme-config.mdx +2 -2
  179. package/docs/zh/guide/basic/before-getting-started.md +1 -1
  180. package/docs/zh/guide/basic/command-preview.md +2 -2
  181. package/docs/zh/guide/basic/modify-output-product.md +30 -30
  182. package/docs/zh/guide/basic/publish-your-project.md +4 -4
  183. package/docs/zh/guide/basic/test-your-project.mdx +5 -3
  184. package/docs/zh/guide/basic/use-micro-generator.md +5 -5
  185. package/docs/zh/guide/basic/using-storybook.mdx +6 -4
  186. package/docs/zh/guide/best-practices/components.mdx +10 -10
  187. package/docs/zh/guide/intro/getting-started.md +2 -2
  188. package/docs/zh/index.md +1 -1
  189. package/docs/zh/plugins/guide/getting-started.mdx +3 -3
  190. package/docs/zh/plugins/guide/setup-function.mdx +2 -2
  191. package/modern.config.ts +4 -3
  192. package/package.json +3 -3
@@ -0,0 +1,3812 @@
1
+ "use strict";
2
+ (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["guide_advance_external-dependency"],{
3
+
4
+ /***/ "./docs/zh/guide/advance/external-dependency.mdx":
5
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
+
7
+ __webpack_require__.r(__webpack_exports__);
8
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
+ /* harmony export */ "CH": function() { return /* binding */ CH; },
10
+ /* harmony export */ "chCodeConfig": function() { return /* binding */ chCodeConfig; },
11
+ /* harmony export */ "content": function() { return /* binding */ content; },
12
+ /* harmony export */ "frontmatter": function() { return /* binding */ frontmatter; },
13
+ /* harmony export */ "title": function() { return /* binding */ title; },
14
+ /* harmony export */ "toc": function() { return /* binding */ toc; }
15
+ /* harmony export */ });
16
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
17
+ /* harmony import */ var _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@code-hike+mdx@0.7.4_react@18.2.0/node_modules/@code-hike/mdx/dist/components.esm.mjs");
18
+ /*@jsxRuntime automatic @jsxImportSource react*/
19
+
20
+
21
+ var CH = {
22
+ annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
23
+ Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code,
24
+ Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
25
+ CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot
26
+ };
27
+ var chCodeConfig = {
28
+ "staticMediaQuery": "not screen, (max-width: 768px)",
29
+ "theme": {
30
+ "name": "nord",
31
+ "type": "dark",
32
+ "semanticHighlighting": true,
33
+ "colors": {
34
+ "focusBorder": "#3b4252",
35
+ "foreground": "#d8dee9",
36
+ "activityBar.background": "#2e3440",
37
+ "activityBar.dropBackground": "#3b4252",
38
+ "activityBar.foreground": "#d8dee9",
39
+ "activityBar.activeBorder": "#88c0d0",
40
+ "activityBar.activeBackground": "#3b4252",
41
+ "activityBarBadge.background": "#88c0d0",
42
+ "activityBarBadge.foreground": "#2e3440",
43
+ "badge.foreground": "#2e3440",
44
+ "badge.background": "#88c0d0",
45
+ "button.background": "#88c0d0ee",
46
+ "button.foreground": "#2e3440",
47
+ "button.hoverBackground": "#88c0d0",
48
+ "button.secondaryBackground": "#434c5e",
49
+ "button.secondaryForeground": "#d8dee9",
50
+ "button.secondaryHoverBackground": "#4c566a",
51
+ "charts.red": "#bf616a",
52
+ "charts.blue": "#81a1c1",
53
+ "charts.yellow": "#ebcb8b",
54
+ "charts.orange": "#d08770",
55
+ "charts.green": "#a3be8c",
56
+ "charts.purple": "#b48ead",
57
+ "charts.foreground": "#d8dee9",
58
+ "charts.lines": "#88c0d0",
59
+ "debugConsole.infoForeground": "#88c0d0",
60
+ "debugConsole.warningForeground": "#ebcb8b",
61
+ "debugConsole.errorForeground": "#bf616a",
62
+ "debugConsole.sourceForeground": "#616e88",
63
+ "debugConsoleInputIcon.foreground": "#81a1c1",
64
+ "debugExceptionWidget.background": "#4c566a",
65
+ "debugExceptionWidget.border": "#2e3440",
66
+ "debugToolBar.background": "#3b4252",
67
+ "descriptionForeground": "#d8dee9e6",
68
+ "diffEditor.insertedTextBackground": "#81a1c133",
69
+ "diffEditor.removedTextBackground": "#bf616a4d",
70
+ "dropdown.background": "#3b4252",
71
+ "dropdown.border": "#3b4252",
72
+ "dropdown.foreground": "#d8dee9",
73
+ "editorActiveLineNumber.foreground": "#d8dee9cc",
74
+ "editorCursor.foreground": "#d8dee9",
75
+ "editorHint.border": "#ebcb8b00",
76
+ "editorHint.foreground": "#ebcb8b",
77
+ "editorIndentGuide.background": "#434c5eb3",
78
+ "editorIndentGuide.activeBackground": "#4c566a",
79
+ "editorInlayHint.background": "#434c5e",
80
+ "editorInlayHint.foreground": "#d8dee9",
81
+ "editorLineNumber.foreground": "#4c566a",
82
+ "editorLineNumber.activeForeground": "#d8dee9",
83
+ "editorWhitespace.foreground": "#4c566ab3",
84
+ "editorWidget.background": "#2e3440",
85
+ "editorWidget.border": "#3b4252",
86
+ "editor.background": "#2e3440",
87
+ "editor.foreground": "#d8dee9",
88
+ "editor.hoverHighlightBackground": "#3b4252",
89
+ "editor.findMatchBackground": "#88c0d066",
90
+ "editor.findMatchHighlightBackground": "#88c0d033",
91
+ "editor.findRangeHighlightBackground": "#88c0d033",
92
+ "editor.lineHighlightBackground": "#3b4252",
93
+ "editor.lineHighlightBorder": "#3b4252",
94
+ "editor.inactiveSelectionBackground": "#434c5ecc",
95
+ "editor.inlineValuesBackground": "#4c566a",
96
+ "editor.inlineValuesForeground": "#eceff4",
97
+ "editor.selectionBackground": "#434c5ecc",
98
+ "editor.selectionHighlightBackground": "#434c5ecc",
99
+ "editor.rangeHighlightBackground": "#434c5e52",
100
+ "editor.wordHighlightBackground": "#81a1c166",
101
+ "editor.wordHighlightStrongBackground": "#81a1c199",
102
+ "editor.stackFrameHighlightBackground": "#5e81ac",
103
+ "editor.focusedStackFrameHighlightBackground": "#5e81ac",
104
+ "editorError.foreground": "#bf616a",
105
+ "editorError.border": "#bf616a00",
106
+ "editorWarning.foreground": "#ebcb8b",
107
+ "editorWarning.border": "#ebcb8b00",
108
+ "editorBracketMatch.background": "#2e344000",
109
+ "editorBracketMatch.border": "#88c0d0",
110
+ "editorBracketHighlight.foreground1": "#8fbcbb",
111
+ "editorBracketHighlight.foreground2": "#88c0d0",
112
+ "editorBracketHighlight.foreground3": "#81a1c1",
113
+ "editorBracketHighlight.foreground4": "#5e81ac",
114
+ "editorBracketHighlight.foreground5": "#8fbcbb",
115
+ "editorBracketHighlight.foreground6": "#88c0d0",
116
+ "editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
117
+ "editorCodeLens.foreground": "#4c566a",
118
+ "editorGroup.background": "#2e3440",
119
+ "editorGroup.border": "#3b425201",
120
+ "editorGroup.dropBackground": "#3b425299",
121
+ "editorGroupHeader.border": "#3b425200",
122
+ "editorGroupHeader.noTabsBackground": "#2e3440",
123
+ "editorGroupHeader.tabsBackground": "#2e3440",
124
+ "editorGroupHeader.tabsBorder": "#3b425200",
125
+ "editorGutter.background": "#2e3440",
126
+ "editorGutter.modifiedBackground": "#ebcb8b",
127
+ "editorGutter.addedBackground": "#a3be8c",
128
+ "editorGutter.deletedBackground": "#bf616a",
129
+ "editorHoverWidget.background": "#3b4252",
130
+ "editorHoverWidget.border": "#3b4252",
131
+ "editorLink.activeForeground": "#88c0d0",
132
+ "editorMarkerNavigation.background": "#5e81acc0",
133
+ "editorMarkerNavigationError.background": "#bf616ac0",
134
+ "editorMarkerNavigationWarning.background": "#ebcb8bc0",
135
+ "editorOverviewRuler.border": "#3b4252",
136
+ "editorOverviewRuler.currentContentForeground": "#3b4252",
137
+ "editorOverviewRuler.incomingContentForeground": "#3b4252",
138
+ "editorOverviewRuler.findMatchForeground": "#88c0d066",
139
+ "editorOverviewRuler.rangeHighlightForeground": "#88c0d066",
140
+ "editorOverviewRuler.selectionHighlightForeground": "#88c0d066",
141
+ "editorOverviewRuler.wordHighlightForeground": "#88c0d066",
142
+ "editorOverviewRuler.wordHighlightStrongForeground": "#88c0d066",
143
+ "editorOverviewRuler.modifiedForeground": "#ebcb8b",
144
+ "editorOverviewRuler.addedForeground": "#a3be8c",
145
+ "editorOverviewRuler.deletedForeground": "#bf616a",
146
+ "editorOverviewRuler.errorForeground": "#bf616a",
147
+ "editorOverviewRuler.warningForeground": "#ebcb8b",
148
+ "editorOverviewRuler.infoForeground": "#81a1c1",
149
+ "editorRuler.foreground": "#434c5e",
150
+ "editorSuggestWidget.background": "#2e3440",
151
+ "editorSuggestWidget.border": "#3b4252",
152
+ "editorSuggestWidget.foreground": "#d8dee9",
153
+ "editorSuggestWidget.focusHighlightForeground": "#88c0d0",
154
+ "editorSuggestWidget.highlightForeground": "#88c0d0",
155
+ "editorSuggestWidget.selectedBackground": "#434c5e",
156
+ "editorSuggestWidget.selectedForeground": "#d8dee9",
157
+ "extensionButton.prominentForeground": "#d8dee9",
158
+ "extensionButton.prominentBackground": "#434c5e",
159
+ "extensionButton.prominentHoverBackground": "#4c566a",
160
+ "errorForeground": "#bf616a",
161
+ "gitDecoration.modifiedResourceForeground": "#ebcb8b",
162
+ "gitDecoration.deletedResourceForeground": "#bf616a",
163
+ "gitDecoration.untrackedResourceForeground": "#a3be8c",
164
+ "gitDecoration.ignoredResourceForeground": "#d8dee966",
165
+ "gitDecoration.conflictingResourceForeground": "#5e81ac",
166
+ "gitDecoration.submoduleResourceForeground": "#8fbcbb",
167
+ "gitDecoration.stageDeletedResourceForeground": "#bf616a",
168
+ "gitDecoration.stageModifiedResourceForeground": "#ebcb8b",
169
+ "input.background": "#3b4252",
170
+ "input.foreground": "#d8dee9",
171
+ "input.placeholderForeground": "#d8dee999",
172
+ "input.border": "#3b4252",
173
+ "inputOption.activeBackground": "#5e81ac",
174
+ "inputOption.activeBorder": "#5e81ac",
175
+ "inputOption.activeForeground": "#eceff4",
176
+ "inputValidation.errorBackground": "#bf616a",
177
+ "inputValidation.errorBorder": "#bf616a",
178
+ "inputValidation.infoBackground": "#81a1c1",
179
+ "inputValidation.infoBorder": "#81a1c1",
180
+ "inputValidation.warningBackground": "#d08770",
181
+ "inputValidation.warningBorder": "#d08770",
182
+ "keybindingLabel.background": "#4c566a",
183
+ "keybindingLabel.border": "#4c566a",
184
+ "keybindingLabel.bottomBorder": "#4c566a",
185
+ "keybindingLabel.foreground": "#d8dee9",
186
+ "list.activeSelectionBackground": "#88c0d0",
187
+ "list.activeSelectionForeground": "#2e3440",
188
+ "list.inactiveSelectionBackground": "#434c5e",
189
+ "list.inactiveSelectionForeground": "#d8dee9",
190
+ "list.inactiveFocusBackground": "#434c5ecc",
191
+ "list.hoverForeground": "#eceff4",
192
+ "list.focusForeground": "#d8dee9",
193
+ "list.focusBackground": "#88c0d099",
194
+ "list.focusHighlightForeground": "#eceff4",
195
+ "list.hoverBackground": "#3b4252",
196
+ "list.dropBackground": "#88c0d099",
197
+ "list.highlightForeground": "#88c0d0",
198
+ "list.errorForeground": "#bf616a",
199
+ "list.warningForeground": "#ebcb8b",
200
+ "merge.currentHeaderBackground": "#81a1c166",
201
+ "merge.currentContentBackground": "#81a1c14d",
202
+ "merge.incomingHeaderBackground": "#8fbcbb66",
203
+ "merge.incomingContentBackground": "#8fbcbb4d",
204
+ "merge.border": "#3b425200",
205
+ "minimap.background": "#2e3440",
206
+ "minimap.errorHighlight": "#bf616acc",
207
+ "minimap.findMatchHighlight": "#88c0d0",
208
+ "minimap.selectionHighlight": "#88c0d0cc",
209
+ "minimap.warningHighlight": "#ebcb8bcc",
210
+ "minimapGutter.addedBackground": "#a3be8c",
211
+ "minimapGutter.deletedBackground": "#bf616a",
212
+ "minimapGutter.modifiedBackground": "#ebcb8b",
213
+ "minimapSlider.activeBackground": "#434c5eaa",
214
+ "minimapSlider.background": "#434c5e99",
215
+ "minimapSlider.hoverBackground": "#434c5eaa",
216
+ "notification.background": "#3b4252",
217
+ "notification.buttonBackground": "#434c5e",
218
+ "notification.buttonForeground": "#d8dee9",
219
+ "notification.buttonHoverBackground": "#4c566a",
220
+ "notification.errorBackground": "#bf616a",
221
+ "notification.errorForeground": "#2e3440",
222
+ "notification.foreground": "#d8dee9",
223
+ "notification.infoBackground": "#88c0d0",
224
+ "notification.infoForeground": "#2e3440",
225
+ "notification.warningBackground": "#ebcb8b",
226
+ "notification.warningForeground": "#2e3440",
227
+ "notificationCenter.border": "#3b425200",
228
+ "notificationCenterHeader.background": "#2e3440",
229
+ "notificationCenterHeader.foreground": "#88c0d0",
230
+ "notificationLink.foreground": "#88c0d0",
231
+ "notifications.background": "#3b4252",
232
+ "notifications.border": "#2e3440",
233
+ "notifications.foreground": "#d8dee9",
234
+ "notificationToast.border": "#3b425200",
235
+ "panel.background": "#2e3440",
236
+ "panel.border": "#3b4252",
237
+ "panelTitle.activeBorder": "#88c0d000",
238
+ "panelTitle.activeForeground": "#88c0d0",
239
+ "panelTitle.inactiveForeground": "#d8dee9",
240
+ "peekView.border": "#4c566a",
241
+ "peekViewEditor.background": "#2e3440",
242
+ "peekViewEditorGutter.background": "#2e3440",
243
+ "peekViewEditor.matchHighlightBackground": "#88c0d04d",
244
+ "peekViewResult.background": "#2e3440",
245
+ "peekViewResult.fileForeground": "#88c0d0",
246
+ "peekViewResult.lineForeground": "#d8dee966",
247
+ "peekViewResult.matchHighlightBackground": "#88c0d0cc",
248
+ "peekViewResult.selectionBackground": "#434c5e",
249
+ "peekViewResult.selectionForeground": "#d8dee9",
250
+ "peekViewTitle.background": "#3b4252",
251
+ "peekViewTitleDescription.foreground": "#d8dee9",
252
+ "peekViewTitleLabel.foreground": "#88c0d0",
253
+ "pickerGroup.border": "#3b4252",
254
+ "pickerGroup.foreground": "#88c0d0",
255
+ "progressBar.background": "#88c0d0",
256
+ "quickInputList.focusBackground": "#88c0d0",
257
+ "quickInputList.focusForeground": "#2e3440",
258
+ "sash.hoverBorder": "#88c0d0",
259
+ "scrollbar.shadow": "#00000066",
260
+ "scrollbarSlider.activeBackground": "#434c5eaa",
261
+ "scrollbarSlider.background": "#434c5e99",
262
+ "scrollbarSlider.hoverBackground": "#434c5eaa",
263
+ "selection.background": "#88c0d099",
264
+ "sideBar.background": "#2e3440",
265
+ "sideBar.foreground": "#d8dee9",
266
+ "sideBar.border": "#3b4252",
267
+ "sideBarSectionHeader.background": "#3b4252",
268
+ "sideBarSectionHeader.foreground": "#d8dee9",
269
+ "sideBarTitle.foreground": "#d8dee9",
270
+ "statusBar.background": "#3b4252",
271
+ "statusBar.debuggingBackground": "#5e81ac",
272
+ "statusBar.debuggingForeground": "#d8dee9",
273
+ "statusBar.noFolderForeground": "#d8dee9",
274
+ "statusBar.noFolderBackground": "#3b4252",
275
+ "statusBar.foreground": "#d8dee9",
276
+ "statusBarItem.activeBackground": "#4c566a",
277
+ "statusBarItem.hoverBackground": "#434c5e",
278
+ "statusBarItem.prominentBackground": "#3b4252",
279
+ "statusBarItem.prominentHoverBackground": "#434c5e",
280
+ "statusBarItem.errorBackground": "#3b4252",
281
+ "statusBarItem.errorForeground": "#bf616a",
282
+ "statusBarItem.warningBackground": "#ebcb8b",
283
+ "statusBarItem.warningForeground": "#2e3440",
284
+ "statusBar.border": "#3b425200",
285
+ "tab.activeBackground": "#3b4252",
286
+ "tab.activeForeground": "#d8dee9",
287
+ "tab.border": "#3b425200",
288
+ "tab.activeBorder": "#88c0d000",
289
+ "tab.unfocusedActiveBorder": "#88c0d000",
290
+ "tab.inactiveBackground": "#2e3440",
291
+ "tab.inactiveForeground": "#d8dee966",
292
+ "tab.unfocusedActiveForeground": "#d8dee999",
293
+ "tab.unfocusedInactiveForeground": "#d8dee966",
294
+ "tab.hoverBackground": "#3b4252cc",
295
+ "tab.unfocusedHoverBackground": "#3b4252b3",
296
+ "tab.hoverBorder": "#88c0d000",
297
+ "tab.unfocusedHoverBorder": "#88c0d000",
298
+ "tab.activeBorderTop": "#88c0d000",
299
+ "tab.unfocusedActiveBorderTop": "#88c0d000",
300
+ "tab.lastPinnedBorder": "#4c566a",
301
+ "terminal.background": "#2e3440",
302
+ "terminal.foreground": "#d8dee9",
303
+ "terminal.ansiBlack": "#3b4252",
304
+ "terminal.ansiRed": "#bf616a",
305
+ "terminal.ansiGreen": "#a3be8c",
306
+ "terminal.ansiYellow": "#ebcb8b",
307
+ "terminal.ansiBlue": "#81a1c1",
308
+ "terminal.ansiMagenta": "#b48ead",
309
+ "terminal.ansiCyan": "#88c0d0",
310
+ "terminal.ansiWhite": "#e5e9f0",
311
+ "terminal.ansiBrightBlack": "#4c566a",
312
+ "terminal.ansiBrightRed": "#bf616a",
313
+ "terminal.ansiBrightGreen": "#a3be8c",
314
+ "terminal.ansiBrightYellow": "#ebcb8b",
315
+ "terminal.ansiBrightBlue": "#81a1c1",
316
+ "terminal.ansiBrightMagenta": "#b48ead",
317
+ "terminal.ansiBrightCyan": "#8fbcbb",
318
+ "terminal.ansiBrightWhite": "#eceff4",
319
+ "terminal.tab.activeBorder": "#88c0d0",
320
+ "textBlockQuote.background": "#3b4252",
321
+ "textBlockQuote.border": "#81a1c1",
322
+ "textCodeBlock.background": "#4c566a",
323
+ "textLink.activeForeground": "#88c0d0",
324
+ "textLink.foreground": "#88c0d0",
325
+ "textPreformat.foreground": "#8fbcbb",
326
+ "textSeparator.foreground": "#eceff4",
327
+ "titleBar.activeBackground": "#2e3440",
328
+ "titleBar.activeForeground": "#d8dee9",
329
+ "titleBar.border": "#2e344000",
330
+ "titleBar.inactiveBackground": "#2e3440",
331
+ "titleBar.inactiveForeground": "#d8dee966",
332
+ "tree.indentGuidesStroke": "#616e88",
333
+ "walkThrough.embeddedEditorBackground": "#2e3440",
334
+ "welcomePage.buttonBackground": "#434c5e",
335
+ "welcomePage.buttonHoverBackground": "#4c566a",
336
+ "widget.shadow": "#00000066"
337
+ },
338
+ "tokenColors": [{
339
+ "settings": {
340
+ "foreground": "#d8dee9ff",
341
+ "background": "#2e3440ff"
342
+ }
343
+ }, {
344
+ "scope": "emphasis",
345
+ "settings": {
346
+ "fontStyle": "italic"
347
+ }
348
+ }, {
349
+ "scope": "strong",
350
+ "settings": {
351
+ "fontStyle": "bold"
352
+ }
353
+ }, {
354
+ "name": "Comment",
355
+ "scope": "comment",
356
+ "settings": {
357
+ "foreground": "#616E88"
358
+ }
359
+ }, {
360
+ "name": "Constant Character",
361
+ "scope": "constant.character",
362
+ "settings": {
363
+ "foreground": "#EBCB8B"
364
+ }
365
+ }, {
366
+ "name": "Constant Character Escape",
367
+ "scope": "constant.character.escape",
368
+ "settings": {
369
+ "foreground": "#EBCB8B"
370
+ }
371
+ }, {
372
+ "name": "Constant Language",
373
+ "scope": "constant.language",
374
+ "settings": {
375
+ "foreground": "#81A1C1"
376
+ }
377
+ }, {
378
+ "name": "Constant Numeric",
379
+ "scope": "constant.numeric",
380
+ "settings": {
381
+ "foreground": "#B48EAD"
382
+ }
383
+ }, {
384
+ "name": "Constant Regexp",
385
+ "scope": "constant.regexp",
386
+ "settings": {
387
+ "foreground": "#EBCB8B"
388
+ }
389
+ }, {
390
+ "name": "Entity Name Class/Type",
391
+ "scope": ["entity.name.class", "entity.name.type.class"],
392
+ "settings": {
393
+ "foreground": "#8FBCBB"
394
+ }
395
+ }, {
396
+ "name": "Entity Name Function",
397
+ "scope": "entity.name.function",
398
+ "settings": {
399
+ "foreground": "#88C0D0"
400
+ }
401
+ }, {
402
+ "name": "Entity Name Tag",
403
+ "scope": "entity.name.tag",
404
+ "settings": {
405
+ "foreground": "#81A1C1"
406
+ }
407
+ }, {
408
+ "name": "Entity Other Attribute Name",
409
+ "scope": "entity.other.attribute-name",
410
+ "settings": {
411
+ "foreground": "#8FBCBB"
412
+ }
413
+ }, {
414
+ "name": "Entity Other Inherited Class",
415
+ "scope": "entity.other.inherited-class",
416
+ "settings": {
417
+ "fontStyle": "bold",
418
+ "foreground": "#8FBCBB"
419
+ }
420
+ }, {
421
+ "name": "Invalid Deprecated",
422
+ "scope": "invalid.deprecated",
423
+ "settings": {
424
+ "foreground": "#D8DEE9",
425
+ "background": "#EBCB8B"
426
+ }
427
+ }, {
428
+ "name": "Invalid Illegal",
429
+ "scope": "invalid.illegal",
430
+ "settings": {
431
+ "foreground": "#D8DEE9",
432
+ "background": "#BF616A"
433
+ }
434
+ }, {
435
+ "name": "Keyword",
436
+ "scope": "keyword",
437
+ "settings": {
438
+ "foreground": "#81A1C1"
439
+ }
440
+ }, {
441
+ "name": "Keyword Operator",
442
+ "scope": "keyword.operator",
443
+ "settings": {
444
+ "foreground": "#81A1C1"
445
+ }
446
+ }, {
447
+ "name": "Keyword Other New",
448
+ "scope": "keyword.other.new",
449
+ "settings": {
450
+ "foreground": "#81A1C1"
451
+ }
452
+ }, {
453
+ "name": "Markup Bold",
454
+ "scope": "markup.bold",
455
+ "settings": {
456
+ "fontStyle": "bold"
457
+ }
458
+ }, {
459
+ "name": "Markup Changed",
460
+ "scope": "markup.changed",
461
+ "settings": {
462
+ "foreground": "#EBCB8B"
463
+ }
464
+ }, {
465
+ "name": "Markup Deleted",
466
+ "scope": "markup.deleted",
467
+ "settings": {
468
+ "foreground": "#BF616A"
469
+ }
470
+ }, {
471
+ "name": "Markup Inserted",
472
+ "scope": "markup.inserted",
473
+ "settings": {
474
+ "foreground": "#A3BE8C"
475
+ }
476
+ }, {
477
+ "name": "Meta Preprocessor",
478
+ "scope": "meta.preprocessor",
479
+ "settings": {
480
+ "foreground": "#5E81AC"
481
+ }
482
+ }, {
483
+ "name": "Punctuation",
484
+ "scope": "punctuation",
485
+ "settings": {
486
+ "foreground": "#ECEFF4"
487
+ }
488
+ }, {
489
+ "name": "Punctuation Definition Parameters",
490
+ "scope": ["punctuation.definition.method-parameters", "punctuation.definition.function-parameters", "punctuation.definition.parameters"],
491
+ "settings": {
492
+ "foreground": "#ECEFF4"
493
+ }
494
+ }, {
495
+ "name": "Punctuation Definition Tag",
496
+ "scope": "punctuation.definition.tag",
497
+ "settings": {
498
+ "foreground": "#81A1C1"
499
+ }
500
+ }, {
501
+ "name": "Punctuation Definition Comment",
502
+ "scope": ["punctuation.definition.comment", "punctuation.end.definition.comment", "punctuation.start.definition.comment"],
503
+ "settings": {
504
+ "foreground": "#616E88"
505
+ }
506
+ }, {
507
+ "name": "Punctuation Section",
508
+ "scope": "punctuation.section",
509
+ "settings": {
510
+ "foreground": "#ECEFF4"
511
+ }
512
+ }, {
513
+ "name": "Punctuation Section Embedded",
514
+ "scope": ["punctuation.section.embedded.begin", "punctuation.section.embedded.end"],
515
+ "settings": {
516
+ "foreground": "#81A1C1"
517
+ }
518
+ }, {
519
+ "name": "Punctuation Terminator",
520
+ "scope": "punctuation.terminator",
521
+ "settings": {
522
+ "foreground": "#81A1C1"
523
+ }
524
+ }, {
525
+ "name": "Punctuation Variable",
526
+ "scope": "punctuation.definition.variable",
527
+ "settings": {
528
+ "foreground": "#81A1C1"
529
+ }
530
+ }, {
531
+ "name": "Storage",
532
+ "scope": "storage",
533
+ "settings": {
534
+ "foreground": "#81A1C1"
535
+ }
536
+ }, {
537
+ "name": "String",
538
+ "scope": "string",
539
+ "settings": {
540
+ "foreground": "#A3BE8C"
541
+ }
542
+ }, {
543
+ "name": "String Regexp",
544
+ "scope": "string.regexp",
545
+ "settings": {
546
+ "foreground": "#EBCB8B"
547
+ }
548
+ }, {
549
+ "name": "Support Class",
550
+ "scope": "support.class",
551
+ "settings": {
552
+ "foreground": "#8FBCBB"
553
+ }
554
+ }, {
555
+ "name": "Support Constant",
556
+ "scope": "support.constant",
557
+ "settings": {
558
+ "foreground": "#81A1C1"
559
+ }
560
+ }, {
561
+ "name": "Support Function",
562
+ "scope": "support.function",
563
+ "settings": {
564
+ "foreground": "#88C0D0"
565
+ }
566
+ }, {
567
+ "name": "Support Function Construct",
568
+ "scope": "support.function.construct",
569
+ "settings": {
570
+ "foreground": "#81A1C1"
571
+ }
572
+ }, {
573
+ "name": "Support Type",
574
+ "scope": "support.type",
575
+ "settings": {
576
+ "foreground": "#8FBCBB"
577
+ }
578
+ }, {
579
+ "name": "Support Type Exception",
580
+ "scope": "support.type.exception",
581
+ "settings": {
582
+ "foreground": "#8FBCBB"
583
+ }
584
+ }, {
585
+ "name": "Token Debug",
586
+ "scope": "token.debug-token",
587
+ "settings": {
588
+ "foreground": "#b48ead"
589
+ }
590
+ }, {
591
+ "name": "Token Error",
592
+ "scope": "token.error-token",
593
+ "settings": {
594
+ "foreground": "#bf616a"
595
+ }
596
+ }, {
597
+ "name": "Token Info",
598
+ "scope": "token.info-token",
599
+ "settings": {
600
+ "foreground": "#88c0d0"
601
+ }
602
+ }, {
603
+ "name": "Token Warning",
604
+ "scope": "token.warn-token",
605
+ "settings": {
606
+ "foreground": "#ebcb8b"
607
+ }
608
+ }, {
609
+ "name": "Variable",
610
+ "scope": "variable.other",
611
+ "settings": {
612
+ "foreground": "#D8DEE9"
613
+ }
614
+ }, {
615
+ "name": "Variable Language",
616
+ "scope": "variable.language",
617
+ "settings": {
618
+ "foreground": "#81A1C1"
619
+ }
620
+ }, {
621
+ "name": "Variable Parameter",
622
+ "scope": "variable.parameter",
623
+ "settings": {
624
+ "foreground": "#D8DEE9"
625
+ }
626
+ }, {
627
+ "name": "[C/CPP] Punctuation Separator Pointer-Access",
628
+ "scope": "punctuation.separator.pointer-access.c",
629
+ "settings": {
630
+ "foreground": "#81A1C1"
631
+ }
632
+ }, {
633
+ "name": "[C/CPP] Meta Preprocessor Include",
634
+ "scope": ["source.c meta.preprocessor.include", "source.c string.quoted.other.lt-gt.include"],
635
+ "settings": {
636
+ "foreground": "#8FBCBB"
637
+ }
638
+ }, {
639
+ "name": "[C/CPP] Conditional Directive",
640
+ "scope": ["source.cpp keyword.control.directive.conditional", "source.cpp punctuation.definition.directive", "source.c keyword.control.directive.conditional", "source.c punctuation.definition.directive"],
641
+ "settings": {
642
+ "foreground": "#5E81AC",
643
+ "fontStyle": "bold"
644
+ }
645
+ }, {
646
+ "name": "[CSS] Constant Other Color RGB Value",
647
+ "scope": "source.css constant.other.color.rgb-value",
648
+ "settings": {
649
+ "foreground": "#B48EAD"
650
+ }
651
+ }, {
652
+ "name": "[CSS](Function) Meta Property-Value",
653
+ "scope": "source.css meta.property-value",
654
+ "settings": {
655
+ "foreground": "#88C0D0"
656
+ }
657
+ }, {
658
+ "name": "[CSS] Media Queries",
659
+ "scope": ["source.css keyword.control.at-rule.media", "source.css keyword.control.at-rule.media punctuation.definition.keyword"],
660
+ "settings": {
661
+ "foreground": "#D08770"
662
+ }
663
+ }, {
664
+ "name": "[CSS] Punctuation Definition Keyword",
665
+ "scope": "source.css punctuation.definition.keyword",
666
+ "settings": {
667
+ "foreground": "#81A1C1"
668
+ }
669
+ }, {
670
+ "name": "[CSS] Support Type Property Name",
671
+ "scope": "source.css support.type.property-name",
672
+ "settings": {
673
+ "foreground": "#D8DEE9"
674
+ }
675
+ }, {
676
+ "name": "[diff] Meta Range Context",
677
+ "scope": "source.diff meta.diff.range.context",
678
+ "settings": {
679
+ "foreground": "#8FBCBB"
680
+ }
681
+ }, {
682
+ "name": "[diff] Meta Header From-File",
683
+ "scope": "source.diff meta.diff.header.from-file",
684
+ "settings": {
685
+ "foreground": "#8FBCBB"
686
+ }
687
+ }, {
688
+ "name": "[diff] Punctuation Definition From-File",
689
+ "scope": "source.diff punctuation.definition.from-file",
690
+ "settings": {
691
+ "foreground": "#8FBCBB"
692
+ }
693
+ }, {
694
+ "name": "[diff] Punctuation Definition Range",
695
+ "scope": "source.diff punctuation.definition.range",
696
+ "settings": {
697
+ "foreground": "#8FBCBB"
698
+ }
699
+ }, {
700
+ "name": "[diff] Punctuation Definition Separator",
701
+ "scope": "source.diff punctuation.definition.separator",
702
+ "settings": {
703
+ "foreground": "#81A1C1"
704
+ }
705
+ }, {
706
+ "name": "[Elixir](JakeBecker.elixir-ls) module names",
707
+ "scope": "entity.name.type.module.elixir",
708
+ "settings": {
709
+ "foreground": "#8FBCBB"
710
+ }
711
+ }, {
712
+ "name": "[Elixir](JakeBecker.elixir-ls) module attributes",
713
+ "scope": "variable.other.readwrite.module.elixir",
714
+ "settings": {
715
+ "foreground": "#D8DEE9",
716
+ "fontStyle": "bold"
717
+ }
718
+ }, {
719
+ "name": "[Elixir](JakeBecker.elixir-ls) atoms",
720
+ "scope": "constant.other.symbol.elixir",
721
+ "settings": {
722
+ "foreground": "#D8DEE9",
723
+ "fontStyle": "bold"
724
+ }
725
+ }, {
726
+ "name": "[Elixir](JakeBecker.elixir-ls) modules",
727
+ "scope": "variable.other.constant.elixir",
728
+ "settings": {
729
+ "foreground": "#8FBCBB"
730
+ }
731
+ }, {
732
+ "name": "[Go] String Format Placeholder",
733
+ "scope": "source.go constant.other.placeholder.go",
734
+ "settings": {
735
+ "foreground": "#EBCB8B"
736
+ }
737
+ }, {
738
+ "name": "[Java](JavaDoc) Comment Block Documentation HTML Entities",
739
+ "scope": "source.java comment.block.documentation.javadoc punctuation.definition.entity.html",
740
+ "settings": {
741
+ "foreground": "#81A1C1"
742
+ }
743
+ }, {
744
+ "name": "[Java](JavaDoc) Constant Other",
745
+ "scope": "source.java constant.other",
746
+ "settings": {
747
+ "foreground": "#D8DEE9"
748
+ }
749
+ }, {
750
+ "name": "[Java](JavaDoc) Keyword Other Documentation",
751
+ "scope": "source.java keyword.other.documentation",
752
+ "settings": {
753
+ "foreground": "#8FBCBB"
754
+ }
755
+ }, {
756
+ "name": "[Java](JavaDoc) Keyword Other Documentation Author",
757
+ "scope": "source.java keyword.other.documentation.author.javadoc",
758
+ "settings": {
759
+ "foreground": "#8FBCBB"
760
+ }
761
+ }, {
762
+ "name": "[Java](JavaDoc) Keyword Other Documentation Directive/Custom",
763
+ "scope": ["source.java keyword.other.documentation.directive", "source.java keyword.other.documentation.custom"],
764
+ "settings": {
765
+ "foreground": "#8FBCBB"
766
+ }
767
+ }, {
768
+ "name": "[Java](JavaDoc) Keyword Other Documentation See",
769
+ "scope": "source.java keyword.other.documentation.see.javadoc",
770
+ "settings": {
771
+ "foreground": "#8FBCBB"
772
+ }
773
+ }, {
774
+ "name": "[Java] Meta Method-Call",
775
+ "scope": "source.java meta.method-call meta.method",
776
+ "settings": {
777
+ "foreground": "#88C0D0"
778
+ }
779
+ }, {
780
+ "name": "[Java](JavaDoc) Meta Tag Template Link",
781
+ "scope": ["source.java meta.tag.template.link.javadoc", "source.java string.other.link.title.javadoc"],
782
+ "settings": {
783
+ "foreground": "#8FBCBB"
784
+ }
785
+ }, {
786
+ "name": "[Java](JavaDoc) Meta Tag Template Value",
787
+ "scope": "source.java meta.tag.template.value.javadoc",
788
+ "settings": {
789
+ "foreground": "#88C0D0"
790
+ }
791
+ }, {
792
+ "name": "[Java](JavaDoc) Punctuation Definition Keyword",
793
+ "scope": "source.java punctuation.definition.keyword.javadoc",
794
+ "settings": {
795
+ "foreground": "#8FBCBB"
796
+ }
797
+ }, {
798
+ "name": "[Java](JavaDoc) Punctuation Definition Tag",
799
+ "scope": ["source.java punctuation.definition.tag.begin.javadoc", "source.java punctuation.definition.tag.end.javadoc"],
800
+ "settings": {
801
+ "foreground": "#616E88"
802
+ }
803
+ }, {
804
+ "name": "[Java] Storage Modifier Import",
805
+ "scope": "source.java storage.modifier.import",
806
+ "settings": {
807
+ "foreground": "#8FBCBB"
808
+ }
809
+ }, {
810
+ "name": "[Java] Storage Modifier Package",
811
+ "scope": "source.java storage.modifier.package",
812
+ "settings": {
813
+ "foreground": "#8FBCBB"
814
+ }
815
+ }, {
816
+ "name": "[Java] Storage Type",
817
+ "scope": "source.java storage.type",
818
+ "settings": {
819
+ "foreground": "#8FBCBB"
820
+ }
821
+ }, {
822
+ "name": "[Java] Storage Type Annotation",
823
+ "scope": "source.java storage.type.annotation",
824
+ "settings": {
825
+ "foreground": "#D08770"
826
+ }
827
+ }, {
828
+ "name": "[Java] Storage Type Generic",
829
+ "scope": "source.java storage.type.generic",
830
+ "settings": {
831
+ "foreground": "#8FBCBB"
832
+ }
833
+ }, {
834
+ "name": "[Java] Storage Type Primitive",
835
+ "scope": "source.java storage.type.primitive",
836
+ "settings": {
837
+ "foreground": "#81A1C1"
838
+ }
839
+ }, {
840
+ "name": "[JavaScript] Decorator",
841
+ "scope": ["source.js punctuation.decorator", "source.js meta.decorator variable.other.readwrite", "source.js meta.decorator entity.name.function"],
842
+ "settings": {
843
+ "foreground": "#D08770"
844
+ }
845
+ }, {
846
+ "name": "[JavaScript] Meta Object-Literal Key",
847
+ "scope": "source.js meta.object-literal.key",
848
+ "settings": {
849
+ "foreground": "#88C0D0"
850
+ }
851
+ }, {
852
+ "name": "[JavaScript](JSDoc) Storage Type Class",
853
+ "scope": "source.js storage.type.class.jsdoc",
854
+ "settings": {
855
+ "foreground": "#8FBCBB"
856
+ }
857
+ }, {
858
+ "name": "[JavaScript] String Template Literals Punctuation",
859
+ "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"],
860
+ "settings": {
861
+ "foreground": "#81A1C1"
862
+ }
863
+ }, {
864
+ "name": "[JavaScript] Interpolated String Template Punctuation Functions",
865
+ "scope": "source.js string.quoted.template meta.method-call.with-arguments",
866
+ "settings": {
867
+ "foreground": "#ECEFF4"
868
+ }
869
+ }, {
870
+ "name": "[JavaScript] String Template Literal Variable",
871
+ "scope": ["source.js string.template meta.template.expression support.variable.property", "source.js string.template meta.template.expression variable.other.object"],
872
+ "settings": {
873
+ "foreground": "#D8DEE9"
874
+ }
875
+ }, {
876
+ "name": "[JavaScript] Support Type Primitive",
877
+ "scope": "source.js support.type.primitive",
878
+ "settings": {
879
+ "foreground": "#81A1C1"
880
+ }
881
+ }, {
882
+ "name": "[JavaScript] Variable Other Object",
883
+ "scope": "source.js variable.other.object",
884
+ "settings": {
885
+ "foreground": "#D8DEE9"
886
+ }
887
+ }, {
888
+ "name": "[JavaScript] Variable Other Read-Write Alias",
889
+ "scope": "source.js variable.other.readwrite.alias",
890
+ "settings": {
891
+ "foreground": "#8FBCBB"
892
+ }
893
+ }, {
894
+ "name": "[JavaScript] Parentheses in Template Strings",
895
+ "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"],
896
+ "settings": {
897
+ "foreground": "#ECEFF4"
898
+ }
899
+ }, {
900
+ "name": "[HTML] Constant Character Entity",
901
+ "scope": "text.html.basic constant.character.entity.html",
902
+ "settings": {
903
+ "foreground": "#EBCB8B"
904
+ }
905
+ }, {
906
+ "name": "[HTML] Constant Other Inline-Data",
907
+ "scope": "text.html.basic constant.other.inline-data",
908
+ "settings": {
909
+ "foreground": "#D08770",
910
+ "fontStyle": "italic"
911
+ }
912
+ }, {
913
+ "name": "[HTML] Meta Tag SGML Doctype",
914
+ "scope": "text.html.basic meta.tag.sgml.doctype",
915
+ "settings": {
916
+ "foreground": "#5E81AC"
917
+ }
918
+ }, {
919
+ "name": "[HTML] Punctuation Definition Entity",
920
+ "scope": "text.html.basic punctuation.definition.entity",
921
+ "settings": {
922
+ "foreground": "#81A1C1"
923
+ }
924
+ }, {
925
+ "name": "[INI] Entity Name Section Group-Title",
926
+ "scope": "source.properties entity.name.section.group-title.ini",
927
+ "settings": {
928
+ "foreground": "#88C0D0"
929
+ }
930
+ }, {
931
+ "name": "[INI] Punctuation Separator Key-Value",
932
+ "scope": "source.properties punctuation.separator.key-value.ini",
933
+ "settings": {
934
+ "foreground": "#81A1C1"
935
+ }
936
+ }, {
937
+ "name": "[Markdown] Markup Fenced Code Block",
938
+ "scope": ["text.html.markdown markup.fenced_code.block", "text.html.markdown markup.fenced_code.block punctuation.definition"],
939
+ "settings": {
940
+ "foreground": "#8FBCBB"
941
+ }
942
+ }, {
943
+ "name": "[Markdown] Markup Heading",
944
+ "scope": "markup.heading",
945
+ "settings": {
946
+ "foreground": "#88C0D0"
947
+ }
948
+ }, {
949
+ "name": "[Markdown] Markup Inline",
950
+ "scope": ["text.html.markdown markup.inline.raw", "text.html.markdown markup.inline.raw punctuation.definition.raw"],
951
+ "settings": {
952
+ "foreground": "#8FBCBB"
953
+ }
954
+ }, {
955
+ "name": "[Markdown] Markup Italic",
956
+ "scope": "text.html.markdown markup.italic",
957
+ "settings": {
958
+ "fontStyle": "italic"
959
+ }
960
+ }, {
961
+ "name": "[Markdown] Markup Link",
962
+ "scope": "text.html.markdown markup.underline.link",
963
+ "settings": {
964
+ "fontStyle": "underline"
965
+ }
966
+ }, {
967
+ "name": "[Markdown] Markup List Numbered/Unnumbered",
968
+ "scope": "text.html.markdown beginning.punctuation.definition.list",
969
+ "settings": {
970
+ "foreground": "#81A1C1"
971
+ }
972
+ }, {
973
+ "name": "[Markdown] Markup Quote Punctuation Definition",
974
+ "scope": "text.html.markdown beginning.punctuation.definition.quote",
975
+ "settings": {
976
+ "foreground": "#8FBCBB"
977
+ }
978
+ }, {
979
+ "name": "[Markdown] Markup Quote Punctuation Definition",
980
+ "scope": "text.html.markdown markup.quote",
981
+ "settings": {
982
+ "foreground": "#616E88"
983
+ }
984
+ }, {
985
+ "name": "[Markdown] Markup Math Constant",
986
+ "scope": "text.html.markdown constant.character.math.tex",
987
+ "settings": {
988
+ "foreground": "#81A1C1"
989
+ }
990
+ }, {
991
+ "name": "[Markdown] Markup Math Definition Marker",
992
+ "scope": ["text.html.markdown punctuation.definition.math.begin", "text.html.markdown punctuation.definition.math.end"],
993
+ "settings": {
994
+ "foreground": "#5E81AC"
995
+ }
996
+ }, {
997
+ "name": "[Markdown] Markup Math Function Definition Marker",
998
+ "scope": "text.html.markdown punctuation.definition.function.math.tex",
999
+ "settings": {
1000
+ "foreground": "#88C0D0"
1001
+ }
1002
+ }, {
1003
+ "name": "[Markdown] Markup Math Operator",
1004
+ "scope": "text.html.markdown punctuation.math.operator.latex",
1005
+ "settings": {
1006
+ "foreground": "#81A1C1"
1007
+ }
1008
+ }, {
1009
+ "name": "[Markdown] Punctuation Definition Heading",
1010
+ "scope": "text.html.markdown punctuation.definition.heading",
1011
+ "settings": {
1012
+ "foreground": "#81A1C1"
1013
+ }
1014
+ }, {
1015
+ "name": "[Markdown] Punctuation Definition Constant/String",
1016
+ "scope": ["text.html.markdown punctuation.definition.constant", "text.html.markdown punctuation.definition.string"],
1017
+ "settings": {
1018
+ "foreground": "#81A1C1"
1019
+ }
1020
+ }, {
1021
+ "name": "[Markdown] String Other Link Description/Title",
1022
+ "scope": ["text.html.markdown constant.other.reference.link", "text.html.markdown string.other.link.description", "text.html.markdown string.other.link.title"],
1023
+ "settings": {
1024
+ "foreground": "#88C0D0"
1025
+ }
1026
+ }, {
1027
+ "name": "[Perl] Perl Sigils",
1028
+ "scope": "source.perl punctuation.definition.variable",
1029
+ "settings": {
1030
+ "foreground": "#D8DEE9"
1031
+ }
1032
+ }, {
1033
+ "name": "[PHP] Meta Function-Call Object",
1034
+ "scope": ["source.php meta.function-call", "source.php meta.function-call.object"],
1035
+ "settings": {
1036
+ "foreground": "#88C0D0"
1037
+ }
1038
+ }, {
1039
+ "name": "[Python] Decorator",
1040
+ "scope": ["source.python entity.name.function.decorator", "source.python meta.function.decorator support.type"],
1041
+ "settings": {
1042
+ "foreground": "#D08770"
1043
+ }
1044
+ }, {
1045
+ "name": "[Python] Function Call",
1046
+ "scope": "source.python meta.function-call.generic",
1047
+ "settings": {
1048
+ "foreground": "#88C0D0"
1049
+ }
1050
+ }, {
1051
+ "name": "[Python] Support Type",
1052
+ "scope": "source.python support.type",
1053
+ "settings": {
1054
+ "foreground": "#88C0D0"
1055
+ }
1056
+ }, {
1057
+ "name": "[Python] Function Parameter",
1058
+ "scope": ["source.python variable.parameter.function.language"],
1059
+ "settings": {
1060
+ "foreground": "#D8DEE9"
1061
+ }
1062
+ }, {
1063
+ "name": "[Python] Function Parameter Special",
1064
+ "scope": ["source.python meta.function.parameters variable.parameter.function.language.special.self"],
1065
+ "settings": {
1066
+ "foreground": "#81A1C1"
1067
+ }
1068
+ }, {
1069
+ "name": "[Rust] Entity types",
1070
+ "scope": "source.rust entity.name.type",
1071
+ "settings": {
1072
+ "foreground": "#8FBCBB"
1073
+ }
1074
+ }, {
1075
+ "name": "[Rust] Macro",
1076
+ "scope": "source.rust meta.macro entity.name.function",
1077
+ "settings": {
1078
+ "fontStyle": "bold",
1079
+ "foreground": "#88C0D0"
1080
+ }
1081
+ }, {
1082
+ "name": "[Rust] Attributes",
1083
+ "scope": ["source.rust meta.attribute", "source.rust meta.attribute punctuation", "source.rust meta.attribute keyword.operator"],
1084
+ "settings": {
1085
+ "foreground": "#5E81AC"
1086
+ }
1087
+ }, {
1088
+ "name": "[Rust] Traits",
1089
+ "scope": "source.rust entity.name.type.trait",
1090
+ "settings": {
1091
+ "fontStyle": "bold"
1092
+ }
1093
+ }, {
1094
+ "name": "[Rust] Interpolation Bracket Curly",
1095
+ "scope": "source.rust punctuation.definition.interpolation",
1096
+ "settings": {
1097
+ "foreground": "#EBCB8B"
1098
+ }
1099
+ }, {
1100
+ "name": "[SCSS] Punctuation Definition Interpolation Bracket Curly",
1101
+ "scope": ["source.css.scss punctuation.definition.interpolation.begin.bracket.curly", "source.css.scss punctuation.definition.interpolation.end.bracket.curly"],
1102
+ "settings": {
1103
+ "foreground": "#81A1C1"
1104
+ }
1105
+ }, {
1106
+ "name": "[SCSS] Variable Interpolation",
1107
+ "scope": "source.css.scss variable.interpolation",
1108
+ "settings": {
1109
+ "foreground": "#D8DEE9",
1110
+ "fontStyle": "italic"
1111
+ }
1112
+ }, {
1113
+ "name": "[TypeScript] Decorators",
1114
+ "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"],
1115
+ "settings": {
1116
+ "foreground": "#D08770"
1117
+ }
1118
+ }, {
1119
+ "name": "[TypeScript] Object-literal keys",
1120
+ "scope": ["source.ts meta.object-literal.key", "source.tsx meta.object-literal.key"],
1121
+ "settings": {
1122
+ "foreground": "#D8DEE9"
1123
+ }
1124
+ }, {
1125
+ "name": "[TypeScript] Object-literal functions",
1126
+ "scope": ["source.ts meta.object-literal.key entity.name.function", "source.tsx meta.object-literal.key entity.name.function"],
1127
+ "settings": {
1128
+ "foreground": "#88C0D0"
1129
+ }
1130
+ }, {
1131
+ "name": "[TypeScript] Type/Class",
1132
+ "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"],
1133
+ "settings": {
1134
+ "foreground": "#8FBCBB"
1135
+ }
1136
+ }, {
1137
+ "name": "[TypeScript] Static Class Support",
1138
+ "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"],
1139
+ "settings": {
1140
+ "foreground": "#8FBCBB"
1141
+ }
1142
+ }, {
1143
+ "name": "[TypeScript] Variables",
1144
+ "scope": ["source.ts support.variable", "source.tsx support.variable"],
1145
+ "settings": {
1146
+ "foreground": "#D8DEE9"
1147
+ }
1148
+ }, {
1149
+ "name": "[TypeScript] Parentheses in Template Strings",
1150
+ "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"],
1151
+ "settings": {
1152
+ "foreground": "#ECEFF4"
1153
+ }
1154
+ }, {
1155
+ "name": "[XML] Entity Name Tag Namespace",
1156
+ "scope": "text.xml entity.name.tag.namespace",
1157
+ "settings": {
1158
+ "foreground": "#8FBCBB"
1159
+ }
1160
+ }, {
1161
+ "name": "[XML] Keyword Other Doctype",
1162
+ "scope": "text.xml keyword.other.doctype",
1163
+ "settings": {
1164
+ "foreground": "#5E81AC"
1165
+ }
1166
+ }, {
1167
+ "name": "[XML] Meta Tag Preprocessor",
1168
+ "scope": "text.xml meta.tag.preprocessor entity.name.tag",
1169
+ "settings": {
1170
+ "foreground": "#5E81AC"
1171
+ }
1172
+ }, {
1173
+ "name": "[XML] Entity Name Tag Namespace",
1174
+ "scope": ["text.xml string.unquoted.cdata", "text.xml string.unquoted.cdata punctuation.definition.string"],
1175
+ "settings": {
1176
+ "foreground": "#D08770",
1177
+ "fontStyle": "italic"
1178
+ }
1179
+ }, {
1180
+ "name": "[YAML] Entity Name Tag",
1181
+ "scope": "source.yaml entity.name.tag",
1182
+ "settings": {
1183
+ "foreground": "#8FBCBB"
1184
+ }
1185
+ }]
1186
+ },
1187
+ "autoImport": true,
1188
+ "showCopyButton": true,
1189
+ "skipLanguages": [],
1190
+ "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/zh/guide/advance/external-dependency.mdx"
1191
+ };
1192
+ var frontmatter = {
1193
+ "sidebar_position": 4
1194
+ };
1195
+ var toc = [{
1196
+ "id": "第三方依赖的默认处理",
1197
+ "text": "第三方依赖的默认处理",
1198
+ "depth": 2
1199
+ }, {
1200
+ "id": "打包第三方依赖",
1201
+ "text": "打包第三方依赖",
1202
+ "depth": 2
1203
+ }, {
1204
+ "id": "关闭默认行为",
1205
+ "text": "关闭默认行为",
1206
+ "depth": 3
1207
+ }, {
1208
+ "id": "排除指定第三方依赖",
1209
+ "text": "排除指定第三方依赖",
1210
+ "depth": 3
1211
+ }];
1212
+ var title = "\u5982\u4F55\u5904\u7406\u7B2C\u4E09\u65B9\u4F9D\u8D56";
1213
+ var content = "\"---\\nsidebar_position: 4\\n---\\n\\n# 如何处理第三方依赖\\n\\n一般来说,项目所需要的第三方依赖可以通过包管理器的 `install` 命令安装,在安装第三方依赖成功后,这些第三方依赖一般会出现在项目 `package.json` 的 `dependencies` 和 `devDependencies` 下。\\n\\n```json pacakge.json\\n{\\n \\\"dependencies\\\": {},\\n \\\"devDependencies\\\": {}\\n}\\n```\\n\\n而 `\\\"dependencies\\\"` 下的依赖通常来说是和项目代码以及构建相关的,如果这些第三方依赖声明在 `\\\"devDependencies\\\"` 下,那么在生产环境下就会出现缺失依赖的问题。\\n\\n除了 `\\\"dependencies\\\"` 以外,[`\\\"peerDependencies\\\"`](/guide/basic/before-getting-started#peerdependencies) 也可以声明在生产环境下需要的依赖,不过它更强调项目在运行环境下存在 `\\\"peerDependencies\\\"` 声明的这些依赖,这类似于插件这样的机制。\\n\\n## 第三方依赖的默认处理\\n\\n在模块工程里,**默认情况下不会对`\\\"dependencies\\\"` 以及 `\\\"peerDependencies\\\"` 下的第三方依赖进行打包处理**,因此:\\n\\n<CH.Spotlight>\\n\\n```json ./v1/package.json\\n{\\n \\\"dependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n },\\n // or\\n \\\"peerDependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n }\\n}\\n```\\n\\n---\\n\\n如果项目依赖了 `react`。\\n\\n```json ./v1/package.json\\n{\\n \\\"dependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n },\\n // or\\n \\\"peerDependencies\\\": {\\n \\\"react\\\": \\\"^17\\\"\\n }\\n}\\n```\\n\\n---\\n\\n当源码中使用了 `react` 依赖。\\n\\n```tsx src/index.ts\\nimport React from 'react';\\nconsole.info(React);\\n```\\n\\n---\\n\\n此时产物中不会将 `react` 代码打包到产物中。\\n\\n```js dist/index.js\\nimport React from 'react';\\nconsole.info(React);\\n```\\n\\n</CH.Spotlight>\\n\\n## 打包第三方依赖\\n\\n不过也有一些情况希望将这些第三方依赖打包到产物。将第三方依赖打包到产物的好处是:**减少下载第三方依赖所花费的时间**。\\n\\n这种处理第三方依赖的方式一般在开发命令行工具中比较常见,这可以提升命令行工具的加载速度,给使用者带来更好的使用体验。\\n\\n那么如何在模块工程中开启对于第三方依赖的打包处理呢?\\n\\n在构建配置中提供了以下 API 来处理第三方依赖:\\n\\n- [`buildConfig.autoExternal`](/api/config/build-config#autoexternal)\\n- [`buildConfig.externals`](/api/config/build-config#externals)\\n\\n### 关闭默认行为\\n\\n当我们希望关闭对于第三方依赖的默认处理行为时候,可以通过以下方式来实现:\\n\\n```ts\\nexport default defineConfig({\\n buildConfig: {\\n autoExternal: false,\\n },\\n});\\n```\\n\\n这样对于 `\\\"dependencies\\\"` 和 `\\\"peerDependencies\\\"` 下面的依赖都会进行打包处理。如果只想要关闭其中某个下面的依赖处理,则可以使用\\n`buildConfig.autoExternal` 的对象形式:\\n\\n```ts\\nexport default defineConfig({\\n buildConfig: {\\n autoExternal: {\\n dependencies: false,\\n peerDependencies: false,\\n },\\n },\\n});\\n```\\n\\n### 排除指定第三方依赖\\n\\n而除了 `buildConfig.autoExternal` API 以外,`buildConfig.externals` 也可以控制哪些第三方依赖要进行处理。我们可以组合这两个\\nAPI 对项目的依赖进行更细微的处理。\\n\\n例如当我们需要仅对某些依赖不进行打包处理的时候,可以按照如下方式进行配置:\\n\\n> 一般这种情况,可能是某些依赖不适合进行打包处理。如果遇到这种情况,则可以按照下面的方式进行处理。\\n\\n```ts\\nepxort default defineConfig({\\n buildConfig: {\\n autoExternal: false,\\n externals: ['pkg-1', /pkg-2/],\\n }\\n});\\n```\\n\"";
1214
+ function _createMdxContent(props) {
1215
+ var _components = Object.assign({
1216
+ h1: "h1",
1217
+ a: "a",
1218
+ p: "p",
1219
+ code: "code",
1220
+ h2: "h2",
1221
+ strong: "strong",
1222
+ ul: "ul",
1223
+ li: "li",
1224
+ h3: "h3",
1225
+ blockquote: "blockquote"
1226
+ }, props.components);
1227
+ if (!CH) _missingMdxReference("CH", false, "9:1-14:4");
1228
+ if (!CH.Code) _missingMdxReference("CH.Code", true, "9:1-14:4");
1229
+ if (!CH.CodeSlot) _missingMdxReference("CH.CodeSlot", true);
1230
+ if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "24:1-72:16");
1231
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1232
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1233
+ id: "如何处理第三方依赖",
1234
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1235
+ className: "header-anchor",
1236
+ "aria-hidden": "true",
1237
+ href: "#如何处理第三方依赖",
1238
+ children: "#"
1239
+ }), "如何处理第三方依赖"]
1240
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1241
+ children: ["一般来说,项目所需要的第三方依赖可以通过包管理器的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1242
+ children: "install"
1243
+ }), " 命令安装,在安装第三方依赖成功后,这些第三方依赖一般会出现在项目 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1244
+ children: "package.json"
1245
+ }), " 的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1246
+ children: "dependencies"
1247
+ }), " 和 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1248
+ children: "devDependencies"
1249
+ }), " 下。"]
1250
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1251
+ codeConfig: chCodeConfig,
1252
+ northPanel: {
1253
+ "tabs": ["pacakge.json"],
1254
+ "active": "pacakge.json",
1255
+ "heightRatio": 1
1256
+ },
1257
+ files: [{
1258
+ "name": "pacakge.json",
1259
+ "focus": "",
1260
+ "code": {
1261
+ "lines": [{
1262
+ "tokens": [{
1263
+ "content": "{",
1264
+ "props": {
1265
+ "style": {
1266
+ "color": "#ECEFF4"
1267
+ }
1268
+ }
1269
+ }]
1270
+ }, {
1271
+ "tokens": [{
1272
+ "content": " ",
1273
+ "props": {
1274
+ "style": {
1275
+ "color": "#D8DEE9FF"
1276
+ }
1277
+ }
1278
+ }, {
1279
+ "content": "\"",
1280
+ "props": {
1281
+ "style": {
1282
+ "color": "#ECEFF4"
1283
+ }
1284
+ }
1285
+ }, {
1286
+ "content": "dependencies",
1287
+ "props": {
1288
+ "style": {
1289
+ "color": "#8FBCBB"
1290
+ }
1291
+ }
1292
+ }, {
1293
+ "content": "\"",
1294
+ "props": {
1295
+ "style": {
1296
+ "color": "#ECEFF4"
1297
+ }
1298
+ }
1299
+ }, {
1300
+ "content": ":",
1301
+ "props": {
1302
+ "style": {
1303
+ "color": "#ECEFF4"
1304
+ }
1305
+ }
1306
+ }, {
1307
+ "content": " ",
1308
+ "props": {
1309
+ "style": {
1310
+ "color": "#D8DEE9FF"
1311
+ }
1312
+ }
1313
+ }, {
1314
+ "content": "{},",
1315
+ "props": {
1316
+ "style": {
1317
+ "color": "#ECEFF4"
1318
+ }
1319
+ }
1320
+ }]
1321
+ }, {
1322
+ "tokens": [{
1323
+ "content": " ",
1324
+ "props": {
1325
+ "style": {
1326
+ "color": "#D8DEE9FF"
1327
+ }
1328
+ }
1329
+ }, {
1330
+ "content": "\"",
1331
+ "props": {
1332
+ "style": {
1333
+ "color": "#ECEFF4"
1334
+ }
1335
+ }
1336
+ }, {
1337
+ "content": "devDependencies",
1338
+ "props": {
1339
+ "style": {
1340
+ "color": "#8FBCBB"
1341
+ }
1342
+ }
1343
+ }, {
1344
+ "content": "\"",
1345
+ "props": {
1346
+ "style": {
1347
+ "color": "#ECEFF4"
1348
+ }
1349
+ }
1350
+ }, {
1351
+ "content": ":",
1352
+ "props": {
1353
+ "style": {
1354
+ "color": "#ECEFF4"
1355
+ }
1356
+ }
1357
+ }, {
1358
+ "content": " ",
1359
+ "props": {
1360
+ "style": {
1361
+ "color": "#D8DEE9FF"
1362
+ }
1363
+ }
1364
+ }, {
1365
+ "content": "{}",
1366
+ "props": {
1367
+ "style": {
1368
+ "color": "#ECEFF4"
1369
+ }
1370
+ }
1371
+ }]
1372
+ }, {
1373
+ "tokens": [{
1374
+ "content": "}",
1375
+ "props": {
1376
+ "style": {
1377
+ "color": "#ECEFF4"
1378
+ }
1379
+ }
1380
+ }]
1381
+ }],
1382
+ "lang": "json"
1383
+ },
1384
+ "annotations": []
1385
+ }]
1386
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1387
+ children: ["而 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1388
+ children: "\"dependencies\""
1389
+ }), " 下的依赖通常来说是和项目代码以及构建相关的,如果这些第三方依赖声明在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1390
+ children: "\"devDependencies\""
1391
+ }), " 下,那么在生产环境下就会出现缺失依赖的问题。"]
1392
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1393
+ children: ["除了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1394
+ children: "\"dependencies\""
1395
+ }), " 以外,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1396
+ href: "/guide/basic/before-getting-started#peerdependencies.html",
1397
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1398
+ children: "\"peerDependencies\""
1399
+ })
1400
+ }), " 也可以声明在生产环境下需要的依赖,不过它更强调项目在运行环境下存在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1401
+ children: "\"peerDependencies\""
1402
+ }), " 声明的这些依赖,这类似于插件这样的机制。"]
1403
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1404
+ id: "第三方依赖的默认处理",
1405
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1406
+ className: "header-anchor",
1407
+ "aria-hidden": "true",
1408
+ href: "#第三方依赖的默认处理",
1409
+ children: "#"
1410
+ }), "第三方依赖的默认处理"]
1411
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1412
+ children: ["在模块工程里,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
1413
+ children: ["默认情况下不会对", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1414
+ children: "\"dependencies\""
1415
+ }), " 以及 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1416
+ children: "\"peerDependencies\""
1417
+ }), " 下的第三方依赖进行打包处理"]
1418
+ }), ",因此:"]
1419
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(CH.Spotlight, {
1420
+ codeConfig: chCodeConfig,
1421
+ editorSteps: [{
1422
+ "northPanel": {
1423
+ "tabs": ["./v1/package.json"],
1424
+ "active": "./v1/package.json",
1425
+ "heightRatio": 1
1426
+ },
1427
+ "files": [{
1428
+ "name": "./v1/package.json",
1429
+ "focus": "",
1430
+ "code": {
1431
+ "lines": [{
1432
+ "tokens": [{
1433
+ "content": "{",
1434
+ "props": {
1435
+ "style": {
1436
+ "color": "#ECEFF4"
1437
+ }
1438
+ }
1439
+ }]
1440
+ }, {
1441
+ "tokens": [{
1442
+ "content": " ",
1443
+ "props": {
1444
+ "style": {
1445
+ "color": "#D8DEE9FF"
1446
+ }
1447
+ }
1448
+ }, {
1449
+ "content": "\"",
1450
+ "props": {
1451
+ "style": {
1452
+ "color": "#ECEFF4"
1453
+ }
1454
+ }
1455
+ }, {
1456
+ "content": "dependencies",
1457
+ "props": {
1458
+ "style": {
1459
+ "color": "#8FBCBB"
1460
+ }
1461
+ }
1462
+ }, {
1463
+ "content": "\"",
1464
+ "props": {
1465
+ "style": {
1466
+ "color": "#ECEFF4"
1467
+ }
1468
+ }
1469
+ }, {
1470
+ "content": ":",
1471
+ "props": {
1472
+ "style": {
1473
+ "color": "#ECEFF4"
1474
+ }
1475
+ }
1476
+ }, {
1477
+ "content": " ",
1478
+ "props": {
1479
+ "style": {
1480
+ "color": "#D8DEE9FF"
1481
+ }
1482
+ }
1483
+ }, {
1484
+ "content": "{",
1485
+ "props": {
1486
+ "style": {
1487
+ "color": "#ECEFF4"
1488
+ }
1489
+ }
1490
+ }]
1491
+ }, {
1492
+ "tokens": [{
1493
+ "content": " ",
1494
+ "props": {
1495
+ "style": {
1496
+ "color": "#D8DEE9FF"
1497
+ }
1498
+ }
1499
+ }, {
1500
+ "content": "\"",
1501
+ "props": {
1502
+ "style": {
1503
+ "color": "#ECEFF4"
1504
+ }
1505
+ }
1506
+ }, {
1507
+ "content": "react",
1508
+ "props": {
1509
+ "style": {
1510
+ "color": "#8FBCBB"
1511
+ }
1512
+ }
1513
+ }, {
1514
+ "content": "\"",
1515
+ "props": {
1516
+ "style": {
1517
+ "color": "#ECEFF4"
1518
+ }
1519
+ }
1520
+ }, {
1521
+ "content": ":",
1522
+ "props": {
1523
+ "style": {
1524
+ "color": "#ECEFF4"
1525
+ }
1526
+ }
1527
+ }, {
1528
+ "content": " ",
1529
+ "props": {
1530
+ "style": {
1531
+ "color": "#D8DEE9FF"
1532
+ }
1533
+ }
1534
+ }, {
1535
+ "content": "\"",
1536
+ "props": {
1537
+ "style": {
1538
+ "color": "#ECEFF4"
1539
+ }
1540
+ }
1541
+ }, {
1542
+ "content": "^17",
1543
+ "props": {
1544
+ "style": {
1545
+ "color": "#A3BE8C"
1546
+ }
1547
+ }
1548
+ }, {
1549
+ "content": "\"",
1550
+ "props": {
1551
+ "style": {
1552
+ "color": "#ECEFF4"
1553
+ }
1554
+ }
1555
+ }]
1556
+ }, {
1557
+ "tokens": [{
1558
+ "content": " ",
1559
+ "props": {
1560
+ "style": {
1561
+ "color": "#D8DEE9FF"
1562
+ }
1563
+ }
1564
+ }, {
1565
+ "content": "},",
1566
+ "props": {
1567
+ "style": {
1568
+ "color": "#ECEFF4"
1569
+ }
1570
+ }
1571
+ }]
1572
+ }, {
1573
+ "tokens": [{
1574
+ "content": " ",
1575
+ "props": {
1576
+ "style": {
1577
+ "color": "#D8DEE9FF"
1578
+ }
1579
+ }
1580
+ }, {
1581
+ "content": "// or",
1582
+ "props": {
1583
+ "style": {
1584
+ "color": "#616E88"
1585
+ }
1586
+ }
1587
+ }]
1588
+ }, {
1589
+ "tokens": [{
1590
+ "content": " ",
1591
+ "props": {
1592
+ "style": {
1593
+ "color": "#D8DEE9FF"
1594
+ }
1595
+ }
1596
+ }, {
1597
+ "content": "\"",
1598
+ "props": {
1599
+ "style": {
1600
+ "color": "#ECEFF4"
1601
+ }
1602
+ }
1603
+ }, {
1604
+ "content": "peerDependencies",
1605
+ "props": {
1606
+ "style": {
1607
+ "color": "#8FBCBB"
1608
+ }
1609
+ }
1610
+ }, {
1611
+ "content": "\"",
1612
+ "props": {
1613
+ "style": {
1614
+ "color": "#ECEFF4"
1615
+ }
1616
+ }
1617
+ }, {
1618
+ "content": ":",
1619
+ "props": {
1620
+ "style": {
1621
+ "color": "#ECEFF4"
1622
+ }
1623
+ }
1624
+ }, {
1625
+ "content": " ",
1626
+ "props": {
1627
+ "style": {
1628
+ "color": "#D8DEE9FF"
1629
+ }
1630
+ }
1631
+ }, {
1632
+ "content": "{",
1633
+ "props": {
1634
+ "style": {
1635
+ "color": "#ECEFF4"
1636
+ }
1637
+ }
1638
+ }]
1639
+ }, {
1640
+ "tokens": [{
1641
+ "content": " ",
1642
+ "props": {
1643
+ "style": {
1644
+ "color": "#D8DEE9FF"
1645
+ }
1646
+ }
1647
+ }, {
1648
+ "content": "\"",
1649
+ "props": {
1650
+ "style": {
1651
+ "color": "#ECEFF4"
1652
+ }
1653
+ }
1654
+ }, {
1655
+ "content": "react",
1656
+ "props": {
1657
+ "style": {
1658
+ "color": "#8FBCBB"
1659
+ }
1660
+ }
1661
+ }, {
1662
+ "content": "\"",
1663
+ "props": {
1664
+ "style": {
1665
+ "color": "#ECEFF4"
1666
+ }
1667
+ }
1668
+ }, {
1669
+ "content": ":",
1670
+ "props": {
1671
+ "style": {
1672
+ "color": "#ECEFF4"
1673
+ }
1674
+ }
1675
+ }, {
1676
+ "content": " ",
1677
+ "props": {
1678
+ "style": {
1679
+ "color": "#D8DEE9FF"
1680
+ }
1681
+ }
1682
+ }, {
1683
+ "content": "\"",
1684
+ "props": {
1685
+ "style": {
1686
+ "color": "#ECEFF4"
1687
+ }
1688
+ }
1689
+ }, {
1690
+ "content": "^17",
1691
+ "props": {
1692
+ "style": {
1693
+ "color": "#A3BE8C"
1694
+ }
1695
+ }
1696
+ }, {
1697
+ "content": "\"",
1698
+ "props": {
1699
+ "style": {
1700
+ "color": "#ECEFF4"
1701
+ }
1702
+ }
1703
+ }]
1704
+ }, {
1705
+ "tokens": [{
1706
+ "content": " ",
1707
+ "props": {
1708
+ "style": {
1709
+ "color": "#D8DEE9FF"
1710
+ }
1711
+ }
1712
+ }, {
1713
+ "content": "}",
1714
+ "props": {
1715
+ "style": {
1716
+ "color": "#ECEFF4"
1717
+ }
1718
+ }
1719
+ }]
1720
+ }, {
1721
+ "tokens": [{
1722
+ "content": "}",
1723
+ "props": {
1724
+ "style": {
1725
+ "color": "#ECEFF4"
1726
+ }
1727
+ }
1728
+ }]
1729
+ }],
1730
+ "lang": "json"
1731
+ },
1732
+ "annotations": []
1733
+ }]
1734
+ }, {
1735
+ "northPanel": {
1736
+ "tabs": ["./v1/package.json"],
1737
+ "active": "./v1/package.json",
1738
+ "heightRatio": 1
1739
+ },
1740
+ "files": [{
1741
+ "name": "./v1/package.json",
1742
+ "focus": "",
1743
+ "code": {
1744
+ "lines": [{
1745
+ "tokens": [{
1746
+ "content": "{",
1747
+ "props": {
1748
+ "style": {
1749
+ "color": "#ECEFF4"
1750
+ }
1751
+ }
1752
+ }]
1753
+ }, {
1754
+ "tokens": [{
1755
+ "content": " ",
1756
+ "props": {
1757
+ "style": {
1758
+ "color": "#D8DEE9FF"
1759
+ }
1760
+ }
1761
+ }, {
1762
+ "content": "\"",
1763
+ "props": {
1764
+ "style": {
1765
+ "color": "#ECEFF4"
1766
+ }
1767
+ }
1768
+ }, {
1769
+ "content": "dependencies",
1770
+ "props": {
1771
+ "style": {
1772
+ "color": "#8FBCBB"
1773
+ }
1774
+ }
1775
+ }, {
1776
+ "content": "\"",
1777
+ "props": {
1778
+ "style": {
1779
+ "color": "#ECEFF4"
1780
+ }
1781
+ }
1782
+ }, {
1783
+ "content": ":",
1784
+ "props": {
1785
+ "style": {
1786
+ "color": "#ECEFF4"
1787
+ }
1788
+ }
1789
+ }, {
1790
+ "content": " ",
1791
+ "props": {
1792
+ "style": {
1793
+ "color": "#D8DEE9FF"
1794
+ }
1795
+ }
1796
+ }, {
1797
+ "content": "{",
1798
+ "props": {
1799
+ "style": {
1800
+ "color": "#ECEFF4"
1801
+ }
1802
+ }
1803
+ }]
1804
+ }, {
1805
+ "tokens": [{
1806
+ "content": " ",
1807
+ "props": {
1808
+ "style": {
1809
+ "color": "#D8DEE9FF"
1810
+ }
1811
+ }
1812
+ }, {
1813
+ "content": "\"",
1814
+ "props": {
1815
+ "style": {
1816
+ "color": "#ECEFF4"
1817
+ }
1818
+ }
1819
+ }, {
1820
+ "content": "react",
1821
+ "props": {
1822
+ "style": {
1823
+ "color": "#8FBCBB"
1824
+ }
1825
+ }
1826
+ }, {
1827
+ "content": "\"",
1828
+ "props": {
1829
+ "style": {
1830
+ "color": "#ECEFF4"
1831
+ }
1832
+ }
1833
+ }, {
1834
+ "content": ":",
1835
+ "props": {
1836
+ "style": {
1837
+ "color": "#ECEFF4"
1838
+ }
1839
+ }
1840
+ }, {
1841
+ "content": " ",
1842
+ "props": {
1843
+ "style": {
1844
+ "color": "#D8DEE9FF"
1845
+ }
1846
+ }
1847
+ }, {
1848
+ "content": "\"",
1849
+ "props": {
1850
+ "style": {
1851
+ "color": "#ECEFF4"
1852
+ }
1853
+ }
1854
+ }, {
1855
+ "content": "^17",
1856
+ "props": {
1857
+ "style": {
1858
+ "color": "#A3BE8C"
1859
+ }
1860
+ }
1861
+ }, {
1862
+ "content": "\"",
1863
+ "props": {
1864
+ "style": {
1865
+ "color": "#ECEFF4"
1866
+ }
1867
+ }
1868
+ }]
1869
+ }, {
1870
+ "tokens": [{
1871
+ "content": " ",
1872
+ "props": {
1873
+ "style": {
1874
+ "color": "#D8DEE9FF"
1875
+ }
1876
+ }
1877
+ }, {
1878
+ "content": "},",
1879
+ "props": {
1880
+ "style": {
1881
+ "color": "#ECEFF4"
1882
+ }
1883
+ }
1884
+ }]
1885
+ }, {
1886
+ "tokens": [{
1887
+ "content": " ",
1888
+ "props": {
1889
+ "style": {
1890
+ "color": "#D8DEE9FF"
1891
+ }
1892
+ }
1893
+ }, {
1894
+ "content": "// or",
1895
+ "props": {
1896
+ "style": {
1897
+ "color": "#616E88"
1898
+ }
1899
+ }
1900
+ }]
1901
+ }, {
1902
+ "tokens": [{
1903
+ "content": " ",
1904
+ "props": {
1905
+ "style": {
1906
+ "color": "#D8DEE9FF"
1907
+ }
1908
+ }
1909
+ }, {
1910
+ "content": "\"",
1911
+ "props": {
1912
+ "style": {
1913
+ "color": "#ECEFF4"
1914
+ }
1915
+ }
1916
+ }, {
1917
+ "content": "peerDependencies",
1918
+ "props": {
1919
+ "style": {
1920
+ "color": "#8FBCBB"
1921
+ }
1922
+ }
1923
+ }, {
1924
+ "content": "\"",
1925
+ "props": {
1926
+ "style": {
1927
+ "color": "#ECEFF4"
1928
+ }
1929
+ }
1930
+ }, {
1931
+ "content": ":",
1932
+ "props": {
1933
+ "style": {
1934
+ "color": "#ECEFF4"
1935
+ }
1936
+ }
1937
+ }, {
1938
+ "content": " ",
1939
+ "props": {
1940
+ "style": {
1941
+ "color": "#D8DEE9FF"
1942
+ }
1943
+ }
1944
+ }, {
1945
+ "content": "{",
1946
+ "props": {
1947
+ "style": {
1948
+ "color": "#ECEFF4"
1949
+ }
1950
+ }
1951
+ }]
1952
+ }, {
1953
+ "tokens": [{
1954
+ "content": " ",
1955
+ "props": {
1956
+ "style": {
1957
+ "color": "#D8DEE9FF"
1958
+ }
1959
+ }
1960
+ }, {
1961
+ "content": "\"",
1962
+ "props": {
1963
+ "style": {
1964
+ "color": "#ECEFF4"
1965
+ }
1966
+ }
1967
+ }, {
1968
+ "content": "react",
1969
+ "props": {
1970
+ "style": {
1971
+ "color": "#8FBCBB"
1972
+ }
1973
+ }
1974
+ }, {
1975
+ "content": "\"",
1976
+ "props": {
1977
+ "style": {
1978
+ "color": "#ECEFF4"
1979
+ }
1980
+ }
1981
+ }, {
1982
+ "content": ":",
1983
+ "props": {
1984
+ "style": {
1985
+ "color": "#ECEFF4"
1986
+ }
1987
+ }
1988
+ }, {
1989
+ "content": " ",
1990
+ "props": {
1991
+ "style": {
1992
+ "color": "#D8DEE9FF"
1993
+ }
1994
+ }
1995
+ }, {
1996
+ "content": "\"",
1997
+ "props": {
1998
+ "style": {
1999
+ "color": "#ECEFF4"
2000
+ }
2001
+ }
2002
+ }, {
2003
+ "content": "^17",
2004
+ "props": {
2005
+ "style": {
2006
+ "color": "#A3BE8C"
2007
+ }
2008
+ }
2009
+ }, {
2010
+ "content": "\"",
2011
+ "props": {
2012
+ "style": {
2013
+ "color": "#ECEFF4"
2014
+ }
2015
+ }
2016
+ }]
2017
+ }, {
2018
+ "tokens": [{
2019
+ "content": " ",
2020
+ "props": {
2021
+ "style": {
2022
+ "color": "#D8DEE9FF"
2023
+ }
2024
+ }
2025
+ }, {
2026
+ "content": "}",
2027
+ "props": {
2028
+ "style": {
2029
+ "color": "#ECEFF4"
2030
+ }
2031
+ }
2032
+ }]
2033
+ }, {
2034
+ "tokens": [{
2035
+ "content": "}",
2036
+ "props": {
2037
+ "style": {
2038
+ "color": "#ECEFF4"
2039
+ }
2040
+ }
2041
+ }]
2042
+ }],
2043
+ "lang": "json"
2044
+ },
2045
+ "annotations": []
2046
+ }],
2047
+ "southPanel": undefined
2048
+ }, {
2049
+ "northPanel": {
2050
+ "tabs": ["./v1/package.json", "src/index.ts"],
2051
+ "active": "src/index.ts",
2052
+ "heightRatio": 1
2053
+ },
2054
+ "files": [{
2055
+ "name": "./v1/package.json",
2056
+ "focus": "",
2057
+ "code": {
2058
+ "lines": [{
2059
+ "tokens": [{
2060
+ "content": "{",
2061
+ "props": {
2062
+ "style": {
2063
+ "color": "#ECEFF4"
2064
+ }
2065
+ }
2066
+ }]
2067
+ }, {
2068
+ "tokens": [{
2069
+ "content": " ",
2070
+ "props": {
2071
+ "style": {
2072
+ "color": "#D8DEE9FF"
2073
+ }
2074
+ }
2075
+ }, {
2076
+ "content": "\"",
2077
+ "props": {
2078
+ "style": {
2079
+ "color": "#ECEFF4"
2080
+ }
2081
+ }
2082
+ }, {
2083
+ "content": "dependencies",
2084
+ "props": {
2085
+ "style": {
2086
+ "color": "#8FBCBB"
2087
+ }
2088
+ }
2089
+ }, {
2090
+ "content": "\"",
2091
+ "props": {
2092
+ "style": {
2093
+ "color": "#ECEFF4"
2094
+ }
2095
+ }
2096
+ }, {
2097
+ "content": ":",
2098
+ "props": {
2099
+ "style": {
2100
+ "color": "#ECEFF4"
2101
+ }
2102
+ }
2103
+ }, {
2104
+ "content": " ",
2105
+ "props": {
2106
+ "style": {
2107
+ "color": "#D8DEE9FF"
2108
+ }
2109
+ }
2110
+ }, {
2111
+ "content": "{",
2112
+ "props": {
2113
+ "style": {
2114
+ "color": "#ECEFF4"
2115
+ }
2116
+ }
2117
+ }]
2118
+ }, {
2119
+ "tokens": [{
2120
+ "content": " ",
2121
+ "props": {
2122
+ "style": {
2123
+ "color": "#D8DEE9FF"
2124
+ }
2125
+ }
2126
+ }, {
2127
+ "content": "\"",
2128
+ "props": {
2129
+ "style": {
2130
+ "color": "#ECEFF4"
2131
+ }
2132
+ }
2133
+ }, {
2134
+ "content": "react",
2135
+ "props": {
2136
+ "style": {
2137
+ "color": "#8FBCBB"
2138
+ }
2139
+ }
2140
+ }, {
2141
+ "content": "\"",
2142
+ "props": {
2143
+ "style": {
2144
+ "color": "#ECEFF4"
2145
+ }
2146
+ }
2147
+ }, {
2148
+ "content": ":",
2149
+ "props": {
2150
+ "style": {
2151
+ "color": "#ECEFF4"
2152
+ }
2153
+ }
2154
+ }, {
2155
+ "content": " ",
2156
+ "props": {
2157
+ "style": {
2158
+ "color": "#D8DEE9FF"
2159
+ }
2160
+ }
2161
+ }, {
2162
+ "content": "\"",
2163
+ "props": {
2164
+ "style": {
2165
+ "color": "#ECEFF4"
2166
+ }
2167
+ }
2168
+ }, {
2169
+ "content": "^17",
2170
+ "props": {
2171
+ "style": {
2172
+ "color": "#A3BE8C"
2173
+ }
2174
+ }
2175
+ }, {
2176
+ "content": "\"",
2177
+ "props": {
2178
+ "style": {
2179
+ "color": "#ECEFF4"
2180
+ }
2181
+ }
2182
+ }]
2183
+ }, {
2184
+ "tokens": [{
2185
+ "content": " ",
2186
+ "props": {
2187
+ "style": {
2188
+ "color": "#D8DEE9FF"
2189
+ }
2190
+ }
2191
+ }, {
2192
+ "content": "},",
2193
+ "props": {
2194
+ "style": {
2195
+ "color": "#ECEFF4"
2196
+ }
2197
+ }
2198
+ }]
2199
+ }, {
2200
+ "tokens": [{
2201
+ "content": " ",
2202
+ "props": {
2203
+ "style": {
2204
+ "color": "#D8DEE9FF"
2205
+ }
2206
+ }
2207
+ }, {
2208
+ "content": "// or",
2209
+ "props": {
2210
+ "style": {
2211
+ "color": "#616E88"
2212
+ }
2213
+ }
2214
+ }]
2215
+ }, {
2216
+ "tokens": [{
2217
+ "content": " ",
2218
+ "props": {
2219
+ "style": {
2220
+ "color": "#D8DEE9FF"
2221
+ }
2222
+ }
2223
+ }, {
2224
+ "content": "\"",
2225
+ "props": {
2226
+ "style": {
2227
+ "color": "#ECEFF4"
2228
+ }
2229
+ }
2230
+ }, {
2231
+ "content": "peerDependencies",
2232
+ "props": {
2233
+ "style": {
2234
+ "color": "#8FBCBB"
2235
+ }
2236
+ }
2237
+ }, {
2238
+ "content": "\"",
2239
+ "props": {
2240
+ "style": {
2241
+ "color": "#ECEFF4"
2242
+ }
2243
+ }
2244
+ }, {
2245
+ "content": ":",
2246
+ "props": {
2247
+ "style": {
2248
+ "color": "#ECEFF4"
2249
+ }
2250
+ }
2251
+ }, {
2252
+ "content": " ",
2253
+ "props": {
2254
+ "style": {
2255
+ "color": "#D8DEE9FF"
2256
+ }
2257
+ }
2258
+ }, {
2259
+ "content": "{",
2260
+ "props": {
2261
+ "style": {
2262
+ "color": "#ECEFF4"
2263
+ }
2264
+ }
2265
+ }]
2266
+ }, {
2267
+ "tokens": [{
2268
+ "content": " ",
2269
+ "props": {
2270
+ "style": {
2271
+ "color": "#D8DEE9FF"
2272
+ }
2273
+ }
2274
+ }, {
2275
+ "content": "\"",
2276
+ "props": {
2277
+ "style": {
2278
+ "color": "#ECEFF4"
2279
+ }
2280
+ }
2281
+ }, {
2282
+ "content": "react",
2283
+ "props": {
2284
+ "style": {
2285
+ "color": "#8FBCBB"
2286
+ }
2287
+ }
2288
+ }, {
2289
+ "content": "\"",
2290
+ "props": {
2291
+ "style": {
2292
+ "color": "#ECEFF4"
2293
+ }
2294
+ }
2295
+ }, {
2296
+ "content": ":",
2297
+ "props": {
2298
+ "style": {
2299
+ "color": "#ECEFF4"
2300
+ }
2301
+ }
2302
+ }, {
2303
+ "content": " ",
2304
+ "props": {
2305
+ "style": {
2306
+ "color": "#D8DEE9FF"
2307
+ }
2308
+ }
2309
+ }, {
2310
+ "content": "\"",
2311
+ "props": {
2312
+ "style": {
2313
+ "color": "#ECEFF4"
2314
+ }
2315
+ }
2316
+ }, {
2317
+ "content": "^17",
2318
+ "props": {
2319
+ "style": {
2320
+ "color": "#A3BE8C"
2321
+ }
2322
+ }
2323
+ }, {
2324
+ "content": "\"",
2325
+ "props": {
2326
+ "style": {
2327
+ "color": "#ECEFF4"
2328
+ }
2329
+ }
2330
+ }]
2331
+ }, {
2332
+ "tokens": [{
2333
+ "content": " ",
2334
+ "props": {
2335
+ "style": {
2336
+ "color": "#D8DEE9FF"
2337
+ }
2338
+ }
2339
+ }, {
2340
+ "content": "}",
2341
+ "props": {
2342
+ "style": {
2343
+ "color": "#ECEFF4"
2344
+ }
2345
+ }
2346
+ }]
2347
+ }, {
2348
+ "tokens": [{
2349
+ "content": "}",
2350
+ "props": {
2351
+ "style": {
2352
+ "color": "#ECEFF4"
2353
+ }
2354
+ }
2355
+ }]
2356
+ }],
2357
+ "lang": "json"
2358
+ },
2359
+ "annotations": []
2360
+ }, {
2361
+ "name": "src/index.ts",
2362
+ "focus": "",
2363
+ "code": {
2364
+ "lines": [{
2365
+ "tokens": [{
2366
+ "content": "import",
2367
+ "props": {
2368
+ "style": {
2369
+ "color": "#81A1C1"
2370
+ }
2371
+ }
2372
+ }, {
2373
+ "content": " ",
2374
+ "props": {
2375
+ "style": {
2376
+ "color": "#D8DEE9FF"
2377
+ }
2378
+ }
2379
+ }, {
2380
+ "content": "React",
2381
+ "props": {
2382
+ "style": {
2383
+ "color": "#D8DEE9"
2384
+ }
2385
+ }
2386
+ }, {
2387
+ "content": " ",
2388
+ "props": {
2389
+ "style": {
2390
+ "color": "#D8DEE9FF"
2391
+ }
2392
+ }
2393
+ }, {
2394
+ "content": "from",
2395
+ "props": {
2396
+ "style": {
2397
+ "color": "#81A1C1"
2398
+ }
2399
+ }
2400
+ }, {
2401
+ "content": " ",
2402
+ "props": {
2403
+ "style": {
2404
+ "color": "#D8DEE9FF"
2405
+ }
2406
+ }
2407
+ }, {
2408
+ "content": "'",
2409
+ "props": {
2410
+ "style": {
2411
+ "color": "#ECEFF4"
2412
+ }
2413
+ }
2414
+ }, {
2415
+ "content": "react",
2416
+ "props": {
2417
+ "style": {
2418
+ "color": "#A3BE8C"
2419
+ }
2420
+ }
2421
+ }, {
2422
+ "content": "'",
2423
+ "props": {
2424
+ "style": {
2425
+ "color": "#ECEFF4"
2426
+ }
2427
+ }
2428
+ }, {
2429
+ "content": ";",
2430
+ "props": {
2431
+ "style": {
2432
+ "color": "#81A1C1"
2433
+ }
2434
+ }
2435
+ }]
2436
+ }, {
2437
+ "tokens": [{
2438
+ "content": "console",
2439
+ "props": {
2440
+ "style": {
2441
+ "color": "#D8DEE9"
2442
+ }
2443
+ }
2444
+ }, {
2445
+ "content": ".",
2446
+ "props": {
2447
+ "style": {
2448
+ "color": "#ECEFF4"
2449
+ }
2450
+ }
2451
+ }, {
2452
+ "content": "info",
2453
+ "props": {
2454
+ "style": {
2455
+ "color": "#88C0D0"
2456
+ }
2457
+ }
2458
+ }, {
2459
+ "content": "(",
2460
+ "props": {
2461
+ "style": {
2462
+ "color": "#D8DEE9FF"
2463
+ }
2464
+ }
2465
+ }, {
2466
+ "content": "React",
2467
+ "props": {
2468
+ "style": {
2469
+ "color": "#D8DEE9"
2470
+ }
2471
+ }
2472
+ }, {
2473
+ "content": ")",
2474
+ "props": {
2475
+ "style": {
2476
+ "color": "#D8DEE9FF"
2477
+ }
2478
+ }
2479
+ }, {
2480
+ "content": ";",
2481
+ "props": {
2482
+ "style": {
2483
+ "color": "#81A1C1"
2484
+ }
2485
+ }
2486
+ }]
2487
+ }],
2488
+ "lang": "tsx"
2489
+ },
2490
+ "annotations": []
2491
+ }],
2492
+ "southPanel": undefined
2493
+ }, {
2494
+ "northPanel": {
2495
+ "tabs": ["./v1/package.json", "dist/index.js"],
2496
+ "active": "dist/index.js",
2497
+ "heightRatio": 1
2498
+ },
2499
+ "files": [{
2500
+ "name": "./v1/package.json",
2501
+ "focus": "",
2502
+ "code": {
2503
+ "lines": [{
2504
+ "tokens": [{
2505
+ "content": "{",
2506
+ "props": {
2507
+ "style": {
2508
+ "color": "#ECEFF4"
2509
+ }
2510
+ }
2511
+ }]
2512
+ }, {
2513
+ "tokens": [{
2514
+ "content": " ",
2515
+ "props": {
2516
+ "style": {
2517
+ "color": "#D8DEE9FF"
2518
+ }
2519
+ }
2520
+ }, {
2521
+ "content": "\"",
2522
+ "props": {
2523
+ "style": {
2524
+ "color": "#ECEFF4"
2525
+ }
2526
+ }
2527
+ }, {
2528
+ "content": "dependencies",
2529
+ "props": {
2530
+ "style": {
2531
+ "color": "#8FBCBB"
2532
+ }
2533
+ }
2534
+ }, {
2535
+ "content": "\"",
2536
+ "props": {
2537
+ "style": {
2538
+ "color": "#ECEFF4"
2539
+ }
2540
+ }
2541
+ }, {
2542
+ "content": ":",
2543
+ "props": {
2544
+ "style": {
2545
+ "color": "#ECEFF4"
2546
+ }
2547
+ }
2548
+ }, {
2549
+ "content": " ",
2550
+ "props": {
2551
+ "style": {
2552
+ "color": "#D8DEE9FF"
2553
+ }
2554
+ }
2555
+ }, {
2556
+ "content": "{",
2557
+ "props": {
2558
+ "style": {
2559
+ "color": "#ECEFF4"
2560
+ }
2561
+ }
2562
+ }]
2563
+ }, {
2564
+ "tokens": [{
2565
+ "content": " ",
2566
+ "props": {
2567
+ "style": {
2568
+ "color": "#D8DEE9FF"
2569
+ }
2570
+ }
2571
+ }, {
2572
+ "content": "\"",
2573
+ "props": {
2574
+ "style": {
2575
+ "color": "#ECEFF4"
2576
+ }
2577
+ }
2578
+ }, {
2579
+ "content": "react",
2580
+ "props": {
2581
+ "style": {
2582
+ "color": "#8FBCBB"
2583
+ }
2584
+ }
2585
+ }, {
2586
+ "content": "\"",
2587
+ "props": {
2588
+ "style": {
2589
+ "color": "#ECEFF4"
2590
+ }
2591
+ }
2592
+ }, {
2593
+ "content": ":",
2594
+ "props": {
2595
+ "style": {
2596
+ "color": "#ECEFF4"
2597
+ }
2598
+ }
2599
+ }, {
2600
+ "content": " ",
2601
+ "props": {
2602
+ "style": {
2603
+ "color": "#D8DEE9FF"
2604
+ }
2605
+ }
2606
+ }, {
2607
+ "content": "\"",
2608
+ "props": {
2609
+ "style": {
2610
+ "color": "#ECEFF4"
2611
+ }
2612
+ }
2613
+ }, {
2614
+ "content": "^17",
2615
+ "props": {
2616
+ "style": {
2617
+ "color": "#A3BE8C"
2618
+ }
2619
+ }
2620
+ }, {
2621
+ "content": "\"",
2622
+ "props": {
2623
+ "style": {
2624
+ "color": "#ECEFF4"
2625
+ }
2626
+ }
2627
+ }]
2628
+ }, {
2629
+ "tokens": [{
2630
+ "content": " ",
2631
+ "props": {
2632
+ "style": {
2633
+ "color": "#D8DEE9FF"
2634
+ }
2635
+ }
2636
+ }, {
2637
+ "content": "},",
2638
+ "props": {
2639
+ "style": {
2640
+ "color": "#ECEFF4"
2641
+ }
2642
+ }
2643
+ }]
2644
+ }, {
2645
+ "tokens": [{
2646
+ "content": " ",
2647
+ "props": {
2648
+ "style": {
2649
+ "color": "#D8DEE9FF"
2650
+ }
2651
+ }
2652
+ }, {
2653
+ "content": "// or",
2654
+ "props": {
2655
+ "style": {
2656
+ "color": "#616E88"
2657
+ }
2658
+ }
2659
+ }]
2660
+ }, {
2661
+ "tokens": [{
2662
+ "content": " ",
2663
+ "props": {
2664
+ "style": {
2665
+ "color": "#D8DEE9FF"
2666
+ }
2667
+ }
2668
+ }, {
2669
+ "content": "\"",
2670
+ "props": {
2671
+ "style": {
2672
+ "color": "#ECEFF4"
2673
+ }
2674
+ }
2675
+ }, {
2676
+ "content": "peerDependencies",
2677
+ "props": {
2678
+ "style": {
2679
+ "color": "#8FBCBB"
2680
+ }
2681
+ }
2682
+ }, {
2683
+ "content": "\"",
2684
+ "props": {
2685
+ "style": {
2686
+ "color": "#ECEFF4"
2687
+ }
2688
+ }
2689
+ }, {
2690
+ "content": ":",
2691
+ "props": {
2692
+ "style": {
2693
+ "color": "#ECEFF4"
2694
+ }
2695
+ }
2696
+ }, {
2697
+ "content": " ",
2698
+ "props": {
2699
+ "style": {
2700
+ "color": "#D8DEE9FF"
2701
+ }
2702
+ }
2703
+ }, {
2704
+ "content": "{",
2705
+ "props": {
2706
+ "style": {
2707
+ "color": "#ECEFF4"
2708
+ }
2709
+ }
2710
+ }]
2711
+ }, {
2712
+ "tokens": [{
2713
+ "content": " ",
2714
+ "props": {
2715
+ "style": {
2716
+ "color": "#D8DEE9FF"
2717
+ }
2718
+ }
2719
+ }, {
2720
+ "content": "\"",
2721
+ "props": {
2722
+ "style": {
2723
+ "color": "#ECEFF4"
2724
+ }
2725
+ }
2726
+ }, {
2727
+ "content": "react",
2728
+ "props": {
2729
+ "style": {
2730
+ "color": "#8FBCBB"
2731
+ }
2732
+ }
2733
+ }, {
2734
+ "content": "\"",
2735
+ "props": {
2736
+ "style": {
2737
+ "color": "#ECEFF4"
2738
+ }
2739
+ }
2740
+ }, {
2741
+ "content": ":",
2742
+ "props": {
2743
+ "style": {
2744
+ "color": "#ECEFF4"
2745
+ }
2746
+ }
2747
+ }, {
2748
+ "content": " ",
2749
+ "props": {
2750
+ "style": {
2751
+ "color": "#D8DEE9FF"
2752
+ }
2753
+ }
2754
+ }, {
2755
+ "content": "\"",
2756
+ "props": {
2757
+ "style": {
2758
+ "color": "#ECEFF4"
2759
+ }
2760
+ }
2761
+ }, {
2762
+ "content": "^17",
2763
+ "props": {
2764
+ "style": {
2765
+ "color": "#A3BE8C"
2766
+ }
2767
+ }
2768
+ }, {
2769
+ "content": "\"",
2770
+ "props": {
2771
+ "style": {
2772
+ "color": "#ECEFF4"
2773
+ }
2774
+ }
2775
+ }]
2776
+ }, {
2777
+ "tokens": [{
2778
+ "content": " ",
2779
+ "props": {
2780
+ "style": {
2781
+ "color": "#D8DEE9FF"
2782
+ }
2783
+ }
2784
+ }, {
2785
+ "content": "}",
2786
+ "props": {
2787
+ "style": {
2788
+ "color": "#ECEFF4"
2789
+ }
2790
+ }
2791
+ }]
2792
+ }, {
2793
+ "tokens": [{
2794
+ "content": "}",
2795
+ "props": {
2796
+ "style": {
2797
+ "color": "#ECEFF4"
2798
+ }
2799
+ }
2800
+ }]
2801
+ }],
2802
+ "lang": "json"
2803
+ },
2804
+ "annotations": []
2805
+ }, {
2806
+ "name": "dist/index.js",
2807
+ "focus": "",
2808
+ "code": {
2809
+ "lines": [{
2810
+ "tokens": [{
2811
+ "content": "import",
2812
+ "props": {
2813
+ "style": {
2814
+ "color": "#81A1C1"
2815
+ }
2816
+ }
2817
+ }, {
2818
+ "content": " ",
2819
+ "props": {
2820
+ "style": {
2821
+ "color": "#D8DEE9FF"
2822
+ }
2823
+ }
2824
+ }, {
2825
+ "content": "React",
2826
+ "props": {
2827
+ "style": {
2828
+ "color": "#8FBCBB"
2829
+ }
2830
+ }
2831
+ }, {
2832
+ "content": " ",
2833
+ "props": {
2834
+ "style": {
2835
+ "color": "#D8DEE9FF"
2836
+ }
2837
+ }
2838
+ }, {
2839
+ "content": "from",
2840
+ "props": {
2841
+ "style": {
2842
+ "color": "#81A1C1"
2843
+ }
2844
+ }
2845
+ }, {
2846
+ "content": " ",
2847
+ "props": {
2848
+ "style": {
2849
+ "color": "#D8DEE9FF"
2850
+ }
2851
+ }
2852
+ }, {
2853
+ "content": "'",
2854
+ "props": {
2855
+ "style": {
2856
+ "color": "#ECEFF4"
2857
+ }
2858
+ }
2859
+ }, {
2860
+ "content": "react",
2861
+ "props": {
2862
+ "style": {
2863
+ "color": "#A3BE8C"
2864
+ }
2865
+ }
2866
+ }, {
2867
+ "content": "'",
2868
+ "props": {
2869
+ "style": {
2870
+ "color": "#ECEFF4"
2871
+ }
2872
+ }
2873
+ }, {
2874
+ "content": ";",
2875
+ "props": {
2876
+ "style": {
2877
+ "color": "#81A1C1"
2878
+ }
2879
+ }
2880
+ }]
2881
+ }, {
2882
+ "tokens": [{
2883
+ "content": "console",
2884
+ "props": {
2885
+ "style": {
2886
+ "color": "#D8DEE9"
2887
+ }
2888
+ }
2889
+ }, {
2890
+ "content": ".",
2891
+ "props": {
2892
+ "style": {
2893
+ "color": "#ECEFF4"
2894
+ }
2895
+ }
2896
+ }, {
2897
+ "content": "info",
2898
+ "props": {
2899
+ "style": {
2900
+ "color": "#88C0D0"
2901
+ }
2902
+ }
2903
+ }, {
2904
+ "content": "(",
2905
+ "props": {
2906
+ "style": {
2907
+ "color": "#D8DEE9FF"
2908
+ }
2909
+ }
2910
+ }, {
2911
+ "content": "React",
2912
+ "props": {
2913
+ "style": {
2914
+ "color": "#D8DEE9"
2915
+ }
2916
+ }
2917
+ }, {
2918
+ "content": ")",
2919
+ "props": {
2920
+ "style": {
2921
+ "color": "#D8DEE9FF"
2922
+ }
2923
+ }
2924
+ }, {
2925
+ "content": ";",
2926
+ "props": {
2927
+ "style": {
2928
+ "color": "#81A1C1"
2929
+ }
2930
+ }
2931
+ }]
2932
+ }],
2933
+ "lang": "js"
2934
+ },
2935
+ "annotations": []
2936
+ }],
2937
+ "southPanel": undefined
2938
+ }],
2939
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2940
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})
2941
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2942
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2943
+ children: ["如果项目依赖了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2944
+ children: "react"
2945
+ }), "。"]
2946
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2947
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2948
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2949
+ children: ["当源码中使用了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2950
+ children: "react"
2951
+ }), " 依赖。"]
2952
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2953
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2954
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2955
+ children: ["此时产物中不会将 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2956
+ children: "react"
2957
+ }), " 代码打包到产物中。"]
2958
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2959
+ })]
2960
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2961
+ id: "打包第三方依赖",
2962
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2963
+ className: "header-anchor",
2964
+ "aria-hidden": "true",
2965
+ href: "#打包第三方依赖",
2966
+ children: "#"
2967
+ }), "打包第三方依赖"]
2968
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2969
+ children: ["不过也有一些情况希望将这些第三方依赖打包到产物。将第三方依赖打包到产物的好处是:", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2970
+ children: "减少下载第三方依赖所花费的时间"
2971
+ }), "。"]
2972
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2973
+ children: "这种处理第三方依赖的方式一般在开发命令行工具中比较常见,这可以提升命令行工具的加载速度,给使用者带来更好的使用体验。"
2974
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2975
+ children: "那么如何在模块工程中开启对于第三方依赖的打包处理呢?"
2976
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2977
+ children: "在构建配置中提供了以下 API 来处理第三方依赖:"
2978
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2979
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2980
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2981
+ href: "/api/config/build-config#autoexternal.html",
2982
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2983
+ children: "buildConfig.autoExternal"
2984
+ })
2985
+ })
2986
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2987
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2988
+ href: "/api/config/build-config#externals.html",
2989
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2990
+ children: "buildConfig.externals"
2991
+ })
2992
+ })
2993
+ }), "\n"]
2994
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
2995
+ id: "关闭默认行为",
2996
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2997
+ className: "header-anchor",
2998
+ "aria-hidden": "true",
2999
+ href: "#关闭默认行为",
3000
+ children: "#"
3001
+ }), "关闭默认行为"]
3002
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3003
+ children: "当我们希望关闭对于第三方依赖的默认处理行为时候,可以通过以下方式来实现:"
3004
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3005
+ codeConfig: chCodeConfig,
3006
+ northPanel: {
3007
+ "tabs": [""],
3008
+ "active": "",
3009
+ "heightRatio": 1
3010
+ },
3011
+ files: [{
3012
+ "name": "",
3013
+ "focus": "",
3014
+ "code": {
3015
+ "lines": [{
3016
+ "tokens": [{
3017
+ "content": "export",
3018
+ "props": {
3019
+ "style": {
3020
+ "color": "#81A1C1"
3021
+ }
3022
+ }
3023
+ }, {
3024
+ "content": " ",
3025
+ "props": {
3026
+ "style": {
3027
+ "color": "#D8DEE9FF"
3028
+ }
3029
+ }
3030
+ }, {
3031
+ "content": "default",
3032
+ "props": {
3033
+ "style": {
3034
+ "color": "#81A1C1"
3035
+ }
3036
+ }
3037
+ }, {
3038
+ "content": " ",
3039
+ "props": {
3040
+ "style": {
3041
+ "color": "#D8DEE9FF"
3042
+ }
3043
+ }
3044
+ }, {
3045
+ "content": "defineConfig",
3046
+ "props": {
3047
+ "style": {
3048
+ "color": "#88C0D0"
3049
+ }
3050
+ }
3051
+ }, {
3052
+ "content": "(",
3053
+ "props": {
3054
+ "style": {
3055
+ "color": "#D8DEE9FF"
3056
+ }
3057
+ }
3058
+ }, {
3059
+ "content": "{",
3060
+ "props": {
3061
+ "style": {
3062
+ "color": "#ECEFF4"
3063
+ }
3064
+ }
3065
+ }]
3066
+ }, {
3067
+ "tokens": [{
3068
+ "content": " ",
3069
+ "props": {
3070
+ "style": {
3071
+ "color": "#D8DEE9FF"
3072
+ }
3073
+ }
3074
+ }, {
3075
+ "content": "buildConfig",
3076
+ "props": {
3077
+ "style": {
3078
+ "color": "#D8DEE9"
3079
+ }
3080
+ }
3081
+ }, {
3082
+ "content": ":",
3083
+ "props": {
3084
+ "style": {
3085
+ "color": "#ECEFF4"
3086
+ }
3087
+ }
3088
+ }, {
3089
+ "content": " ",
3090
+ "props": {
3091
+ "style": {
3092
+ "color": "#D8DEE9FF"
3093
+ }
3094
+ }
3095
+ }, {
3096
+ "content": "{",
3097
+ "props": {
3098
+ "style": {
3099
+ "color": "#ECEFF4"
3100
+ }
3101
+ }
3102
+ }]
3103
+ }, {
3104
+ "tokens": [{
3105
+ "content": " ",
3106
+ "props": {
3107
+ "style": {
3108
+ "color": "#D8DEE9FF"
3109
+ }
3110
+ }
3111
+ }, {
3112
+ "content": "autoExternal",
3113
+ "props": {
3114
+ "style": {
3115
+ "color": "#D8DEE9"
3116
+ }
3117
+ }
3118
+ }, {
3119
+ "content": ":",
3120
+ "props": {
3121
+ "style": {
3122
+ "color": "#ECEFF4"
3123
+ }
3124
+ }
3125
+ }, {
3126
+ "content": " ",
3127
+ "props": {
3128
+ "style": {
3129
+ "color": "#D8DEE9FF"
3130
+ }
3131
+ }
3132
+ }, {
3133
+ "content": "false",
3134
+ "props": {
3135
+ "style": {
3136
+ "color": "#81A1C1"
3137
+ }
3138
+ }
3139
+ }, {
3140
+ "content": ",",
3141
+ "props": {
3142
+ "style": {
3143
+ "color": "#ECEFF4"
3144
+ }
3145
+ }
3146
+ }]
3147
+ }, {
3148
+ "tokens": [{
3149
+ "content": " ",
3150
+ "props": {
3151
+ "style": {
3152
+ "color": "#D8DEE9FF"
3153
+ }
3154
+ }
3155
+ }, {
3156
+ "content": "},",
3157
+ "props": {
3158
+ "style": {
3159
+ "color": "#ECEFF4"
3160
+ }
3161
+ }
3162
+ }]
3163
+ }, {
3164
+ "tokens": [{
3165
+ "content": "}",
3166
+ "props": {
3167
+ "style": {
3168
+ "color": "#ECEFF4"
3169
+ }
3170
+ }
3171
+ }, {
3172
+ "content": ")",
3173
+ "props": {
3174
+ "style": {
3175
+ "color": "#D8DEE9FF"
3176
+ }
3177
+ }
3178
+ }, {
3179
+ "content": ";",
3180
+ "props": {
3181
+ "style": {
3182
+ "color": "#81A1C1"
3183
+ }
3184
+ }
3185
+ }]
3186
+ }],
3187
+ "lang": "ts"
3188
+ },
3189
+ "annotations": []
3190
+ }]
3191
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3192
+ children: ["这样对于 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3193
+ children: "\"dependencies\""
3194
+ }), " 和 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3195
+ children: "\"peerDependencies\""
3196
+ }), " 下面的依赖都会进行打包处理。如果只想要关闭其中某个下面的依赖处理,则可以使用\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3197
+ children: "buildConfig.autoExternal"
3198
+ }), " 的对象形式:"]
3199
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3200
+ codeConfig: chCodeConfig,
3201
+ northPanel: {
3202
+ "tabs": [""],
3203
+ "active": "",
3204
+ "heightRatio": 1
3205
+ },
3206
+ files: [{
3207
+ "name": "",
3208
+ "focus": "",
3209
+ "code": {
3210
+ "lines": [{
3211
+ "tokens": [{
3212
+ "content": "export",
3213
+ "props": {
3214
+ "style": {
3215
+ "color": "#81A1C1"
3216
+ }
3217
+ }
3218
+ }, {
3219
+ "content": " ",
3220
+ "props": {
3221
+ "style": {
3222
+ "color": "#D8DEE9FF"
3223
+ }
3224
+ }
3225
+ }, {
3226
+ "content": "default",
3227
+ "props": {
3228
+ "style": {
3229
+ "color": "#81A1C1"
3230
+ }
3231
+ }
3232
+ }, {
3233
+ "content": " ",
3234
+ "props": {
3235
+ "style": {
3236
+ "color": "#D8DEE9FF"
3237
+ }
3238
+ }
3239
+ }, {
3240
+ "content": "defineConfig",
3241
+ "props": {
3242
+ "style": {
3243
+ "color": "#88C0D0"
3244
+ }
3245
+ }
3246
+ }, {
3247
+ "content": "(",
3248
+ "props": {
3249
+ "style": {
3250
+ "color": "#D8DEE9FF"
3251
+ }
3252
+ }
3253
+ }, {
3254
+ "content": "{",
3255
+ "props": {
3256
+ "style": {
3257
+ "color": "#ECEFF4"
3258
+ }
3259
+ }
3260
+ }]
3261
+ }, {
3262
+ "tokens": [{
3263
+ "content": " ",
3264
+ "props": {
3265
+ "style": {
3266
+ "color": "#D8DEE9FF"
3267
+ }
3268
+ }
3269
+ }, {
3270
+ "content": "buildConfig",
3271
+ "props": {
3272
+ "style": {
3273
+ "color": "#D8DEE9"
3274
+ }
3275
+ }
3276
+ }, {
3277
+ "content": ":",
3278
+ "props": {
3279
+ "style": {
3280
+ "color": "#ECEFF4"
3281
+ }
3282
+ }
3283
+ }, {
3284
+ "content": " ",
3285
+ "props": {
3286
+ "style": {
3287
+ "color": "#D8DEE9FF"
3288
+ }
3289
+ }
3290
+ }, {
3291
+ "content": "{",
3292
+ "props": {
3293
+ "style": {
3294
+ "color": "#ECEFF4"
3295
+ }
3296
+ }
3297
+ }]
3298
+ }, {
3299
+ "tokens": [{
3300
+ "content": " ",
3301
+ "props": {
3302
+ "style": {
3303
+ "color": "#D8DEE9FF"
3304
+ }
3305
+ }
3306
+ }, {
3307
+ "content": "autoExternal",
3308
+ "props": {
3309
+ "style": {
3310
+ "color": "#D8DEE9"
3311
+ }
3312
+ }
3313
+ }, {
3314
+ "content": ":",
3315
+ "props": {
3316
+ "style": {
3317
+ "color": "#ECEFF4"
3318
+ }
3319
+ }
3320
+ }, {
3321
+ "content": " ",
3322
+ "props": {
3323
+ "style": {
3324
+ "color": "#D8DEE9FF"
3325
+ }
3326
+ }
3327
+ }, {
3328
+ "content": "{",
3329
+ "props": {
3330
+ "style": {
3331
+ "color": "#ECEFF4"
3332
+ }
3333
+ }
3334
+ }]
3335
+ }, {
3336
+ "tokens": [{
3337
+ "content": " ",
3338
+ "props": {
3339
+ "style": {
3340
+ "color": "#D8DEE9FF"
3341
+ }
3342
+ }
3343
+ }, {
3344
+ "content": "dependencies",
3345
+ "props": {
3346
+ "style": {
3347
+ "color": "#D8DEE9"
3348
+ }
3349
+ }
3350
+ }, {
3351
+ "content": ":",
3352
+ "props": {
3353
+ "style": {
3354
+ "color": "#ECEFF4"
3355
+ }
3356
+ }
3357
+ }, {
3358
+ "content": " ",
3359
+ "props": {
3360
+ "style": {
3361
+ "color": "#D8DEE9FF"
3362
+ }
3363
+ }
3364
+ }, {
3365
+ "content": "false",
3366
+ "props": {
3367
+ "style": {
3368
+ "color": "#81A1C1"
3369
+ }
3370
+ }
3371
+ }, {
3372
+ "content": ",",
3373
+ "props": {
3374
+ "style": {
3375
+ "color": "#ECEFF4"
3376
+ }
3377
+ }
3378
+ }]
3379
+ }, {
3380
+ "tokens": [{
3381
+ "content": " ",
3382
+ "props": {
3383
+ "style": {
3384
+ "color": "#D8DEE9FF"
3385
+ }
3386
+ }
3387
+ }, {
3388
+ "content": "peerDependencies",
3389
+ "props": {
3390
+ "style": {
3391
+ "color": "#D8DEE9"
3392
+ }
3393
+ }
3394
+ }, {
3395
+ "content": ":",
3396
+ "props": {
3397
+ "style": {
3398
+ "color": "#ECEFF4"
3399
+ }
3400
+ }
3401
+ }, {
3402
+ "content": " ",
3403
+ "props": {
3404
+ "style": {
3405
+ "color": "#D8DEE9FF"
3406
+ }
3407
+ }
3408
+ }, {
3409
+ "content": "false",
3410
+ "props": {
3411
+ "style": {
3412
+ "color": "#81A1C1"
3413
+ }
3414
+ }
3415
+ }, {
3416
+ "content": ",",
3417
+ "props": {
3418
+ "style": {
3419
+ "color": "#ECEFF4"
3420
+ }
3421
+ }
3422
+ }]
3423
+ }, {
3424
+ "tokens": [{
3425
+ "content": " ",
3426
+ "props": {
3427
+ "style": {
3428
+ "color": "#D8DEE9FF"
3429
+ }
3430
+ }
3431
+ }, {
3432
+ "content": "},",
3433
+ "props": {
3434
+ "style": {
3435
+ "color": "#ECEFF4"
3436
+ }
3437
+ }
3438
+ }]
3439
+ }, {
3440
+ "tokens": [{
3441
+ "content": " ",
3442
+ "props": {
3443
+ "style": {
3444
+ "color": "#D8DEE9FF"
3445
+ }
3446
+ }
3447
+ }, {
3448
+ "content": "},",
3449
+ "props": {
3450
+ "style": {
3451
+ "color": "#ECEFF4"
3452
+ }
3453
+ }
3454
+ }]
3455
+ }, {
3456
+ "tokens": [{
3457
+ "content": "}",
3458
+ "props": {
3459
+ "style": {
3460
+ "color": "#ECEFF4"
3461
+ }
3462
+ }
3463
+ }, {
3464
+ "content": ")",
3465
+ "props": {
3466
+ "style": {
3467
+ "color": "#D8DEE9FF"
3468
+ }
3469
+ }
3470
+ }, {
3471
+ "content": ";",
3472
+ "props": {
3473
+ "style": {
3474
+ "color": "#81A1C1"
3475
+ }
3476
+ }
3477
+ }]
3478
+ }],
3479
+ "lang": "ts"
3480
+ },
3481
+ "annotations": []
3482
+ }]
3483
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
3484
+ id: "排除指定第三方依赖",
3485
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3486
+ className: "header-anchor",
3487
+ "aria-hidden": "true",
3488
+ href: "#排除指定第三方依赖",
3489
+ children: "#"
3490
+ }), "排除指定第三方依赖"]
3491
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3492
+ children: ["而除了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3493
+ children: "buildConfig.autoExternal"
3494
+ }), " API 以外,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3495
+ children: "buildConfig.externals"
3496
+ }), " 也可以控制哪些第三方依赖要进行处理。我们可以组合这两个\nAPI 对项目的依赖进行更细微的处理。"]
3497
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3498
+ children: "例如当我们需要仅对某些依赖不进行打包处理的时候,可以按照如下方式进行配置:"
3499
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.blockquote, {
3500
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3501
+ children: "一般这种情况,可能是某些依赖不适合进行打包处理。如果遇到这种情况,则可以按照下面的方式进行处理。"
3502
+ }), "\n"]
3503
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3504
+ codeConfig: chCodeConfig,
3505
+ northPanel: {
3506
+ "tabs": [""],
3507
+ "active": "",
3508
+ "heightRatio": 1
3509
+ },
3510
+ files: [{
3511
+ "name": "",
3512
+ "focus": "",
3513
+ "code": {
3514
+ "lines": [{
3515
+ "tokens": [{
3516
+ "content": "epxort",
3517
+ "props": {
3518
+ "style": {
3519
+ "color": "#D8DEE9"
3520
+ }
3521
+ }
3522
+ }, {
3523
+ "content": " ",
3524
+ "props": {
3525
+ "style": {
3526
+ "color": "#D8DEE9FF"
3527
+ }
3528
+ }
3529
+ }, {
3530
+ "content": "default",
3531
+ "props": {
3532
+ "style": {
3533
+ "color": "#81A1C1"
3534
+ }
3535
+ }
3536
+ }, {
3537
+ "content": " ",
3538
+ "props": {
3539
+ "style": {
3540
+ "color": "#D8DEE9FF"
3541
+ }
3542
+ }
3543
+ }, {
3544
+ "content": "defineConfig",
3545
+ "props": {
3546
+ "style": {
3547
+ "color": "#88C0D0"
3548
+ }
3549
+ }
3550
+ }, {
3551
+ "content": "(",
3552
+ "props": {
3553
+ "style": {
3554
+ "color": "#D8DEE9FF"
3555
+ }
3556
+ }
3557
+ }, {
3558
+ "content": "{",
3559
+ "props": {
3560
+ "style": {
3561
+ "color": "#ECEFF4"
3562
+ }
3563
+ }
3564
+ }]
3565
+ }, {
3566
+ "tokens": [{
3567
+ "content": " ",
3568
+ "props": {
3569
+ "style": {
3570
+ "color": "#D8DEE9FF"
3571
+ }
3572
+ }
3573
+ }, {
3574
+ "content": "buildConfig",
3575
+ "props": {
3576
+ "style": {
3577
+ "color": "#D8DEE9"
3578
+ }
3579
+ }
3580
+ }, {
3581
+ "content": ":",
3582
+ "props": {
3583
+ "style": {
3584
+ "color": "#ECEFF4"
3585
+ }
3586
+ }
3587
+ }, {
3588
+ "content": " ",
3589
+ "props": {
3590
+ "style": {
3591
+ "color": "#D8DEE9FF"
3592
+ }
3593
+ }
3594
+ }, {
3595
+ "content": "{",
3596
+ "props": {
3597
+ "style": {
3598
+ "color": "#ECEFF4"
3599
+ }
3600
+ }
3601
+ }]
3602
+ }, {
3603
+ "tokens": [{
3604
+ "content": " ",
3605
+ "props": {
3606
+ "style": {
3607
+ "color": "#D8DEE9FF"
3608
+ }
3609
+ }
3610
+ }, {
3611
+ "content": "autoExternal",
3612
+ "props": {
3613
+ "style": {
3614
+ "color": "#D8DEE9"
3615
+ }
3616
+ }
3617
+ }, {
3618
+ "content": ":",
3619
+ "props": {
3620
+ "style": {
3621
+ "color": "#ECEFF4"
3622
+ }
3623
+ }
3624
+ }, {
3625
+ "content": " ",
3626
+ "props": {
3627
+ "style": {
3628
+ "color": "#D8DEE9FF"
3629
+ }
3630
+ }
3631
+ }, {
3632
+ "content": "false",
3633
+ "props": {
3634
+ "style": {
3635
+ "color": "#81A1C1"
3636
+ }
3637
+ }
3638
+ }, {
3639
+ "content": ",",
3640
+ "props": {
3641
+ "style": {
3642
+ "color": "#ECEFF4"
3643
+ }
3644
+ }
3645
+ }]
3646
+ }, {
3647
+ "tokens": [{
3648
+ "content": " ",
3649
+ "props": {
3650
+ "style": {
3651
+ "color": "#D8DEE9FF"
3652
+ }
3653
+ }
3654
+ }, {
3655
+ "content": "externals",
3656
+ "props": {
3657
+ "style": {
3658
+ "color": "#D8DEE9"
3659
+ }
3660
+ }
3661
+ }, {
3662
+ "content": ":",
3663
+ "props": {
3664
+ "style": {
3665
+ "color": "#ECEFF4"
3666
+ }
3667
+ }
3668
+ }, {
3669
+ "content": " [",
3670
+ "props": {
3671
+ "style": {
3672
+ "color": "#D8DEE9FF"
3673
+ }
3674
+ }
3675
+ }, {
3676
+ "content": "'",
3677
+ "props": {
3678
+ "style": {
3679
+ "color": "#ECEFF4"
3680
+ }
3681
+ }
3682
+ }, {
3683
+ "content": "pkg-1",
3684
+ "props": {
3685
+ "style": {
3686
+ "color": "#A3BE8C"
3687
+ }
3688
+ }
3689
+ }, {
3690
+ "content": "'",
3691
+ "props": {
3692
+ "style": {
3693
+ "color": "#ECEFF4"
3694
+ }
3695
+ }
3696
+ }, {
3697
+ "content": ",",
3698
+ "props": {
3699
+ "style": {
3700
+ "color": "#ECEFF4"
3701
+ }
3702
+ }
3703
+ }, {
3704
+ "content": " ",
3705
+ "props": {
3706
+ "style": {
3707
+ "color": "#EBCB8B"
3708
+ }
3709
+ }
3710
+ }, {
3711
+ "content": "/",
3712
+ "props": {
3713
+ "style": {
3714
+ "color": "#ECEFF4"
3715
+ }
3716
+ }
3717
+ }, {
3718
+ "content": "pkg-2",
3719
+ "props": {
3720
+ "style": {
3721
+ "color": "#EBCB8B"
3722
+ }
3723
+ }
3724
+ }, {
3725
+ "content": "/",
3726
+ "props": {
3727
+ "style": {
3728
+ "color": "#ECEFF4"
3729
+ }
3730
+ }
3731
+ }, {
3732
+ "content": "]",
3733
+ "props": {
3734
+ "style": {
3735
+ "color": "#D8DEE9FF"
3736
+ }
3737
+ }
3738
+ }, {
3739
+ "content": ",",
3740
+ "props": {
3741
+ "style": {
3742
+ "color": "#ECEFF4"
3743
+ }
3744
+ }
3745
+ }]
3746
+ }, {
3747
+ "tokens": [{
3748
+ "content": " ",
3749
+ "props": {
3750
+ "style": {
3751
+ "color": "#D8DEE9FF"
3752
+ }
3753
+ }
3754
+ }, {
3755
+ "content": "}",
3756
+ "props": {
3757
+ "style": {
3758
+ "color": "#ECEFF4"
3759
+ }
3760
+ }
3761
+ }]
3762
+ }, {
3763
+ "tokens": [{
3764
+ "content": "}",
3765
+ "props": {
3766
+ "style": {
3767
+ "color": "#ECEFF4"
3768
+ }
3769
+ }
3770
+ }, {
3771
+ "content": ")",
3772
+ "props": {
3773
+ "style": {
3774
+ "color": "#D8DEE9FF"
3775
+ }
3776
+ }
3777
+ }, {
3778
+ "content": ";",
3779
+ "props": {
3780
+ "style": {
3781
+ "color": "#81A1C1"
3782
+ }
3783
+ }
3784
+ }]
3785
+ }],
3786
+ "lang": "ts"
3787
+ },
3788
+ "annotations": []
3789
+ }]
3790
+ })]
3791
+ });
3792
+ }
3793
+ function MDXContent() {
3794
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3795
+ var _ref = props.components || {},
3796
+ MDXLayout = _ref.wrapper;
3797
+ return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
3798
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
3799
+ })) : _createMdxContent(props);
3800
+ }
3801
+ _c = MDXContent;
3802
+ /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
3803
+ function _missingMdxReference(id, component, place) {
3804
+ throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/bytedance/modern.js/website/module-tools/docs/zh/guide/advance/external-dependency.mdx`" : ""));
3805
+ }
3806
+ var _c;
3807
+ __webpack_require__.$Refresh$.register(_c, "MDXContent");
3808
+
3809
+ /***/ })
3810
+
3811
+ }]);
3812
+ //# sourceMappingURL=guide_advance_external-dependency.js.map