@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,2560 @@
1
+ "use strict";
2
+ (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["en_plugins_guide_getting-started"],{
3
+
4
+ /***/ "./docs/en/plugins/guide/getting-started.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
+ Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
24
+ CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot
25
+ };
26
+ var chCodeConfig = {
27
+ "staticMediaQuery": "not screen, (max-width: 768px)",
28
+ "theme": {
29
+ "name": "nord",
30
+ "type": "dark",
31
+ "semanticHighlighting": true,
32
+ "colors": {
33
+ "focusBorder": "#3b4252",
34
+ "foreground": "#d8dee9",
35
+ "activityBar.background": "#2e3440",
36
+ "activityBar.dropBackground": "#3b4252",
37
+ "activityBar.foreground": "#d8dee9",
38
+ "activityBar.activeBorder": "#88c0d0",
39
+ "activityBar.activeBackground": "#3b4252",
40
+ "activityBarBadge.background": "#88c0d0",
41
+ "activityBarBadge.foreground": "#2e3440",
42
+ "badge.foreground": "#2e3440",
43
+ "badge.background": "#88c0d0",
44
+ "button.background": "#88c0d0ee",
45
+ "button.foreground": "#2e3440",
46
+ "button.hoverBackground": "#88c0d0",
47
+ "button.secondaryBackground": "#434c5e",
48
+ "button.secondaryForeground": "#d8dee9",
49
+ "button.secondaryHoverBackground": "#4c566a",
50
+ "charts.red": "#bf616a",
51
+ "charts.blue": "#81a1c1",
52
+ "charts.yellow": "#ebcb8b",
53
+ "charts.orange": "#d08770",
54
+ "charts.green": "#a3be8c",
55
+ "charts.purple": "#b48ead",
56
+ "charts.foreground": "#d8dee9",
57
+ "charts.lines": "#88c0d0",
58
+ "debugConsole.infoForeground": "#88c0d0",
59
+ "debugConsole.warningForeground": "#ebcb8b",
60
+ "debugConsole.errorForeground": "#bf616a",
61
+ "debugConsole.sourceForeground": "#616e88",
62
+ "debugConsoleInputIcon.foreground": "#81a1c1",
63
+ "debugExceptionWidget.background": "#4c566a",
64
+ "debugExceptionWidget.border": "#2e3440",
65
+ "debugToolBar.background": "#3b4252",
66
+ "descriptionForeground": "#d8dee9e6",
67
+ "diffEditor.insertedTextBackground": "#81a1c133",
68
+ "diffEditor.removedTextBackground": "#bf616a4d",
69
+ "dropdown.background": "#3b4252",
70
+ "dropdown.border": "#3b4252",
71
+ "dropdown.foreground": "#d8dee9",
72
+ "editorActiveLineNumber.foreground": "#d8dee9cc",
73
+ "editorCursor.foreground": "#d8dee9",
74
+ "editorHint.border": "#ebcb8b00",
75
+ "editorHint.foreground": "#ebcb8b",
76
+ "editorIndentGuide.background": "#434c5eb3",
77
+ "editorIndentGuide.activeBackground": "#4c566a",
78
+ "editorInlayHint.background": "#434c5e",
79
+ "editorInlayHint.foreground": "#d8dee9",
80
+ "editorLineNumber.foreground": "#4c566a",
81
+ "editorLineNumber.activeForeground": "#d8dee9",
82
+ "editorWhitespace.foreground": "#4c566ab3",
83
+ "editorWidget.background": "#2e3440",
84
+ "editorWidget.border": "#3b4252",
85
+ "editor.background": "#2e3440",
86
+ "editor.foreground": "#d8dee9",
87
+ "editor.hoverHighlightBackground": "#3b4252",
88
+ "editor.findMatchBackground": "#88c0d066",
89
+ "editor.findMatchHighlightBackground": "#88c0d033",
90
+ "editor.findRangeHighlightBackground": "#88c0d033",
91
+ "editor.lineHighlightBackground": "#3b4252",
92
+ "editor.lineHighlightBorder": "#3b4252",
93
+ "editor.inactiveSelectionBackground": "#434c5ecc",
94
+ "editor.inlineValuesBackground": "#4c566a",
95
+ "editor.inlineValuesForeground": "#eceff4",
96
+ "editor.selectionBackground": "#434c5ecc",
97
+ "editor.selectionHighlightBackground": "#434c5ecc",
98
+ "editor.rangeHighlightBackground": "#434c5e52",
99
+ "editor.wordHighlightBackground": "#81a1c166",
100
+ "editor.wordHighlightStrongBackground": "#81a1c199",
101
+ "editor.stackFrameHighlightBackground": "#5e81ac",
102
+ "editor.focusedStackFrameHighlightBackground": "#5e81ac",
103
+ "editorError.foreground": "#bf616a",
104
+ "editorError.border": "#bf616a00",
105
+ "editorWarning.foreground": "#ebcb8b",
106
+ "editorWarning.border": "#ebcb8b00",
107
+ "editorBracketMatch.background": "#2e344000",
108
+ "editorBracketMatch.border": "#88c0d0",
109
+ "editorBracketHighlight.foreground1": "#8fbcbb",
110
+ "editorBracketHighlight.foreground2": "#88c0d0",
111
+ "editorBracketHighlight.foreground3": "#81a1c1",
112
+ "editorBracketHighlight.foreground4": "#5e81ac",
113
+ "editorBracketHighlight.foreground5": "#8fbcbb",
114
+ "editorBracketHighlight.foreground6": "#88c0d0",
115
+ "editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
116
+ "editorCodeLens.foreground": "#4c566a",
117
+ "editorGroup.background": "#2e3440",
118
+ "editorGroup.border": "#3b425201",
119
+ "editorGroup.dropBackground": "#3b425299",
120
+ "editorGroupHeader.border": "#3b425200",
121
+ "editorGroupHeader.noTabsBackground": "#2e3440",
122
+ "editorGroupHeader.tabsBackground": "#2e3440",
123
+ "editorGroupHeader.tabsBorder": "#3b425200",
124
+ "editorGutter.background": "#2e3440",
125
+ "editorGutter.modifiedBackground": "#ebcb8b",
126
+ "editorGutter.addedBackground": "#a3be8c",
127
+ "editorGutter.deletedBackground": "#bf616a",
128
+ "editorHoverWidget.background": "#3b4252",
129
+ "editorHoverWidget.border": "#3b4252",
130
+ "editorLink.activeForeground": "#88c0d0",
131
+ "editorMarkerNavigation.background": "#5e81acc0",
132
+ "editorMarkerNavigationError.background": "#bf616ac0",
133
+ "editorMarkerNavigationWarning.background": "#ebcb8bc0",
134
+ "editorOverviewRuler.border": "#3b4252",
135
+ "editorOverviewRuler.currentContentForeground": "#3b4252",
136
+ "editorOverviewRuler.incomingContentForeground": "#3b4252",
137
+ "editorOverviewRuler.findMatchForeground": "#88c0d066",
138
+ "editorOverviewRuler.rangeHighlightForeground": "#88c0d066",
139
+ "editorOverviewRuler.selectionHighlightForeground": "#88c0d066",
140
+ "editorOverviewRuler.wordHighlightForeground": "#88c0d066",
141
+ "editorOverviewRuler.wordHighlightStrongForeground": "#88c0d066",
142
+ "editorOverviewRuler.modifiedForeground": "#ebcb8b",
143
+ "editorOverviewRuler.addedForeground": "#a3be8c",
144
+ "editorOverviewRuler.deletedForeground": "#bf616a",
145
+ "editorOverviewRuler.errorForeground": "#bf616a",
146
+ "editorOverviewRuler.warningForeground": "#ebcb8b",
147
+ "editorOverviewRuler.infoForeground": "#81a1c1",
148
+ "editorRuler.foreground": "#434c5e",
149
+ "editorSuggestWidget.background": "#2e3440",
150
+ "editorSuggestWidget.border": "#3b4252",
151
+ "editorSuggestWidget.foreground": "#d8dee9",
152
+ "editorSuggestWidget.focusHighlightForeground": "#88c0d0",
153
+ "editorSuggestWidget.highlightForeground": "#88c0d0",
154
+ "editorSuggestWidget.selectedBackground": "#434c5e",
155
+ "editorSuggestWidget.selectedForeground": "#d8dee9",
156
+ "extensionButton.prominentForeground": "#d8dee9",
157
+ "extensionButton.prominentBackground": "#434c5e",
158
+ "extensionButton.prominentHoverBackground": "#4c566a",
159
+ "errorForeground": "#bf616a",
160
+ "gitDecoration.modifiedResourceForeground": "#ebcb8b",
161
+ "gitDecoration.deletedResourceForeground": "#bf616a",
162
+ "gitDecoration.untrackedResourceForeground": "#a3be8c",
163
+ "gitDecoration.ignoredResourceForeground": "#d8dee966",
164
+ "gitDecoration.conflictingResourceForeground": "#5e81ac",
165
+ "gitDecoration.submoduleResourceForeground": "#8fbcbb",
166
+ "gitDecoration.stageDeletedResourceForeground": "#bf616a",
167
+ "gitDecoration.stageModifiedResourceForeground": "#ebcb8b",
168
+ "input.background": "#3b4252",
169
+ "input.foreground": "#d8dee9",
170
+ "input.placeholderForeground": "#d8dee999",
171
+ "input.border": "#3b4252",
172
+ "inputOption.activeBackground": "#5e81ac",
173
+ "inputOption.activeBorder": "#5e81ac",
174
+ "inputOption.activeForeground": "#eceff4",
175
+ "inputValidation.errorBackground": "#bf616a",
176
+ "inputValidation.errorBorder": "#bf616a",
177
+ "inputValidation.infoBackground": "#81a1c1",
178
+ "inputValidation.infoBorder": "#81a1c1",
179
+ "inputValidation.warningBackground": "#d08770",
180
+ "inputValidation.warningBorder": "#d08770",
181
+ "keybindingLabel.background": "#4c566a",
182
+ "keybindingLabel.border": "#4c566a",
183
+ "keybindingLabel.bottomBorder": "#4c566a",
184
+ "keybindingLabel.foreground": "#d8dee9",
185
+ "list.activeSelectionBackground": "#88c0d0",
186
+ "list.activeSelectionForeground": "#2e3440",
187
+ "list.inactiveSelectionBackground": "#434c5e",
188
+ "list.inactiveSelectionForeground": "#d8dee9",
189
+ "list.inactiveFocusBackground": "#434c5ecc",
190
+ "list.hoverForeground": "#eceff4",
191
+ "list.focusForeground": "#d8dee9",
192
+ "list.focusBackground": "#88c0d099",
193
+ "list.focusHighlightForeground": "#eceff4",
194
+ "list.hoverBackground": "#3b4252",
195
+ "list.dropBackground": "#88c0d099",
196
+ "list.highlightForeground": "#88c0d0",
197
+ "list.errorForeground": "#bf616a",
198
+ "list.warningForeground": "#ebcb8b",
199
+ "merge.currentHeaderBackground": "#81a1c166",
200
+ "merge.currentContentBackground": "#81a1c14d",
201
+ "merge.incomingHeaderBackground": "#8fbcbb66",
202
+ "merge.incomingContentBackground": "#8fbcbb4d",
203
+ "merge.border": "#3b425200",
204
+ "minimap.background": "#2e3440",
205
+ "minimap.errorHighlight": "#bf616acc",
206
+ "minimap.findMatchHighlight": "#88c0d0",
207
+ "minimap.selectionHighlight": "#88c0d0cc",
208
+ "minimap.warningHighlight": "#ebcb8bcc",
209
+ "minimapGutter.addedBackground": "#a3be8c",
210
+ "minimapGutter.deletedBackground": "#bf616a",
211
+ "minimapGutter.modifiedBackground": "#ebcb8b",
212
+ "minimapSlider.activeBackground": "#434c5eaa",
213
+ "minimapSlider.background": "#434c5e99",
214
+ "minimapSlider.hoverBackground": "#434c5eaa",
215
+ "notification.background": "#3b4252",
216
+ "notification.buttonBackground": "#434c5e",
217
+ "notification.buttonForeground": "#d8dee9",
218
+ "notification.buttonHoverBackground": "#4c566a",
219
+ "notification.errorBackground": "#bf616a",
220
+ "notification.errorForeground": "#2e3440",
221
+ "notification.foreground": "#d8dee9",
222
+ "notification.infoBackground": "#88c0d0",
223
+ "notification.infoForeground": "#2e3440",
224
+ "notification.warningBackground": "#ebcb8b",
225
+ "notification.warningForeground": "#2e3440",
226
+ "notificationCenter.border": "#3b425200",
227
+ "notificationCenterHeader.background": "#2e3440",
228
+ "notificationCenterHeader.foreground": "#88c0d0",
229
+ "notificationLink.foreground": "#88c0d0",
230
+ "notifications.background": "#3b4252",
231
+ "notifications.border": "#2e3440",
232
+ "notifications.foreground": "#d8dee9",
233
+ "notificationToast.border": "#3b425200",
234
+ "panel.background": "#2e3440",
235
+ "panel.border": "#3b4252",
236
+ "panelTitle.activeBorder": "#88c0d000",
237
+ "panelTitle.activeForeground": "#88c0d0",
238
+ "panelTitle.inactiveForeground": "#d8dee9",
239
+ "peekView.border": "#4c566a",
240
+ "peekViewEditor.background": "#2e3440",
241
+ "peekViewEditorGutter.background": "#2e3440",
242
+ "peekViewEditor.matchHighlightBackground": "#88c0d04d",
243
+ "peekViewResult.background": "#2e3440",
244
+ "peekViewResult.fileForeground": "#88c0d0",
245
+ "peekViewResult.lineForeground": "#d8dee966",
246
+ "peekViewResult.matchHighlightBackground": "#88c0d0cc",
247
+ "peekViewResult.selectionBackground": "#434c5e",
248
+ "peekViewResult.selectionForeground": "#d8dee9",
249
+ "peekViewTitle.background": "#3b4252",
250
+ "peekViewTitleDescription.foreground": "#d8dee9",
251
+ "peekViewTitleLabel.foreground": "#88c0d0",
252
+ "pickerGroup.border": "#3b4252",
253
+ "pickerGroup.foreground": "#88c0d0",
254
+ "progressBar.background": "#88c0d0",
255
+ "quickInputList.focusBackground": "#88c0d0",
256
+ "quickInputList.focusForeground": "#2e3440",
257
+ "sash.hoverBorder": "#88c0d0",
258
+ "scrollbar.shadow": "#00000066",
259
+ "scrollbarSlider.activeBackground": "#434c5eaa",
260
+ "scrollbarSlider.background": "#434c5e99",
261
+ "scrollbarSlider.hoverBackground": "#434c5eaa",
262
+ "selection.background": "#88c0d099",
263
+ "sideBar.background": "#2e3440",
264
+ "sideBar.foreground": "#d8dee9",
265
+ "sideBar.border": "#3b4252",
266
+ "sideBarSectionHeader.background": "#3b4252",
267
+ "sideBarSectionHeader.foreground": "#d8dee9",
268
+ "sideBarTitle.foreground": "#d8dee9",
269
+ "statusBar.background": "#3b4252",
270
+ "statusBar.debuggingBackground": "#5e81ac",
271
+ "statusBar.debuggingForeground": "#d8dee9",
272
+ "statusBar.noFolderForeground": "#d8dee9",
273
+ "statusBar.noFolderBackground": "#3b4252",
274
+ "statusBar.foreground": "#d8dee9",
275
+ "statusBarItem.activeBackground": "#4c566a",
276
+ "statusBarItem.hoverBackground": "#434c5e",
277
+ "statusBarItem.prominentBackground": "#3b4252",
278
+ "statusBarItem.prominentHoverBackground": "#434c5e",
279
+ "statusBarItem.errorBackground": "#3b4252",
280
+ "statusBarItem.errorForeground": "#bf616a",
281
+ "statusBarItem.warningBackground": "#ebcb8b",
282
+ "statusBarItem.warningForeground": "#2e3440",
283
+ "statusBar.border": "#3b425200",
284
+ "tab.activeBackground": "#3b4252",
285
+ "tab.activeForeground": "#d8dee9",
286
+ "tab.border": "#3b425200",
287
+ "tab.activeBorder": "#88c0d000",
288
+ "tab.unfocusedActiveBorder": "#88c0d000",
289
+ "tab.inactiveBackground": "#2e3440",
290
+ "tab.inactiveForeground": "#d8dee966",
291
+ "tab.unfocusedActiveForeground": "#d8dee999",
292
+ "tab.unfocusedInactiveForeground": "#d8dee966",
293
+ "tab.hoverBackground": "#3b4252cc",
294
+ "tab.unfocusedHoverBackground": "#3b4252b3",
295
+ "tab.hoverBorder": "#88c0d000",
296
+ "tab.unfocusedHoverBorder": "#88c0d000",
297
+ "tab.activeBorderTop": "#88c0d000",
298
+ "tab.unfocusedActiveBorderTop": "#88c0d000",
299
+ "tab.lastPinnedBorder": "#4c566a",
300
+ "terminal.background": "#2e3440",
301
+ "terminal.foreground": "#d8dee9",
302
+ "terminal.ansiBlack": "#3b4252",
303
+ "terminal.ansiRed": "#bf616a",
304
+ "terminal.ansiGreen": "#a3be8c",
305
+ "terminal.ansiYellow": "#ebcb8b",
306
+ "terminal.ansiBlue": "#81a1c1",
307
+ "terminal.ansiMagenta": "#b48ead",
308
+ "terminal.ansiCyan": "#88c0d0",
309
+ "terminal.ansiWhite": "#e5e9f0",
310
+ "terminal.ansiBrightBlack": "#4c566a",
311
+ "terminal.ansiBrightRed": "#bf616a",
312
+ "terminal.ansiBrightGreen": "#a3be8c",
313
+ "terminal.ansiBrightYellow": "#ebcb8b",
314
+ "terminal.ansiBrightBlue": "#81a1c1",
315
+ "terminal.ansiBrightMagenta": "#b48ead",
316
+ "terminal.ansiBrightCyan": "#8fbcbb",
317
+ "terminal.ansiBrightWhite": "#eceff4",
318
+ "terminal.tab.activeBorder": "#88c0d0",
319
+ "textBlockQuote.background": "#3b4252",
320
+ "textBlockQuote.border": "#81a1c1",
321
+ "textCodeBlock.background": "#4c566a",
322
+ "textLink.activeForeground": "#88c0d0",
323
+ "textLink.foreground": "#88c0d0",
324
+ "textPreformat.foreground": "#8fbcbb",
325
+ "textSeparator.foreground": "#eceff4",
326
+ "titleBar.activeBackground": "#2e3440",
327
+ "titleBar.activeForeground": "#d8dee9",
328
+ "titleBar.border": "#2e344000",
329
+ "titleBar.inactiveBackground": "#2e3440",
330
+ "titleBar.inactiveForeground": "#d8dee966",
331
+ "tree.indentGuidesStroke": "#616e88",
332
+ "walkThrough.embeddedEditorBackground": "#2e3440",
333
+ "welcomePage.buttonBackground": "#434c5e",
334
+ "welcomePage.buttonHoverBackground": "#4c566a",
335
+ "widget.shadow": "#00000066"
336
+ },
337
+ "tokenColors": [{
338
+ "settings": {
339
+ "foreground": "#d8dee9ff",
340
+ "background": "#2e3440ff"
341
+ }
342
+ }, {
343
+ "scope": "emphasis",
344
+ "settings": {
345
+ "fontStyle": "italic"
346
+ }
347
+ }, {
348
+ "scope": "strong",
349
+ "settings": {
350
+ "fontStyle": "bold"
351
+ }
352
+ }, {
353
+ "name": "Comment",
354
+ "scope": "comment",
355
+ "settings": {
356
+ "foreground": "#616E88"
357
+ }
358
+ }, {
359
+ "name": "Constant Character",
360
+ "scope": "constant.character",
361
+ "settings": {
362
+ "foreground": "#EBCB8B"
363
+ }
364
+ }, {
365
+ "name": "Constant Character Escape",
366
+ "scope": "constant.character.escape",
367
+ "settings": {
368
+ "foreground": "#EBCB8B"
369
+ }
370
+ }, {
371
+ "name": "Constant Language",
372
+ "scope": "constant.language",
373
+ "settings": {
374
+ "foreground": "#81A1C1"
375
+ }
376
+ }, {
377
+ "name": "Constant Numeric",
378
+ "scope": "constant.numeric",
379
+ "settings": {
380
+ "foreground": "#B48EAD"
381
+ }
382
+ }, {
383
+ "name": "Constant Regexp",
384
+ "scope": "constant.regexp",
385
+ "settings": {
386
+ "foreground": "#EBCB8B"
387
+ }
388
+ }, {
389
+ "name": "Entity Name Class/Type",
390
+ "scope": ["entity.name.class", "entity.name.type.class"],
391
+ "settings": {
392
+ "foreground": "#8FBCBB"
393
+ }
394
+ }, {
395
+ "name": "Entity Name Function",
396
+ "scope": "entity.name.function",
397
+ "settings": {
398
+ "foreground": "#88C0D0"
399
+ }
400
+ }, {
401
+ "name": "Entity Name Tag",
402
+ "scope": "entity.name.tag",
403
+ "settings": {
404
+ "foreground": "#81A1C1"
405
+ }
406
+ }, {
407
+ "name": "Entity Other Attribute Name",
408
+ "scope": "entity.other.attribute-name",
409
+ "settings": {
410
+ "foreground": "#8FBCBB"
411
+ }
412
+ }, {
413
+ "name": "Entity Other Inherited Class",
414
+ "scope": "entity.other.inherited-class",
415
+ "settings": {
416
+ "fontStyle": "bold",
417
+ "foreground": "#8FBCBB"
418
+ }
419
+ }, {
420
+ "name": "Invalid Deprecated",
421
+ "scope": "invalid.deprecated",
422
+ "settings": {
423
+ "foreground": "#D8DEE9",
424
+ "background": "#EBCB8B"
425
+ }
426
+ }, {
427
+ "name": "Invalid Illegal",
428
+ "scope": "invalid.illegal",
429
+ "settings": {
430
+ "foreground": "#D8DEE9",
431
+ "background": "#BF616A"
432
+ }
433
+ }, {
434
+ "name": "Keyword",
435
+ "scope": "keyword",
436
+ "settings": {
437
+ "foreground": "#81A1C1"
438
+ }
439
+ }, {
440
+ "name": "Keyword Operator",
441
+ "scope": "keyword.operator",
442
+ "settings": {
443
+ "foreground": "#81A1C1"
444
+ }
445
+ }, {
446
+ "name": "Keyword Other New",
447
+ "scope": "keyword.other.new",
448
+ "settings": {
449
+ "foreground": "#81A1C1"
450
+ }
451
+ }, {
452
+ "name": "Markup Bold",
453
+ "scope": "markup.bold",
454
+ "settings": {
455
+ "fontStyle": "bold"
456
+ }
457
+ }, {
458
+ "name": "Markup Changed",
459
+ "scope": "markup.changed",
460
+ "settings": {
461
+ "foreground": "#EBCB8B"
462
+ }
463
+ }, {
464
+ "name": "Markup Deleted",
465
+ "scope": "markup.deleted",
466
+ "settings": {
467
+ "foreground": "#BF616A"
468
+ }
469
+ }, {
470
+ "name": "Markup Inserted",
471
+ "scope": "markup.inserted",
472
+ "settings": {
473
+ "foreground": "#A3BE8C"
474
+ }
475
+ }, {
476
+ "name": "Meta Preprocessor",
477
+ "scope": "meta.preprocessor",
478
+ "settings": {
479
+ "foreground": "#5E81AC"
480
+ }
481
+ }, {
482
+ "name": "Punctuation",
483
+ "scope": "punctuation",
484
+ "settings": {
485
+ "foreground": "#ECEFF4"
486
+ }
487
+ }, {
488
+ "name": "Punctuation Definition Parameters",
489
+ "scope": ["punctuation.definition.method-parameters", "punctuation.definition.function-parameters", "punctuation.definition.parameters"],
490
+ "settings": {
491
+ "foreground": "#ECEFF4"
492
+ }
493
+ }, {
494
+ "name": "Punctuation Definition Tag",
495
+ "scope": "punctuation.definition.tag",
496
+ "settings": {
497
+ "foreground": "#81A1C1"
498
+ }
499
+ }, {
500
+ "name": "Punctuation Definition Comment",
501
+ "scope": ["punctuation.definition.comment", "punctuation.end.definition.comment", "punctuation.start.definition.comment"],
502
+ "settings": {
503
+ "foreground": "#616E88"
504
+ }
505
+ }, {
506
+ "name": "Punctuation Section",
507
+ "scope": "punctuation.section",
508
+ "settings": {
509
+ "foreground": "#ECEFF4"
510
+ }
511
+ }, {
512
+ "name": "Punctuation Section Embedded",
513
+ "scope": ["punctuation.section.embedded.begin", "punctuation.section.embedded.end"],
514
+ "settings": {
515
+ "foreground": "#81A1C1"
516
+ }
517
+ }, {
518
+ "name": "Punctuation Terminator",
519
+ "scope": "punctuation.terminator",
520
+ "settings": {
521
+ "foreground": "#81A1C1"
522
+ }
523
+ }, {
524
+ "name": "Punctuation Variable",
525
+ "scope": "punctuation.definition.variable",
526
+ "settings": {
527
+ "foreground": "#81A1C1"
528
+ }
529
+ }, {
530
+ "name": "Storage",
531
+ "scope": "storage",
532
+ "settings": {
533
+ "foreground": "#81A1C1"
534
+ }
535
+ }, {
536
+ "name": "String",
537
+ "scope": "string",
538
+ "settings": {
539
+ "foreground": "#A3BE8C"
540
+ }
541
+ }, {
542
+ "name": "String Regexp",
543
+ "scope": "string.regexp",
544
+ "settings": {
545
+ "foreground": "#EBCB8B"
546
+ }
547
+ }, {
548
+ "name": "Support Class",
549
+ "scope": "support.class",
550
+ "settings": {
551
+ "foreground": "#8FBCBB"
552
+ }
553
+ }, {
554
+ "name": "Support Constant",
555
+ "scope": "support.constant",
556
+ "settings": {
557
+ "foreground": "#81A1C1"
558
+ }
559
+ }, {
560
+ "name": "Support Function",
561
+ "scope": "support.function",
562
+ "settings": {
563
+ "foreground": "#88C0D0"
564
+ }
565
+ }, {
566
+ "name": "Support Function Construct",
567
+ "scope": "support.function.construct",
568
+ "settings": {
569
+ "foreground": "#81A1C1"
570
+ }
571
+ }, {
572
+ "name": "Support Type",
573
+ "scope": "support.type",
574
+ "settings": {
575
+ "foreground": "#8FBCBB"
576
+ }
577
+ }, {
578
+ "name": "Support Type Exception",
579
+ "scope": "support.type.exception",
580
+ "settings": {
581
+ "foreground": "#8FBCBB"
582
+ }
583
+ }, {
584
+ "name": "Token Debug",
585
+ "scope": "token.debug-token",
586
+ "settings": {
587
+ "foreground": "#b48ead"
588
+ }
589
+ }, {
590
+ "name": "Token Error",
591
+ "scope": "token.error-token",
592
+ "settings": {
593
+ "foreground": "#bf616a"
594
+ }
595
+ }, {
596
+ "name": "Token Info",
597
+ "scope": "token.info-token",
598
+ "settings": {
599
+ "foreground": "#88c0d0"
600
+ }
601
+ }, {
602
+ "name": "Token Warning",
603
+ "scope": "token.warn-token",
604
+ "settings": {
605
+ "foreground": "#ebcb8b"
606
+ }
607
+ }, {
608
+ "name": "Variable",
609
+ "scope": "variable.other",
610
+ "settings": {
611
+ "foreground": "#D8DEE9"
612
+ }
613
+ }, {
614
+ "name": "Variable Language",
615
+ "scope": "variable.language",
616
+ "settings": {
617
+ "foreground": "#81A1C1"
618
+ }
619
+ }, {
620
+ "name": "Variable Parameter",
621
+ "scope": "variable.parameter",
622
+ "settings": {
623
+ "foreground": "#D8DEE9"
624
+ }
625
+ }, {
626
+ "name": "[C/CPP] Punctuation Separator Pointer-Access",
627
+ "scope": "punctuation.separator.pointer-access.c",
628
+ "settings": {
629
+ "foreground": "#81A1C1"
630
+ }
631
+ }, {
632
+ "name": "[C/CPP] Meta Preprocessor Include",
633
+ "scope": ["source.c meta.preprocessor.include", "source.c string.quoted.other.lt-gt.include"],
634
+ "settings": {
635
+ "foreground": "#8FBCBB"
636
+ }
637
+ }, {
638
+ "name": "[C/CPP] Conditional Directive",
639
+ "scope": ["source.cpp keyword.control.directive.conditional", "source.cpp punctuation.definition.directive", "source.c keyword.control.directive.conditional", "source.c punctuation.definition.directive"],
640
+ "settings": {
641
+ "foreground": "#5E81AC",
642
+ "fontStyle": "bold"
643
+ }
644
+ }, {
645
+ "name": "[CSS] Constant Other Color RGB Value",
646
+ "scope": "source.css constant.other.color.rgb-value",
647
+ "settings": {
648
+ "foreground": "#B48EAD"
649
+ }
650
+ }, {
651
+ "name": "[CSS](Function) Meta Property-Value",
652
+ "scope": "source.css meta.property-value",
653
+ "settings": {
654
+ "foreground": "#88C0D0"
655
+ }
656
+ }, {
657
+ "name": "[CSS] Media Queries",
658
+ "scope": ["source.css keyword.control.at-rule.media", "source.css keyword.control.at-rule.media punctuation.definition.keyword"],
659
+ "settings": {
660
+ "foreground": "#D08770"
661
+ }
662
+ }, {
663
+ "name": "[CSS] Punctuation Definition Keyword",
664
+ "scope": "source.css punctuation.definition.keyword",
665
+ "settings": {
666
+ "foreground": "#81A1C1"
667
+ }
668
+ }, {
669
+ "name": "[CSS] Support Type Property Name",
670
+ "scope": "source.css support.type.property-name",
671
+ "settings": {
672
+ "foreground": "#D8DEE9"
673
+ }
674
+ }, {
675
+ "name": "[diff] Meta Range Context",
676
+ "scope": "source.diff meta.diff.range.context",
677
+ "settings": {
678
+ "foreground": "#8FBCBB"
679
+ }
680
+ }, {
681
+ "name": "[diff] Meta Header From-File",
682
+ "scope": "source.diff meta.diff.header.from-file",
683
+ "settings": {
684
+ "foreground": "#8FBCBB"
685
+ }
686
+ }, {
687
+ "name": "[diff] Punctuation Definition From-File",
688
+ "scope": "source.diff punctuation.definition.from-file",
689
+ "settings": {
690
+ "foreground": "#8FBCBB"
691
+ }
692
+ }, {
693
+ "name": "[diff] Punctuation Definition Range",
694
+ "scope": "source.diff punctuation.definition.range",
695
+ "settings": {
696
+ "foreground": "#8FBCBB"
697
+ }
698
+ }, {
699
+ "name": "[diff] Punctuation Definition Separator",
700
+ "scope": "source.diff punctuation.definition.separator",
701
+ "settings": {
702
+ "foreground": "#81A1C1"
703
+ }
704
+ }, {
705
+ "name": "[Elixir](JakeBecker.elixir-ls) module names",
706
+ "scope": "entity.name.type.module.elixir",
707
+ "settings": {
708
+ "foreground": "#8FBCBB"
709
+ }
710
+ }, {
711
+ "name": "[Elixir](JakeBecker.elixir-ls) module attributes",
712
+ "scope": "variable.other.readwrite.module.elixir",
713
+ "settings": {
714
+ "foreground": "#D8DEE9",
715
+ "fontStyle": "bold"
716
+ }
717
+ }, {
718
+ "name": "[Elixir](JakeBecker.elixir-ls) atoms",
719
+ "scope": "constant.other.symbol.elixir",
720
+ "settings": {
721
+ "foreground": "#D8DEE9",
722
+ "fontStyle": "bold"
723
+ }
724
+ }, {
725
+ "name": "[Elixir](JakeBecker.elixir-ls) modules",
726
+ "scope": "variable.other.constant.elixir",
727
+ "settings": {
728
+ "foreground": "#8FBCBB"
729
+ }
730
+ }, {
731
+ "name": "[Go] String Format Placeholder",
732
+ "scope": "source.go constant.other.placeholder.go",
733
+ "settings": {
734
+ "foreground": "#EBCB8B"
735
+ }
736
+ }, {
737
+ "name": "[Java](JavaDoc) Comment Block Documentation HTML Entities",
738
+ "scope": "source.java comment.block.documentation.javadoc punctuation.definition.entity.html",
739
+ "settings": {
740
+ "foreground": "#81A1C1"
741
+ }
742
+ }, {
743
+ "name": "[Java](JavaDoc) Constant Other",
744
+ "scope": "source.java constant.other",
745
+ "settings": {
746
+ "foreground": "#D8DEE9"
747
+ }
748
+ }, {
749
+ "name": "[Java](JavaDoc) Keyword Other Documentation",
750
+ "scope": "source.java keyword.other.documentation",
751
+ "settings": {
752
+ "foreground": "#8FBCBB"
753
+ }
754
+ }, {
755
+ "name": "[Java](JavaDoc) Keyword Other Documentation Author",
756
+ "scope": "source.java keyword.other.documentation.author.javadoc",
757
+ "settings": {
758
+ "foreground": "#8FBCBB"
759
+ }
760
+ }, {
761
+ "name": "[Java](JavaDoc) Keyword Other Documentation Directive/Custom",
762
+ "scope": ["source.java keyword.other.documentation.directive", "source.java keyword.other.documentation.custom"],
763
+ "settings": {
764
+ "foreground": "#8FBCBB"
765
+ }
766
+ }, {
767
+ "name": "[Java](JavaDoc) Keyword Other Documentation See",
768
+ "scope": "source.java keyword.other.documentation.see.javadoc",
769
+ "settings": {
770
+ "foreground": "#8FBCBB"
771
+ }
772
+ }, {
773
+ "name": "[Java] Meta Method-Call",
774
+ "scope": "source.java meta.method-call meta.method",
775
+ "settings": {
776
+ "foreground": "#88C0D0"
777
+ }
778
+ }, {
779
+ "name": "[Java](JavaDoc) Meta Tag Template Link",
780
+ "scope": ["source.java meta.tag.template.link.javadoc", "source.java string.other.link.title.javadoc"],
781
+ "settings": {
782
+ "foreground": "#8FBCBB"
783
+ }
784
+ }, {
785
+ "name": "[Java](JavaDoc) Meta Tag Template Value",
786
+ "scope": "source.java meta.tag.template.value.javadoc",
787
+ "settings": {
788
+ "foreground": "#88C0D0"
789
+ }
790
+ }, {
791
+ "name": "[Java](JavaDoc) Punctuation Definition Keyword",
792
+ "scope": "source.java punctuation.definition.keyword.javadoc",
793
+ "settings": {
794
+ "foreground": "#8FBCBB"
795
+ }
796
+ }, {
797
+ "name": "[Java](JavaDoc) Punctuation Definition Tag",
798
+ "scope": ["source.java punctuation.definition.tag.begin.javadoc", "source.java punctuation.definition.tag.end.javadoc"],
799
+ "settings": {
800
+ "foreground": "#616E88"
801
+ }
802
+ }, {
803
+ "name": "[Java] Storage Modifier Import",
804
+ "scope": "source.java storage.modifier.import",
805
+ "settings": {
806
+ "foreground": "#8FBCBB"
807
+ }
808
+ }, {
809
+ "name": "[Java] Storage Modifier Package",
810
+ "scope": "source.java storage.modifier.package",
811
+ "settings": {
812
+ "foreground": "#8FBCBB"
813
+ }
814
+ }, {
815
+ "name": "[Java] Storage Type",
816
+ "scope": "source.java storage.type",
817
+ "settings": {
818
+ "foreground": "#8FBCBB"
819
+ }
820
+ }, {
821
+ "name": "[Java] Storage Type Annotation",
822
+ "scope": "source.java storage.type.annotation",
823
+ "settings": {
824
+ "foreground": "#D08770"
825
+ }
826
+ }, {
827
+ "name": "[Java] Storage Type Generic",
828
+ "scope": "source.java storage.type.generic",
829
+ "settings": {
830
+ "foreground": "#8FBCBB"
831
+ }
832
+ }, {
833
+ "name": "[Java] Storage Type Primitive",
834
+ "scope": "source.java storage.type.primitive",
835
+ "settings": {
836
+ "foreground": "#81A1C1"
837
+ }
838
+ }, {
839
+ "name": "[JavaScript] Decorator",
840
+ "scope": ["source.js punctuation.decorator", "source.js meta.decorator variable.other.readwrite", "source.js meta.decorator entity.name.function"],
841
+ "settings": {
842
+ "foreground": "#D08770"
843
+ }
844
+ }, {
845
+ "name": "[JavaScript] Meta Object-Literal Key",
846
+ "scope": "source.js meta.object-literal.key",
847
+ "settings": {
848
+ "foreground": "#88C0D0"
849
+ }
850
+ }, {
851
+ "name": "[JavaScript](JSDoc) Storage Type Class",
852
+ "scope": "source.js storage.type.class.jsdoc",
853
+ "settings": {
854
+ "foreground": "#8FBCBB"
855
+ }
856
+ }, {
857
+ "name": "[JavaScript] String Template Literals Punctuation",
858
+ "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"],
859
+ "settings": {
860
+ "foreground": "#81A1C1"
861
+ }
862
+ }, {
863
+ "name": "[JavaScript] Interpolated String Template Punctuation Functions",
864
+ "scope": "source.js string.quoted.template meta.method-call.with-arguments",
865
+ "settings": {
866
+ "foreground": "#ECEFF4"
867
+ }
868
+ }, {
869
+ "name": "[JavaScript] String Template Literal Variable",
870
+ "scope": ["source.js string.template meta.template.expression support.variable.property", "source.js string.template meta.template.expression variable.other.object"],
871
+ "settings": {
872
+ "foreground": "#D8DEE9"
873
+ }
874
+ }, {
875
+ "name": "[JavaScript] Support Type Primitive",
876
+ "scope": "source.js support.type.primitive",
877
+ "settings": {
878
+ "foreground": "#81A1C1"
879
+ }
880
+ }, {
881
+ "name": "[JavaScript] Variable Other Object",
882
+ "scope": "source.js variable.other.object",
883
+ "settings": {
884
+ "foreground": "#D8DEE9"
885
+ }
886
+ }, {
887
+ "name": "[JavaScript] Variable Other Read-Write Alias",
888
+ "scope": "source.js variable.other.readwrite.alias",
889
+ "settings": {
890
+ "foreground": "#8FBCBB"
891
+ }
892
+ }, {
893
+ "name": "[JavaScript] Parentheses in Template Strings",
894
+ "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"],
895
+ "settings": {
896
+ "foreground": "#ECEFF4"
897
+ }
898
+ }, {
899
+ "name": "[HTML] Constant Character Entity",
900
+ "scope": "text.html.basic constant.character.entity.html",
901
+ "settings": {
902
+ "foreground": "#EBCB8B"
903
+ }
904
+ }, {
905
+ "name": "[HTML] Constant Other Inline-Data",
906
+ "scope": "text.html.basic constant.other.inline-data",
907
+ "settings": {
908
+ "foreground": "#D08770",
909
+ "fontStyle": "italic"
910
+ }
911
+ }, {
912
+ "name": "[HTML] Meta Tag SGML Doctype",
913
+ "scope": "text.html.basic meta.tag.sgml.doctype",
914
+ "settings": {
915
+ "foreground": "#5E81AC"
916
+ }
917
+ }, {
918
+ "name": "[HTML] Punctuation Definition Entity",
919
+ "scope": "text.html.basic punctuation.definition.entity",
920
+ "settings": {
921
+ "foreground": "#81A1C1"
922
+ }
923
+ }, {
924
+ "name": "[INI] Entity Name Section Group-Title",
925
+ "scope": "source.properties entity.name.section.group-title.ini",
926
+ "settings": {
927
+ "foreground": "#88C0D0"
928
+ }
929
+ }, {
930
+ "name": "[INI] Punctuation Separator Key-Value",
931
+ "scope": "source.properties punctuation.separator.key-value.ini",
932
+ "settings": {
933
+ "foreground": "#81A1C1"
934
+ }
935
+ }, {
936
+ "name": "[Markdown] Markup Fenced Code Block",
937
+ "scope": ["text.html.markdown markup.fenced_code.block", "text.html.markdown markup.fenced_code.block punctuation.definition"],
938
+ "settings": {
939
+ "foreground": "#8FBCBB"
940
+ }
941
+ }, {
942
+ "name": "[Markdown] Markup Heading",
943
+ "scope": "markup.heading",
944
+ "settings": {
945
+ "foreground": "#88C0D0"
946
+ }
947
+ }, {
948
+ "name": "[Markdown] Markup Inline",
949
+ "scope": ["text.html.markdown markup.inline.raw", "text.html.markdown markup.inline.raw punctuation.definition.raw"],
950
+ "settings": {
951
+ "foreground": "#8FBCBB"
952
+ }
953
+ }, {
954
+ "name": "[Markdown] Markup Italic",
955
+ "scope": "text.html.markdown markup.italic",
956
+ "settings": {
957
+ "fontStyle": "italic"
958
+ }
959
+ }, {
960
+ "name": "[Markdown] Markup Link",
961
+ "scope": "text.html.markdown markup.underline.link",
962
+ "settings": {
963
+ "fontStyle": "underline"
964
+ }
965
+ }, {
966
+ "name": "[Markdown] Markup List Numbered/Unnumbered",
967
+ "scope": "text.html.markdown beginning.punctuation.definition.list",
968
+ "settings": {
969
+ "foreground": "#81A1C1"
970
+ }
971
+ }, {
972
+ "name": "[Markdown] Markup Quote Punctuation Definition",
973
+ "scope": "text.html.markdown beginning.punctuation.definition.quote",
974
+ "settings": {
975
+ "foreground": "#8FBCBB"
976
+ }
977
+ }, {
978
+ "name": "[Markdown] Markup Quote Punctuation Definition",
979
+ "scope": "text.html.markdown markup.quote",
980
+ "settings": {
981
+ "foreground": "#616E88"
982
+ }
983
+ }, {
984
+ "name": "[Markdown] Markup Math Constant",
985
+ "scope": "text.html.markdown constant.character.math.tex",
986
+ "settings": {
987
+ "foreground": "#81A1C1"
988
+ }
989
+ }, {
990
+ "name": "[Markdown] Markup Math Definition Marker",
991
+ "scope": ["text.html.markdown punctuation.definition.math.begin", "text.html.markdown punctuation.definition.math.end"],
992
+ "settings": {
993
+ "foreground": "#5E81AC"
994
+ }
995
+ }, {
996
+ "name": "[Markdown] Markup Math Function Definition Marker",
997
+ "scope": "text.html.markdown punctuation.definition.function.math.tex",
998
+ "settings": {
999
+ "foreground": "#88C0D0"
1000
+ }
1001
+ }, {
1002
+ "name": "[Markdown] Markup Math Operator",
1003
+ "scope": "text.html.markdown punctuation.math.operator.latex",
1004
+ "settings": {
1005
+ "foreground": "#81A1C1"
1006
+ }
1007
+ }, {
1008
+ "name": "[Markdown] Punctuation Definition Heading",
1009
+ "scope": "text.html.markdown punctuation.definition.heading",
1010
+ "settings": {
1011
+ "foreground": "#81A1C1"
1012
+ }
1013
+ }, {
1014
+ "name": "[Markdown] Punctuation Definition Constant/String",
1015
+ "scope": ["text.html.markdown punctuation.definition.constant", "text.html.markdown punctuation.definition.string"],
1016
+ "settings": {
1017
+ "foreground": "#81A1C1"
1018
+ }
1019
+ }, {
1020
+ "name": "[Markdown] String Other Link Description/Title",
1021
+ "scope": ["text.html.markdown constant.other.reference.link", "text.html.markdown string.other.link.description", "text.html.markdown string.other.link.title"],
1022
+ "settings": {
1023
+ "foreground": "#88C0D0"
1024
+ }
1025
+ }, {
1026
+ "name": "[Perl] Perl Sigils",
1027
+ "scope": "source.perl punctuation.definition.variable",
1028
+ "settings": {
1029
+ "foreground": "#D8DEE9"
1030
+ }
1031
+ }, {
1032
+ "name": "[PHP] Meta Function-Call Object",
1033
+ "scope": ["source.php meta.function-call", "source.php meta.function-call.object"],
1034
+ "settings": {
1035
+ "foreground": "#88C0D0"
1036
+ }
1037
+ }, {
1038
+ "name": "[Python] Decorator",
1039
+ "scope": ["source.python entity.name.function.decorator", "source.python meta.function.decorator support.type"],
1040
+ "settings": {
1041
+ "foreground": "#D08770"
1042
+ }
1043
+ }, {
1044
+ "name": "[Python] Function Call",
1045
+ "scope": "source.python meta.function-call.generic",
1046
+ "settings": {
1047
+ "foreground": "#88C0D0"
1048
+ }
1049
+ }, {
1050
+ "name": "[Python] Support Type",
1051
+ "scope": "source.python support.type",
1052
+ "settings": {
1053
+ "foreground": "#88C0D0"
1054
+ }
1055
+ }, {
1056
+ "name": "[Python] Function Parameter",
1057
+ "scope": ["source.python variable.parameter.function.language"],
1058
+ "settings": {
1059
+ "foreground": "#D8DEE9"
1060
+ }
1061
+ }, {
1062
+ "name": "[Python] Function Parameter Special",
1063
+ "scope": ["source.python meta.function.parameters variable.parameter.function.language.special.self"],
1064
+ "settings": {
1065
+ "foreground": "#81A1C1"
1066
+ }
1067
+ }, {
1068
+ "name": "[Rust] Entity types",
1069
+ "scope": "source.rust entity.name.type",
1070
+ "settings": {
1071
+ "foreground": "#8FBCBB"
1072
+ }
1073
+ }, {
1074
+ "name": "[Rust] Macro",
1075
+ "scope": "source.rust meta.macro entity.name.function",
1076
+ "settings": {
1077
+ "fontStyle": "bold",
1078
+ "foreground": "#88C0D0"
1079
+ }
1080
+ }, {
1081
+ "name": "[Rust] Attributes",
1082
+ "scope": ["source.rust meta.attribute", "source.rust meta.attribute punctuation", "source.rust meta.attribute keyword.operator"],
1083
+ "settings": {
1084
+ "foreground": "#5E81AC"
1085
+ }
1086
+ }, {
1087
+ "name": "[Rust] Traits",
1088
+ "scope": "source.rust entity.name.type.trait",
1089
+ "settings": {
1090
+ "fontStyle": "bold"
1091
+ }
1092
+ }, {
1093
+ "name": "[Rust] Interpolation Bracket Curly",
1094
+ "scope": "source.rust punctuation.definition.interpolation",
1095
+ "settings": {
1096
+ "foreground": "#EBCB8B"
1097
+ }
1098
+ }, {
1099
+ "name": "[SCSS] Punctuation Definition Interpolation Bracket Curly",
1100
+ "scope": ["source.css.scss punctuation.definition.interpolation.begin.bracket.curly", "source.css.scss punctuation.definition.interpolation.end.bracket.curly"],
1101
+ "settings": {
1102
+ "foreground": "#81A1C1"
1103
+ }
1104
+ }, {
1105
+ "name": "[SCSS] Variable Interpolation",
1106
+ "scope": "source.css.scss variable.interpolation",
1107
+ "settings": {
1108
+ "foreground": "#D8DEE9",
1109
+ "fontStyle": "italic"
1110
+ }
1111
+ }, {
1112
+ "name": "[TypeScript] Decorators",
1113
+ "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"],
1114
+ "settings": {
1115
+ "foreground": "#D08770"
1116
+ }
1117
+ }, {
1118
+ "name": "[TypeScript] Object-literal keys",
1119
+ "scope": ["source.ts meta.object-literal.key", "source.tsx meta.object-literal.key"],
1120
+ "settings": {
1121
+ "foreground": "#D8DEE9"
1122
+ }
1123
+ }, {
1124
+ "name": "[TypeScript] Object-literal functions",
1125
+ "scope": ["source.ts meta.object-literal.key entity.name.function", "source.tsx meta.object-literal.key entity.name.function"],
1126
+ "settings": {
1127
+ "foreground": "#88C0D0"
1128
+ }
1129
+ }, {
1130
+ "name": "[TypeScript] Type/Class",
1131
+ "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"],
1132
+ "settings": {
1133
+ "foreground": "#8FBCBB"
1134
+ }
1135
+ }, {
1136
+ "name": "[TypeScript] Static Class Support",
1137
+ "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"],
1138
+ "settings": {
1139
+ "foreground": "#8FBCBB"
1140
+ }
1141
+ }, {
1142
+ "name": "[TypeScript] Variables",
1143
+ "scope": ["source.ts support.variable", "source.tsx support.variable"],
1144
+ "settings": {
1145
+ "foreground": "#D8DEE9"
1146
+ }
1147
+ }, {
1148
+ "name": "[TypeScript] Parentheses in Template Strings",
1149
+ "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"],
1150
+ "settings": {
1151
+ "foreground": "#ECEFF4"
1152
+ }
1153
+ }, {
1154
+ "name": "[XML] Entity Name Tag Namespace",
1155
+ "scope": "text.xml entity.name.tag.namespace",
1156
+ "settings": {
1157
+ "foreground": "#8FBCBB"
1158
+ }
1159
+ }, {
1160
+ "name": "[XML] Keyword Other Doctype",
1161
+ "scope": "text.xml keyword.other.doctype",
1162
+ "settings": {
1163
+ "foreground": "#5E81AC"
1164
+ }
1165
+ }, {
1166
+ "name": "[XML] Meta Tag Preprocessor",
1167
+ "scope": "text.xml meta.tag.preprocessor entity.name.tag",
1168
+ "settings": {
1169
+ "foreground": "#5E81AC"
1170
+ }
1171
+ }, {
1172
+ "name": "[XML] Entity Name Tag Namespace",
1173
+ "scope": ["text.xml string.unquoted.cdata", "text.xml string.unquoted.cdata punctuation.definition.string"],
1174
+ "settings": {
1175
+ "foreground": "#D08770",
1176
+ "fontStyle": "italic"
1177
+ }
1178
+ }, {
1179
+ "name": "[YAML] Entity Name Tag",
1180
+ "scope": "source.yaml entity.name.tag",
1181
+ "settings": {
1182
+ "foreground": "#8FBCBB"
1183
+ }
1184
+ }]
1185
+ },
1186
+ "autoImport": true,
1187
+ "showCopyButton": true,
1188
+ "skipLanguages": [],
1189
+ "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/en/plugins/guide/getting-started.mdx"
1190
+ };
1191
+ var frontmatter = {
1192
+ "sidebar_position": 1
1193
+ };
1194
+ var toc = [];
1195
+ var title = "Quick Start";
1196
+ var content = "\"---\\nsidebar_position: 1\\n---\\n\\n# Quick Start\\n\\nModule engineering solution not only provides a rich set of features, but also supports extending the capabilities of the current project by way of plugins.\\n\\nWe can quickly see how to write a module-tools plugin by using the following example.\\n\\n<CH.Spotlight>\\n\\n```md . /project\\n. /project .\\n├── plugins\\n│ └── example.ts\\n├── src/\\n└── modern.config.ts\\n```\\n\\n---\\n\\nFirst we create `. /plugins/example.ts` file under the initialized project.\\n\\n```md . /project\\n\\n```\\n\\n---\\n\\nNext add the code for the plugin to the `example.ts` file.\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nexport const ExamplePlugin = (): CliPlugin<ModuleTools> => {\\n return {\\n name: 'example',\\n setup() {\\n console.info('this is example plugin');\\n return {\\n // use hooks\\n afterBuild() {\\n console.info('build over');\\n }\\n };\\n };\\n };\\n};\\n```\\n\\n---\\n\\nThen we register the plugin we just wrote via the [`plugins`](/en/api/config/plugins) API.\\n\\n```ts . /modern.config.ts\\nimport { ExamplePlugin } from '. /plugins/example';\\nexport default defineConfig({\\n plugins: [ExamplePlugin()],\\n});\\n```\\n\\n---\\n\\nFinally, run `modern build` and you will see.\\n\\n```bash terminal\\nThis is example plugin\\nBuild succeed: 510.684ms\\nbuild over\\n```\\n\\n</CH.Spotlight>\\n\\nWith the above example, we learned the following things.\\n\\n- The recommended plugin directory structure\\n- The initialization code of the plugin\\n- Plugin registration\\n\\nIn addition to the above, we also need to understand.\\n\\n- [plugin objects, type definitions and recommended configuration items](/en/plugins/guide/plugin-object)\\n- [setup functions, `api` object parameters, lifecycle hooks](/en/plugins/guide/setup-function)\\n\"";
1197
+ function _createMdxContent(props) {
1198
+ var _components = Object.assign({
1199
+ h1: "h1",
1200
+ a: "a",
1201
+ p: "p",
1202
+ code: "code",
1203
+ ul: "ul",
1204
+ li: "li"
1205
+ }, props.components);
1206
+ if (!CH) _missingMdxReference("CH", false, "11:1-73:16");
1207
+ if (!CH.CodeSlot) _missingMdxReference("CH.CodeSlot", true);
1208
+ if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "11:1-73:16");
1209
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1210
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1211
+ id: "quick-start",
1212
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1213
+ className: "header-anchor",
1214
+ "aria-hidden": "true",
1215
+ href: "#quick-start",
1216
+ children: "#"
1217
+ }), "Quick Start"]
1218
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1219
+ children: "Module engineering solution not only provides a rich set of features, but also supports extending the capabilities of the current project by way of plugins."
1220
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1221
+ children: "We can quickly see how to write a module-tools plugin by using the following example."
1222
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(CH.Spotlight, {
1223
+ codeConfig: chCodeConfig,
1224
+ editorSteps: [{
1225
+ "northPanel": {
1226
+ "tabs": ["."],
1227
+ "active": ".",
1228
+ "heightRatio": 1
1229
+ },
1230
+ "files": [{
1231
+ "name": ".",
1232
+ "/project": true,
1233
+ "focus": "",
1234
+ "code": {
1235
+ "lines": [{
1236
+ "tokens": [{
1237
+ "content": ". /project .",
1238
+ "props": {
1239
+ "style": {
1240
+ "color": "#D8DEE9FF"
1241
+ }
1242
+ }
1243
+ }]
1244
+ }, {
1245
+ "tokens": [{
1246
+ "content": "├── plugins",
1247
+ "props": {
1248
+ "style": {
1249
+ "color": "#D8DEE9FF"
1250
+ }
1251
+ }
1252
+ }]
1253
+ }, {
1254
+ "tokens": [{
1255
+ "content": "│ └── example.ts",
1256
+ "props": {
1257
+ "style": {
1258
+ "color": "#D8DEE9FF"
1259
+ }
1260
+ }
1261
+ }]
1262
+ }, {
1263
+ "tokens": [{
1264
+ "content": "├── src/",
1265
+ "props": {
1266
+ "style": {
1267
+ "color": "#D8DEE9FF"
1268
+ }
1269
+ }
1270
+ }]
1271
+ }, {
1272
+ "tokens": [{
1273
+ "content": "└── modern.config.ts",
1274
+ "props": {
1275
+ "style": {
1276
+ "color": "#D8DEE9FF"
1277
+ }
1278
+ }
1279
+ }]
1280
+ }],
1281
+ "lang": "md"
1282
+ },
1283
+ "annotations": []
1284
+ }]
1285
+ }, {
1286
+ "northPanel": {
1287
+ "tabs": ["."],
1288
+ "active": ".",
1289
+ "heightRatio": 1
1290
+ },
1291
+ "files": [{
1292
+ "name": ".",
1293
+ "/project": true,
1294
+ "focus": "",
1295
+ "code": {
1296
+ "lines": [{
1297
+ "tokens": [{
1298
+ "content": ". /project .",
1299
+ "props": {
1300
+ "style": {
1301
+ "color": "#D8DEE9FF"
1302
+ }
1303
+ }
1304
+ }]
1305
+ }, {
1306
+ "tokens": [{
1307
+ "content": "├── plugins",
1308
+ "props": {
1309
+ "style": {
1310
+ "color": "#D8DEE9FF"
1311
+ }
1312
+ }
1313
+ }]
1314
+ }, {
1315
+ "tokens": [{
1316
+ "content": "│ └── example.ts",
1317
+ "props": {
1318
+ "style": {
1319
+ "color": "#D8DEE9FF"
1320
+ }
1321
+ }
1322
+ }]
1323
+ }, {
1324
+ "tokens": [{
1325
+ "content": "├── src/",
1326
+ "props": {
1327
+ "style": {
1328
+ "color": "#D8DEE9FF"
1329
+ }
1330
+ }
1331
+ }]
1332
+ }, {
1333
+ "tokens": [{
1334
+ "content": "└── modern.config.ts",
1335
+ "props": {
1336
+ "style": {
1337
+ "color": "#D8DEE9FF"
1338
+ }
1339
+ }
1340
+ }]
1341
+ }],
1342
+ "lang": "md"
1343
+ },
1344
+ "annotations": []
1345
+ }],
1346
+ "southPanel": undefined
1347
+ }, {
1348
+ "northPanel": {
1349
+ "tabs": [".", ""],
1350
+ "active": "",
1351
+ "heightRatio": 1
1352
+ },
1353
+ "files": [{
1354
+ "name": ".",
1355
+ "/project": true,
1356
+ "focus": "",
1357
+ "code": {
1358
+ "lines": [{
1359
+ "tokens": [{
1360
+ "content": ". /project .",
1361
+ "props": {
1362
+ "style": {
1363
+ "color": "#D8DEE9FF"
1364
+ }
1365
+ }
1366
+ }]
1367
+ }, {
1368
+ "tokens": [{
1369
+ "content": "├── plugins",
1370
+ "props": {
1371
+ "style": {
1372
+ "color": "#D8DEE9FF"
1373
+ }
1374
+ }
1375
+ }]
1376
+ }, {
1377
+ "tokens": [{
1378
+ "content": "│ └── example.ts",
1379
+ "props": {
1380
+ "style": {
1381
+ "color": "#D8DEE9FF"
1382
+ }
1383
+ }
1384
+ }]
1385
+ }, {
1386
+ "tokens": [{
1387
+ "content": "├── src/",
1388
+ "props": {
1389
+ "style": {
1390
+ "color": "#D8DEE9FF"
1391
+ }
1392
+ }
1393
+ }]
1394
+ }, {
1395
+ "tokens": [{
1396
+ "content": "└── modern.config.ts",
1397
+ "props": {
1398
+ "style": {
1399
+ "color": "#D8DEE9FF"
1400
+ }
1401
+ }
1402
+ }]
1403
+ }],
1404
+ "lang": "md"
1405
+ },
1406
+ "annotations": []
1407
+ }, {
1408
+ "name": "",
1409
+ "focus": "",
1410
+ "code": {
1411
+ "lines": [{
1412
+ "tokens": [{
1413
+ "content": "import",
1414
+ "props": {
1415
+ "style": {
1416
+ "color": "#81A1C1"
1417
+ }
1418
+ }
1419
+ }, {
1420
+ "content": " ",
1421
+ "props": {
1422
+ "style": {
1423
+ "color": "#D8DEE9FF"
1424
+ }
1425
+ }
1426
+ }, {
1427
+ "content": "type",
1428
+ "props": {
1429
+ "style": {
1430
+ "color": "#81A1C1"
1431
+ }
1432
+ }
1433
+ }, {
1434
+ "content": " ",
1435
+ "props": {
1436
+ "style": {
1437
+ "color": "#D8DEE9FF"
1438
+ }
1439
+ }
1440
+ }, {
1441
+ "content": "{",
1442
+ "props": {
1443
+ "style": {
1444
+ "color": "#ECEFF4"
1445
+ }
1446
+ }
1447
+ }, {
1448
+ "content": " ",
1449
+ "props": {
1450
+ "style": {
1451
+ "color": "#D8DEE9FF"
1452
+ }
1453
+ }
1454
+ }, {
1455
+ "content": "CliPlugin",
1456
+ "props": {
1457
+ "style": {
1458
+ "color": "#D8DEE9"
1459
+ }
1460
+ }
1461
+ }, {
1462
+ "content": ",",
1463
+ "props": {
1464
+ "style": {
1465
+ "color": "#ECEFF4"
1466
+ }
1467
+ }
1468
+ }, {
1469
+ "content": " ",
1470
+ "props": {
1471
+ "style": {
1472
+ "color": "#D8DEE9FF"
1473
+ }
1474
+ }
1475
+ }, {
1476
+ "content": "ModuleTools",
1477
+ "props": {
1478
+ "style": {
1479
+ "color": "#D8DEE9"
1480
+ }
1481
+ }
1482
+ }, {
1483
+ "content": " ",
1484
+ "props": {
1485
+ "style": {
1486
+ "color": "#D8DEE9FF"
1487
+ }
1488
+ }
1489
+ }, {
1490
+ "content": "}",
1491
+ "props": {
1492
+ "style": {
1493
+ "color": "#ECEFF4"
1494
+ }
1495
+ }
1496
+ }, {
1497
+ "content": " ",
1498
+ "props": {
1499
+ "style": {
1500
+ "color": "#D8DEE9FF"
1501
+ }
1502
+ }
1503
+ }, {
1504
+ "content": "from",
1505
+ "props": {
1506
+ "style": {
1507
+ "color": "#81A1C1"
1508
+ }
1509
+ }
1510
+ }, {
1511
+ "content": " ",
1512
+ "props": {
1513
+ "style": {
1514
+ "color": "#D8DEE9FF"
1515
+ }
1516
+ }
1517
+ }, {
1518
+ "content": "'",
1519
+ "props": {
1520
+ "style": {
1521
+ "color": "#ECEFF4"
1522
+ }
1523
+ }
1524
+ }, {
1525
+ "content": "@modern-js/module-tools",
1526
+ "props": {
1527
+ "style": {
1528
+ "color": "#A3BE8C"
1529
+ }
1530
+ }
1531
+ }, {
1532
+ "content": "'",
1533
+ "props": {
1534
+ "style": {
1535
+ "color": "#ECEFF4"
1536
+ }
1537
+ }
1538
+ }, {
1539
+ "content": ";",
1540
+ "props": {
1541
+ "style": {
1542
+ "color": "#81A1C1"
1543
+ }
1544
+ }
1545
+ }]
1546
+ }, {
1547
+ "tokens": []
1548
+ }, {
1549
+ "tokens": [{
1550
+ "content": "export",
1551
+ "props": {
1552
+ "style": {
1553
+ "color": "#81A1C1"
1554
+ }
1555
+ }
1556
+ }, {
1557
+ "content": " ",
1558
+ "props": {
1559
+ "style": {
1560
+ "color": "#D8DEE9FF"
1561
+ }
1562
+ }
1563
+ }, {
1564
+ "content": "const",
1565
+ "props": {
1566
+ "style": {
1567
+ "color": "#81A1C1"
1568
+ }
1569
+ }
1570
+ }, {
1571
+ "content": " ",
1572
+ "props": {
1573
+ "style": {
1574
+ "color": "#D8DEE9FF"
1575
+ }
1576
+ }
1577
+ }, {
1578
+ "content": "ExamplePlugin",
1579
+ "props": {
1580
+ "style": {
1581
+ "color": "#88C0D0"
1582
+ }
1583
+ }
1584
+ }, {
1585
+ "content": " ",
1586
+ "props": {
1587
+ "style": {
1588
+ "color": "#D8DEE9FF"
1589
+ }
1590
+ }
1591
+ }, {
1592
+ "content": "=",
1593
+ "props": {
1594
+ "style": {
1595
+ "color": "#81A1C1"
1596
+ }
1597
+ }
1598
+ }, {
1599
+ "content": " ",
1600
+ "props": {
1601
+ "style": {
1602
+ "color": "#D8DEE9FF"
1603
+ }
1604
+ }
1605
+ }, {
1606
+ "content": "()",
1607
+ "props": {
1608
+ "style": {
1609
+ "color": "#ECEFF4"
1610
+ }
1611
+ }
1612
+ }, {
1613
+ "content": ":",
1614
+ "props": {
1615
+ "style": {
1616
+ "color": "#81A1C1"
1617
+ }
1618
+ }
1619
+ }, {
1620
+ "content": " ",
1621
+ "props": {
1622
+ "style": {
1623
+ "color": "#D8DEE9FF"
1624
+ }
1625
+ }
1626
+ }, {
1627
+ "content": "CliPlugin",
1628
+ "props": {
1629
+ "style": {
1630
+ "color": "#8FBCBB"
1631
+ }
1632
+ }
1633
+ }, {
1634
+ "content": "<",
1635
+ "props": {
1636
+ "style": {
1637
+ "color": "#ECEFF4"
1638
+ }
1639
+ }
1640
+ }, {
1641
+ "content": "ModuleTools",
1642
+ "props": {
1643
+ "style": {
1644
+ "color": "#8FBCBB"
1645
+ }
1646
+ }
1647
+ }, {
1648
+ "content": ">",
1649
+ "props": {
1650
+ "style": {
1651
+ "color": "#ECEFF4"
1652
+ }
1653
+ }
1654
+ }, {
1655
+ "content": " ",
1656
+ "props": {
1657
+ "style": {
1658
+ "color": "#D8DEE9FF"
1659
+ }
1660
+ }
1661
+ }, {
1662
+ "content": "=>",
1663
+ "props": {
1664
+ "style": {
1665
+ "color": "#81A1C1"
1666
+ }
1667
+ }
1668
+ }, {
1669
+ "content": " ",
1670
+ "props": {
1671
+ "style": {
1672
+ "color": "#D8DEE9FF"
1673
+ }
1674
+ }
1675
+ }, {
1676
+ "content": "{",
1677
+ "props": {
1678
+ "style": {
1679
+ "color": "#ECEFF4"
1680
+ }
1681
+ }
1682
+ }]
1683
+ }, {
1684
+ "tokens": [{
1685
+ "content": " ",
1686
+ "props": {
1687
+ "style": {
1688
+ "color": "#D8DEE9FF"
1689
+ }
1690
+ }
1691
+ }, {
1692
+ "content": "return",
1693
+ "props": {
1694
+ "style": {
1695
+ "color": "#81A1C1"
1696
+ }
1697
+ }
1698
+ }, {
1699
+ "content": " ",
1700
+ "props": {
1701
+ "style": {
1702
+ "color": "#D8DEE9FF"
1703
+ }
1704
+ }
1705
+ }, {
1706
+ "content": "{",
1707
+ "props": {
1708
+ "style": {
1709
+ "color": "#ECEFF4"
1710
+ }
1711
+ }
1712
+ }]
1713
+ }, {
1714
+ "tokens": [{
1715
+ "content": " ",
1716
+ "props": {
1717
+ "style": {
1718
+ "color": "#D8DEE9FF"
1719
+ }
1720
+ }
1721
+ }, {
1722
+ "content": "name",
1723
+ "props": {
1724
+ "style": {
1725
+ "color": "#D8DEE9"
1726
+ }
1727
+ }
1728
+ }, {
1729
+ "content": ":",
1730
+ "props": {
1731
+ "style": {
1732
+ "color": "#ECEFF4"
1733
+ }
1734
+ }
1735
+ }, {
1736
+ "content": " ",
1737
+ "props": {
1738
+ "style": {
1739
+ "color": "#D8DEE9FF"
1740
+ }
1741
+ }
1742
+ }, {
1743
+ "content": "'",
1744
+ "props": {
1745
+ "style": {
1746
+ "color": "#ECEFF4"
1747
+ }
1748
+ }
1749
+ }, {
1750
+ "content": "example",
1751
+ "props": {
1752
+ "style": {
1753
+ "color": "#A3BE8C"
1754
+ }
1755
+ }
1756
+ }, {
1757
+ "content": "'",
1758
+ "props": {
1759
+ "style": {
1760
+ "color": "#ECEFF4"
1761
+ }
1762
+ }
1763
+ }, {
1764
+ "content": ",",
1765
+ "props": {
1766
+ "style": {
1767
+ "color": "#ECEFF4"
1768
+ }
1769
+ }
1770
+ }]
1771
+ }, {
1772
+ "tokens": [{
1773
+ "content": " ",
1774
+ "props": {
1775
+ "style": {
1776
+ "color": "#D8DEE9FF"
1777
+ }
1778
+ }
1779
+ }, {
1780
+ "content": "setup",
1781
+ "props": {
1782
+ "style": {
1783
+ "color": "#88C0D0"
1784
+ }
1785
+ }
1786
+ }, {
1787
+ "content": "()",
1788
+ "props": {
1789
+ "style": {
1790
+ "color": "#ECEFF4"
1791
+ }
1792
+ }
1793
+ }, {
1794
+ "content": " ",
1795
+ "props": {
1796
+ "style": {
1797
+ "color": "#D8DEE9FF"
1798
+ }
1799
+ }
1800
+ }, {
1801
+ "content": "{",
1802
+ "props": {
1803
+ "style": {
1804
+ "color": "#ECEFF4"
1805
+ }
1806
+ }
1807
+ }]
1808
+ }, {
1809
+ "tokens": [{
1810
+ "content": " ",
1811
+ "props": {
1812
+ "style": {
1813
+ "color": "#D8DEE9FF"
1814
+ }
1815
+ }
1816
+ }, {
1817
+ "content": "console",
1818
+ "props": {
1819
+ "style": {
1820
+ "color": "#D8DEE9"
1821
+ }
1822
+ }
1823
+ }, {
1824
+ "content": ".",
1825
+ "props": {
1826
+ "style": {
1827
+ "color": "#ECEFF4"
1828
+ }
1829
+ }
1830
+ }, {
1831
+ "content": "info",
1832
+ "props": {
1833
+ "style": {
1834
+ "color": "#88C0D0"
1835
+ }
1836
+ }
1837
+ }, {
1838
+ "content": "(",
1839
+ "props": {
1840
+ "style": {
1841
+ "color": "#D8DEE9FF"
1842
+ }
1843
+ }
1844
+ }, {
1845
+ "content": "'",
1846
+ "props": {
1847
+ "style": {
1848
+ "color": "#ECEFF4"
1849
+ }
1850
+ }
1851
+ }, {
1852
+ "content": "this is example plugin",
1853
+ "props": {
1854
+ "style": {
1855
+ "color": "#A3BE8C"
1856
+ }
1857
+ }
1858
+ }, {
1859
+ "content": "'",
1860
+ "props": {
1861
+ "style": {
1862
+ "color": "#ECEFF4"
1863
+ }
1864
+ }
1865
+ }, {
1866
+ "content": ")",
1867
+ "props": {
1868
+ "style": {
1869
+ "color": "#D8DEE9FF"
1870
+ }
1871
+ }
1872
+ }, {
1873
+ "content": ";",
1874
+ "props": {
1875
+ "style": {
1876
+ "color": "#81A1C1"
1877
+ }
1878
+ }
1879
+ }]
1880
+ }, {
1881
+ "tokens": [{
1882
+ "content": " ",
1883
+ "props": {
1884
+ "style": {
1885
+ "color": "#D8DEE9FF"
1886
+ }
1887
+ }
1888
+ }, {
1889
+ "content": "return",
1890
+ "props": {
1891
+ "style": {
1892
+ "color": "#81A1C1"
1893
+ }
1894
+ }
1895
+ }, {
1896
+ "content": " ",
1897
+ "props": {
1898
+ "style": {
1899
+ "color": "#D8DEE9FF"
1900
+ }
1901
+ }
1902
+ }, {
1903
+ "content": "{",
1904
+ "props": {
1905
+ "style": {
1906
+ "color": "#ECEFF4"
1907
+ }
1908
+ }
1909
+ }]
1910
+ }, {
1911
+ "tokens": [{
1912
+ "content": " ",
1913
+ "props": {
1914
+ "style": {
1915
+ "color": "#ECEFF4"
1916
+ }
1917
+ }
1918
+ }, {
1919
+ "content": "// use hooks",
1920
+ "props": {
1921
+ "style": {
1922
+ "color": "#616E88"
1923
+ }
1924
+ }
1925
+ }]
1926
+ }, {
1927
+ "tokens": [{
1928
+ "content": " ",
1929
+ "props": {
1930
+ "style": {
1931
+ "color": "#D8DEE9FF"
1932
+ }
1933
+ }
1934
+ }, {
1935
+ "content": "afterBuild",
1936
+ "props": {
1937
+ "style": {
1938
+ "color": "#88C0D0"
1939
+ }
1940
+ }
1941
+ }, {
1942
+ "content": "()",
1943
+ "props": {
1944
+ "style": {
1945
+ "color": "#ECEFF4"
1946
+ }
1947
+ }
1948
+ }, {
1949
+ "content": " ",
1950
+ "props": {
1951
+ "style": {
1952
+ "color": "#D8DEE9FF"
1953
+ }
1954
+ }
1955
+ }, {
1956
+ "content": "{",
1957
+ "props": {
1958
+ "style": {
1959
+ "color": "#ECEFF4"
1960
+ }
1961
+ }
1962
+ }]
1963
+ }, {
1964
+ "tokens": [{
1965
+ "content": " ",
1966
+ "props": {
1967
+ "style": {
1968
+ "color": "#D8DEE9FF"
1969
+ }
1970
+ }
1971
+ }, {
1972
+ "content": "console",
1973
+ "props": {
1974
+ "style": {
1975
+ "color": "#D8DEE9"
1976
+ }
1977
+ }
1978
+ }, {
1979
+ "content": ".",
1980
+ "props": {
1981
+ "style": {
1982
+ "color": "#ECEFF4"
1983
+ }
1984
+ }
1985
+ }, {
1986
+ "content": "info",
1987
+ "props": {
1988
+ "style": {
1989
+ "color": "#88C0D0"
1990
+ }
1991
+ }
1992
+ }, {
1993
+ "content": "(",
1994
+ "props": {
1995
+ "style": {
1996
+ "color": "#D8DEE9FF"
1997
+ }
1998
+ }
1999
+ }, {
2000
+ "content": "'",
2001
+ "props": {
2002
+ "style": {
2003
+ "color": "#ECEFF4"
2004
+ }
2005
+ }
2006
+ }, {
2007
+ "content": "build over",
2008
+ "props": {
2009
+ "style": {
2010
+ "color": "#A3BE8C"
2011
+ }
2012
+ }
2013
+ }, {
2014
+ "content": "'",
2015
+ "props": {
2016
+ "style": {
2017
+ "color": "#ECEFF4"
2018
+ }
2019
+ }
2020
+ }, {
2021
+ "content": ")",
2022
+ "props": {
2023
+ "style": {
2024
+ "color": "#D8DEE9FF"
2025
+ }
2026
+ }
2027
+ }, {
2028
+ "content": ";",
2029
+ "props": {
2030
+ "style": {
2031
+ "color": "#81A1C1"
2032
+ }
2033
+ }
2034
+ }]
2035
+ }, {
2036
+ "tokens": [{
2037
+ "content": " ",
2038
+ "props": {
2039
+ "style": {
2040
+ "color": "#D8DEE9FF"
2041
+ }
2042
+ }
2043
+ }, {
2044
+ "content": "}",
2045
+ "props": {
2046
+ "style": {
2047
+ "color": "#ECEFF4"
2048
+ }
2049
+ }
2050
+ }]
2051
+ }, {
2052
+ "tokens": [{
2053
+ "content": " ",
2054
+ "props": {
2055
+ "style": {
2056
+ "color": "#D8DEE9FF"
2057
+ }
2058
+ }
2059
+ }, {
2060
+ "content": "}",
2061
+ "props": {
2062
+ "style": {
2063
+ "color": "#ECEFF4"
2064
+ }
2065
+ }
2066
+ }, {
2067
+ "content": ";",
2068
+ "props": {
2069
+ "style": {
2070
+ "color": "#81A1C1"
2071
+ }
2072
+ }
2073
+ }]
2074
+ }, {
2075
+ "tokens": [{
2076
+ "content": " ",
2077
+ "props": {
2078
+ "style": {
2079
+ "color": "#D8DEE9FF"
2080
+ }
2081
+ }
2082
+ }, {
2083
+ "content": "}",
2084
+ "props": {
2085
+ "style": {
2086
+ "color": "#ECEFF4"
2087
+ }
2088
+ }
2089
+ }, {
2090
+ "content": ";",
2091
+ "props": {
2092
+ "style": {
2093
+ "color": "#D8DEE9FF"
2094
+ }
2095
+ }
2096
+ }]
2097
+ }, {
2098
+ "tokens": [{
2099
+ "content": " ",
2100
+ "props": {
2101
+ "style": {
2102
+ "color": "#D8DEE9FF"
2103
+ }
2104
+ }
2105
+ }, {
2106
+ "content": "}",
2107
+ "props": {
2108
+ "style": {
2109
+ "color": "#ECEFF4"
2110
+ }
2111
+ }
2112
+ }, {
2113
+ "content": ";",
2114
+ "props": {
2115
+ "style": {
2116
+ "color": "#81A1C1"
2117
+ }
2118
+ }
2119
+ }]
2120
+ }, {
2121
+ "tokens": [{
2122
+ "content": "}",
2123
+ "props": {
2124
+ "style": {
2125
+ "color": "#ECEFF4"
2126
+ }
2127
+ }
2128
+ }, {
2129
+ "content": ";",
2130
+ "props": {
2131
+ "style": {
2132
+ "color": "#81A1C1"
2133
+ }
2134
+ }
2135
+ }]
2136
+ }],
2137
+ "lang": "ts"
2138
+ },
2139
+ "annotations": []
2140
+ }],
2141
+ "southPanel": undefined
2142
+ }, {
2143
+ "northPanel": {
2144
+ "tabs": ["."],
2145
+ "active": ".",
2146
+ "heightRatio": 1
2147
+ },
2148
+ "files": [{
2149
+ "name": ".",
2150
+ "/modern.config.ts": true,
2151
+ "focus": "",
2152
+ "code": {
2153
+ "lines": [{
2154
+ "tokens": [{
2155
+ "content": "import",
2156
+ "props": {
2157
+ "style": {
2158
+ "color": "#81A1C1"
2159
+ }
2160
+ }
2161
+ }, {
2162
+ "content": " ",
2163
+ "props": {
2164
+ "style": {
2165
+ "color": "#D8DEE9FF"
2166
+ }
2167
+ }
2168
+ }, {
2169
+ "content": "{",
2170
+ "props": {
2171
+ "style": {
2172
+ "color": "#ECEFF4"
2173
+ }
2174
+ }
2175
+ }, {
2176
+ "content": " ",
2177
+ "props": {
2178
+ "style": {
2179
+ "color": "#D8DEE9FF"
2180
+ }
2181
+ }
2182
+ }, {
2183
+ "content": "ExamplePlugin",
2184
+ "props": {
2185
+ "style": {
2186
+ "color": "#D8DEE9"
2187
+ }
2188
+ }
2189
+ }, {
2190
+ "content": " ",
2191
+ "props": {
2192
+ "style": {
2193
+ "color": "#D8DEE9FF"
2194
+ }
2195
+ }
2196
+ }, {
2197
+ "content": "}",
2198
+ "props": {
2199
+ "style": {
2200
+ "color": "#ECEFF4"
2201
+ }
2202
+ }
2203
+ }, {
2204
+ "content": " ",
2205
+ "props": {
2206
+ "style": {
2207
+ "color": "#D8DEE9FF"
2208
+ }
2209
+ }
2210
+ }, {
2211
+ "content": "from",
2212
+ "props": {
2213
+ "style": {
2214
+ "color": "#81A1C1"
2215
+ }
2216
+ }
2217
+ }, {
2218
+ "content": " ",
2219
+ "props": {
2220
+ "style": {
2221
+ "color": "#D8DEE9FF"
2222
+ }
2223
+ }
2224
+ }, {
2225
+ "content": "'",
2226
+ "props": {
2227
+ "style": {
2228
+ "color": "#ECEFF4"
2229
+ }
2230
+ }
2231
+ }, {
2232
+ "content": ". /plugins/example",
2233
+ "props": {
2234
+ "style": {
2235
+ "color": "#A3BE8C"
2236
+ }
2237
+ }
2238
+ }, {
2239
+ "content": "'",
2240
+ "props": {
2241
+ "style": {
2242
+ "color": "#ECEFF4"
2243
+ }
2244
+ }
2245
+ }, {
2246
+ "content": ";",
2247
+ "props": {
2248
+ "style": {
2249
+ "color": "#81A1C1"
2250
+ }
2251
+ }
2252
+ }]
2253
+ }, {
2254
+ "tokens": [{
2255
+ "content": "export",
2256
+ "props": {
2257
+ "style": {
2258
+ "color": "#81A1C1"
2259
+ }
2260
+ }
2261
+ }, {
2262
+ "content": " ",
2263
+ "props": {
2264
+ "style": {
2265
+ "color": "#D8DEE9FF"
2266
+ }
2267
+ }
2268
+ }, {
2269
+ "content": "default",
2270
+ "props": {
2271
+ "style": {
2272
+ "color": "#81A1C1"
2273
+ }
2274
+ }
2275
+ }, {
2276
+ "content": " ",
2277
+ "props": {
2278
+ "style": {
2279
+ "color": "#D8DEE9FF"
2280
+ }
2281
+ }
2282
+ }, {
2283
+ "content": "defineConfig",
2284
+ "props": {
2285
+ "style": {
2286
+ "color": "#88C0D0"
2287
+ }
2288
+ }
2289
+ }, {
2290
+ "content": "(",
2291
+ "props": {
2292
+ "style": {
2293
+ "color": "#D8DEE9FF"
2294
+ }
2295
+ }
2296
+ }, {
2297
+ "content": "{",
2298
+ "props": {
2299
+ "style": {
2300
+ "color": "#ECEFF4"
2301
+ }
2302
+ }
2303
+ }]
2304
+ }, {
2305
+ "tokens": [{
2306
+ "content": " ",
2307
+ "props": {
2308
+ "style": {
2309
+ "color": "#D8DEE9FF"
2310
+ }
2311
+ }
2312
+ }, {
2313
+ "content": "plugins",
2314
+ "props": {
2315
+ "style": {
2316
+ "color": "#D8DEE9"
2317
+ }
2318
+ }
2319
+ }, {
2320
+ "content": ":",
2321
+ "props": {
2322
+ "style": {
2323
+ "color": "#ECEFF4"
2324
+ }
2325
+ }
2326
+ }, {
2327
+ "content": " [",
2328
+ "props": {
2329
+ "style": {
2330
+ "color": "#D8DEE9FF"
2331
+ }
2332
+ }
2333
+ }, {
2334
+ "content": "ExamplePlugin",
2335
+ "props": {
2336
+ "style": {
2337
+ "color": "#88C0D0"
2338
+ }
2339
+ }
2340
+ }, {
2341
+ "content": "()]",
2342
+ "props": {
2343
+ "style": {
2344
+ "color": "#D8DEE9FF"
2345
+ }
2346
+ }
2347
+ }, {
2348
+ "content": ",",
2349
+ "props": {
2350
+ "style": {
2351
+ "color": "#ECEFF4"
2352
+ }
2353
+ }
2354
+ }]
2355
+ }, {
2356
+ "tokens": [{
2357
+ "content": "}",
2358
+ "props": {
2359
+ "style": {
2360
+ "color": "#ECEFF4"
2361
+ }
2362
+ }
2363
+ }, {
2364
+ "content": ")",
2365
+ "props": {
2366
+ "style": {
2367
+ "color": "#D8DEE9FF"
2368
+ }
2369
+ }
2370
+ }, {
2371
+ "content": ";",
2372
+ "props": {
2373
+ "style": {
2374
+ "color": "#81A1C1"
2375
+ }
2376
+ }
2377
+ }]
2378
+ }],
2379
+ "lang": "ts"
2380
+ },
2381
+ "annotations": []
2382
+ }],
2383
+ "southPanel": undefined
2384
+ }, {
2385
+ "northPanel": {
2386
+ "tabs": [".", "terminal"],
2387
+ "active": "terminal",
2388
+ "heightRatio": 1
2389
+ },
2390
+ "files": [{
2391
+ "name": ".",
2392
+ "/project": true,
2393
+ "focus": "",
2394
+ "code": {
2395
+ "lines": [{
2396
+ "tokens": [{
2397
+ "content": ". /project .",
2398
+ "props": {
2399
+ "style": {
2400
+ "color": "#D8DEE9FF"
2401
+ }
2402
+ }
2403
+ }]
2404
+ }, {
2405
+ "tokens": [{
2406
+ "content": "├── plugins",
2407
+ "props": {
2408
+ "style": {
2409
+ "color": "#D8DEE9FF"
2410
+ }
2411
+ }
2412
+ }]
2413
+ }, {
2414
+ "tokens": [{
2415
+ "content": "│ └── example.ts",
2416
+ "props": {
2417
+ "style": {
2418
+ "color": "#D8DEE9FF"
2419
+ }
2420
+ }
2421
+ }]
2422
+ }, {
2423
+ "tokens": [{
2424
+ "content": "├── src/",
2425
+ "props": {
2426
+ "style": {
2427
+ "color": "#D8DEE9FF"
2428
+ }
2429
+ }
2430
+ }]
2431
+ }, {
2432
+ "tokens": [{
2433
+ "content": "└── modern.config.ts",
2434
+ "props": {
2435
+ "style": {
2436
+ "color": "#D8DEE9FF"
2437
+ }
2438
+ }
2439
+ }]
2440
+ }],
2441
+ "lang": "md"
2442
+ },
2443
+ "annotations": []
2444
+ }, {
2445
+ "name": "terminal",
2446
+ "focus": "",
2447
+ "code": {
2448
+ "lines": [{
2449
+ "tokens": [{
2450
+ "content": "This is example plugin",
2451
+ "props": {
2452
+ "style": {
2453
+ "color": "#D8DEE9FF"
2454
+ }
2455
+ }
2456
+ }]
2457
+ }, {
2458
+ "tokens": [{
2459
+ "content": "Build succeed: 510.684ms",
2460
+ "props": {
2461
+ "style": {
2462
+ "color": "#D8DEE9FF"
2463
+ }
2464
+ }
2465
+ }]
2466
+ }, {
2467
+ "tokens": [{
2468
+ "content": "build over",
2469
+ "props": {
2470
+ "style": {
2471
+ "color": "#D8DEE9FF"
2472
+ }
2473
+ }
2474
+ }]
2475
+ }],
2476
+ "lang": "bash"
2477
+ },
2478
+ "annotations": []
2479
+ }],
2480
+ "southPanel": undefined
2481
+ }],
2482
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2483
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})
2484
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2485
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2486
+ children: ["First we create ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2487
+ children: ". /plugins/example.ts"
2488
+ }), " file under the initialized project."]
2489
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2490
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2491
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2492
+ children: ["Next add the code for the plugin to the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2493
+ children: "example.ts"
2494
+ }), " file."]
2495
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2496
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2497
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2498
+ children: ["Then we register the plugin we just wrote via the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2499
+ href: "/en/api/config/plugins.html",
2500
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2501
+ children: "plugins"
2502
+ })
2503
+ }), " API."]
2504
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2505
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2506
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2507
+ children: ["Finally, run ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2508
+ children: "modern build"
2509
+ }), " and you will see."]
2510
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2511
+ })]
2512
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2513
+ children: "With the above example, we learned the following things."
2514
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2515
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2516
+ children: "The recommended plugin directory structure"
2517
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2518
+ children: "The initialization code of the plugin"
2519
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2520
+ children: "Plugin registration"
2521
+ }), "\n"]
2522
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2523
+ children: "In addition to the above, we also need to understand."
2524
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2525
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2526
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2527
+ href: "/en/plugins/guide/plugin-object.html",
2528
+ children: "plugin objects, type definitions and recommended configuration items"
2529
+ })
2530
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2531
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2532
+ href: "/en/plugins/guide/setup-function.html",
2533
+ children: ["setup functions, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2534
+ children: "api"
2535
+ }), " object parameters, lifecycle hooks"]
2536
+ })
2537
+ }), "\n"]
2538
+ })]
2539
+ });
2540
+ }
2541
+ function MDXContent() {
2542
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2543
+ var _ref = props.components || {},
2544
+ MDXLayout = _ref.wrapper;
2545
+ return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
2546
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
2547
+ })) : _createMdxContent(props);
2548
+ }
2549
+ _c = MDXContent;
2550
+ /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
2551
+ function _missingMdxReference(id, component, place) {
2552
+ 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/en/plugins/guide/getting-started.mdx`" : ""));
2553
+ }
2554
+ var _c;
2555
+ __webpack_require__.$Refresh$.register(_c, "MDXContent");
2556
+
2557
+ /***/ })
2558
+
2559
+ }]);
2560
+ //# sourceMappingURL=en_plugins_guide_getting-started.js.map