create-yoya-ui 0.2.1 → 0.2.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 (914) hide show
  1. package/README.md +11 -10
  2. package/bin/create-yoya-ui.js +1 -1
  3. package/package.json +1 -1
  4. package/templates/admin/README.md +59 -47
  5. package/templates/admin/RULES.md +105 -0
  6. package/templates/admin/dist/assets/index-C9C1xRte.js +35 -0
  7. package/templates/admin/dist/assets/index-Dh32qJDx.css +1 -0
  8. package/templates/admin/dist/index.html +13 -0
  9. package/templates/admin/node_modules/.bin/nanoid +16 -0
  10. package/templates/admin/node_modules/.bin/nanoid.cmd +17 -0
  11. package/templates/admin/node_modules/.bin/nanoid.ps1 +28 -0
  12. package/templates/admin/node_modules/.bin/rolldown +16 -0
  13. package/templates/admin/node_modules/.bin/rolldown.cmd +17 -0
  14. package/templates/admin/node_modules/.bin/rolldown.ps1 +28 -0
  15. package/templates/admin/node_modules/.bin/tsc +16 -0
  16. package/templates/admin/node_modules/.bin/tsc.cmd +17 -0
  17. package/templates/admin/node_modules/.bin/tsc.ps1 +28 -0
  18. package/templates/admin/node_modules/.bin/vite +16 -0
  19. package/templates/admin/node_modules/.bin/vite.cmd +17 -0
  20. package/templates/admin/node_modules/.bin/vite.ps1 +28 -0
  21. package/templates/admin/node_modules/.package-lock.json +389 -0
  22. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js +13116 -0
  23. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js.map +1 -0
  24. package/templates/admin/node_modules/.vite/deps/_metadata.json +12 -5
  25. package/templates/admin/node_modules/@oxc-project/types/LICENSE +22 -0
  26. package/templates/admin/node_modules/@oxc-project/types/README.md +3 -0
  27. package/templates/admin/node_modules/@oxc-project/types/package.json +26 -0
  28. package/templates/admin/node_modules/@oxc-project/types/types.d.ts +1912 -0
  29. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/README.md +3 -0
  30. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/package.json +37 -0
  31. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/rolldown-binding.win32-x64-msvc.node +0 -0
  32. package/templates/admin/node_modules/@rolldown/pluginutils/LICENSE +21 -0
  33. package/templates/admin/node_modules/@rolldown/pluginutils/README.md +145 -0
  34. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts +194 -0
  35. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.mjs +2 -0
  36. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs +323 -0
  37. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.d.mts +2 -0
  38. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.mjs +2 -0
  39. package/templates/admin/node_modules/@rolldown/pluginutils/package.json +40 -0
  40. package/templates/admin/node_modules/@typescript/typescript-win32-x64/LICENSE +55 -0
  41. package/templates/admin/node_modules/@typescript/typescript-win32-x64/NOTICE.txt +436 -0
  42. package/templates/admin/node_modules/@typescript/typescript-win32-x64/README.md +3 -0
  43. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.d.ts +20 -0
  44. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.d.ts +382 -0
  45. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.legacy.d.ts +20 -0
  46. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.asynciterable.d.ts +18 -0
  47. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.d.ts +45125 -0
  48. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.iterable.d.ts +18 -0
  49. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.collection.d.ts +159 -0
  50. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.core.d.ts +595 -0
  51. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.d.ts +26 -0
  52. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.generator.d.ts +75 -0
  53. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.iterable.d.ts +603 -0
  54. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.promise.d.ts +79 -0
  55. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.proxy.d.ts +126 -0
  56. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.reflect.d.ts +142 -0
  57. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.d.ts +44 -0
  58. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
  59. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.array.include.d.ts +114 -0
  60. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.d.ts +19 -0
  61. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.full.d.ts +21 -0
  62. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.intl.d.ts +29 -0
  63. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.arraybuffer.d.ts +19 -0
  64. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.d.ts +24 -0
  65. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.date.d.ts +29 -0
  66. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.full.d.ts +21 -0
  67. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.intl.d.ts +42 -0
  68. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.object.d.ts +47 -0
  69. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.sharedmemory.d.ts +133 -0
  70. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.string.d.ts +47 -0
  71. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.typedarrays.d.ts +51 -0
  72. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asyncgenerator.d.ts +75 -0
  73. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asynciterable.d.ts +51 -0
  74. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.d.ts +22 -0
  75. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.full.d.ts +22 -0
  76. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.intl.d.ts +81 -0
  77. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.promise.d.ts +28 -0
  78. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.regexp.d.ts +35 -0
  79. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.array.d.ts +77 -0
  80. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.d.ts +22 -0
  81. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.full.d.ts +22 -0
  82. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.intl.d.ts +21 -0
  83. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.object.d.ts +31 -0
  84. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.string.d.ts +35 -0
  85. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.symbol.d.ts +22 -0
  86. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.bigint.d.ts +763 -0
  87. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.d.ts +25 -0
  88. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.date.d.ts +40 -0
  89. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.full.d.ts +22 -0
  90. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.intl.d.ts +472 -0
  91. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.number.d.ts +26 -0
  92. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.promise.d.ts +45 -0
  93. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.sharedmemory.d.ts +97 -0
  94. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.string.d.ts +42 -0
  95. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
  96. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.d.ts +21 -0
  97. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.full.d.ts +22 -0
  98. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.intl.d.ts +164 -0
  99. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.promise.d.ts +46 -0
  100. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.string.d.ts +31 -0
  101. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.weakref.d.ts +76 -0
  102. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.array.d.ts +119 -0
  103. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.d.ts +23 -0
  104. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.error.d.ts +73 -0
  105. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.full.d.ts +22 -0
  106. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.intl.d.ts +143 -0
  107. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.object.d.ts +24 -0
  108. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.regexp.d.ts +37 -0
  109. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.string.d.ts +23 -0
  110. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.array.d.ts +922 -0
  111. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.collection.d.ts +19 -0
  112. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.d.ts +20 -0
  113. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.full.d.ts +22 -0
  114. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.intl.d.ts +62 -0
  115. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.arraybuffer.d.ts +63 -0
  116. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.collection.d.ts +27 -0
  117. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.d.ts +24 -0
  118. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.full.d.ts +22 -0
  119. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.object.d.ts +27 -0
  120. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.promise.d.ts +33 -0
  121. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.regexp.d.ts +23 -0
  122. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.sharedmemory.d.ts +66 -0
  123. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.string.d.ts +27 -0
  124. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.collection.d.ts +94 -0
  125. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.d.ts +23 -0
  126. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.float16.d.ts +443 -0
  127. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.full.d.ts +22 -0
  128. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.intl.d.ts +200 -0
  129. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.iterator.d.ts +146 -0
  130. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.promise.d.ts +32 -0
  131. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.regexp.d.ts +30 -0
  132. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es5.d.ts +4599 -0
  133. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es6.d.ts +21 -0
  134. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.array.d.ts +33 -0
  135. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.collection.d.ts +47 -0
  136. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.d.ts +27 -0
  137. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.date.d.ts +21 -0
  138. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.decorators.d.ts +26 -0
  139. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.disposable.d.ts +191 -0
  140. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.error.d.ts +22 -0
  141. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.full.d.ts +22 -0
  142. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.intl.d.ts +107 -0
  143. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.sharedmemory.d.ts +23 -0
  144. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.temporal.d.ts +485 -0
  145. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.typedarrays.d.ts +90 -0
  146. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.scripthost.d.ts +320 -0
  147. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.asynciterable.d.ts +18 -0
  148. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.d.ts +15606 -0
  149. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.importscripts.d.ts +21 -0
  150. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.iterable.d.ts +18 -0
  151. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/tsc.exe +0 -0
  152. package/templates/admin/node_modules/@typescript/typescript-win32-x64/package.json +45 -0
  153. package/templates/admin/node_modules/@yoyaflow/yoya-ui/LICENSE +21 -0
  154. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.md +271 -0
  155. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.zh-CN.md +272 -0
  156. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/echarts.min.js +45 -0
  157. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya-ui.umd.js +35 -0
  158. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.core.js +1779 -0
  159. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.echart.js +643 -0
  160. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ssr.js +2856 -0
  161. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.css +2289 -0
  162. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.js +13174 -0
  163. package/templates/admin/node_modules/@yoyaflow/yoya-ui/package.json +94 -0
  164. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/actions.d.ts +166 -0
  165. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/async.d.ts +108 -0
  166. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/chart.d.ts +40 -0
  167. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/core.d.ts +582 -0
  168. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/css.d.ts +5 -0
  169. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/data-display.d.ts +620 -0
  170. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/effects.d.ts +64 -0
  171. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/feedback.d.ts +119 -0
  172. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/form.d.ts +507 -0
  173. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/html.d.ts +288 -0
  174. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/i18n.d.ts +56 -0
  175. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/index.d.ts +4 -0
  176. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/layout.d.ts +444 -0
  177. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/navigation.d.ts +275 -0
  178. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/router.d.ts +123 -0
  179. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/ssr.d.ts +124 -0
  180. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/svg.d.ts +159 -0
  181. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/theme.d.ts +40 -0
  182. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.core.d.ts +7 -0
  183. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.echart.d.ts +4 -0
  184. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ssr.d.ts +9 -0
  185. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ui.d.ts +19 -0
  186. package/templates/admin/node_modules/detect-libc/LICENSE +201 -0
  187. package/templates/admin/node_modules/detect-libc/README.md +163 -0
  188. package/templates/admin/node_modules/detect-libc/index.d.ts +14 -0
  189. package/templates/admin/node_modules/detect-libc/lib/detect-libc.js +313 -0
  190. package/templates/admin/node_modules/detect-libc/lib/elf.js +39 -0
  191. package/templates/admin/node_modules/detect-libc/lib/filesystem.js +51 -0
  192. package/templates/admin/node_modules/detect-libc/lib/process.js +24 -0
  193. package/templates/admin/node_modules/detect-libc/package.json +44 -0
  194. package/templates/admin/node_modules/fdir/LICENSE +7 -0
  195. package/templates/admin/node_modules/fdir/README.md +91 -0
  196. package/templates/admin/node_modules/fdir/dist/index.cjs +588 -0
  197. package/templates/admin/node_modules/fdir/dist/index.d.cts +155 -0
  198. package/templates/admin/node_modules/fdir/dist/index.d.mts +155 -0
  199. package/templates/admin/node_modules/fdir/dist/index.mjs +570 -0
  200. package/templates/admin/node_modules/fdir/package.json +103 -0
  201. package/templates/admin/node_modules/lightningcss/LICENSE +373 -0
  202. package/templates/admin/node_modules/lightningcss/README.md +105 -0
  203. package/templates/admin/node_modules/lightningcss/node/ast.d.ts +9965 -0
  204. package/templates/admin/node_modules/lightningcss/node/ast.js.flow +10615 -0
  205. package/templates/admin/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
  206. package/templates/admin/node_modules/lightningcss/node/composeVisitors.js +450 -0
  207. package/templates/admin/node_modules/lightningcss/node/flags.js +28 -0
  208. package/templates/admin/node_modules/lightningcss/node/index.d.ts +501 -0
  209. package/templates/admin/node_modules/lightningcss/node/index.js +59 -0
  210. package/templates/admin/node_modules/lightningcss/node/index.js.flow +854 -0
  211. package/templates/admin/node_modules/lightningcss/node/index.mjs +4 -0
  212. package/templates/admin/node_modules/lightningcss/node/targets.d.ts +40 -0
  213. package/templates/admin/node_modules/lightningcss/node/targets.js.flow +39 -0
  214. package/templates/admin/node_modules/lightningcss/package.json +110 -0
  215. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/LICENSE +373 -0
  216. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/README.md +1 -0
  217. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/lightningcss.win32-x64-msvc.node +0 -0
  218. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/package.json +34 -0
  219. package/templates/admin/node_modules/nanoid/LICENSE +20 -0
  220. package/templates/admin/node_modules/nanoid/README.md +39 -0
  221. package/templates/admin/node_modules/nanoid/async/index.browser.cjs +43 -0
  222. package/templates/admin/node_modules/nanoid/async/index.browser.js +43 -0
  223. package/templates/admin/node_modules/nanoid/async/index.cjs +47 -0
  224. package/templates/admin/node_modules/nanoid/async/index.d.ts +56 -0
  225. package/templates/admin/node_modules/nanoid/async/index.js +47 -0
  226. package/templates/admin/node_modules/nanoid/async/index.native.js +38 -0
  227. package/templates/admin/node_modules/nanoid/async/package.json +12 -0
  228. package/templates/admin/node_modules/nanoid/bin/nanoid.cjs +55 -0
  229. package/templates/admin/node_modules/nanoid/index.browser.cjs +45 -0
  230. package/templates/admin/node_modules/nanoid/index.browser.js +45 -0
  231. package/templates/admin/node_modules/nanoid/index.cjs +58 -0
  232. package/templates/admin/node_modules/nanoid/index.d.cts +91 -0
  233. package/templates/admin/node_modules/nanoid/index.d.ts +91 -0
  234. package/templates/admin/node_modules/nanoid/index.js +63 -0
  235. package/templates/admin/node_modules/nanoid/nanoid.js +1 -0
  236. package/templates/admin/node_modules/nanoid/non-secure/index.cjs +24 -0
  237. package/templates/admin/node_modules/nanoid/non-secure/index.d.ts +33 -0
  238. package/templates/admin/node_modules/nanoid/non-secure/index.js +24 -0
  239. package/templates/admin/node_modules/nanoid/non-secure/package.json +6 -0
  240. package/templates/admin/node_modules/nanoid/package.json +89 -0
  241. package/templates/admin/node_modules/nanoid/url-alphabet/index.cjs +4 -0
  242. package/templates/admin/node_modules/nanoid/url-alphabet/index.js +4 -0
  243. package/templates/admin/node_modules/nanoid/url-alphabet/package.json +6 -0
  244. package/templates/admin/node_modules/picocolors/LICENSE +15 -0
  245. package/templates/admin/node_modules/picocolors/README.md +21 -0
  246. package/templates/admin/node_modules/picocolors/package.json +25 -0
  247. package/templates/admin/node_modules/picocolors/picocolors.browser.js +4 -0
  248. package/templates/admin/node_modules/picocolors/picocolors.d.ts +5 -0
  249. package/templates/admin/node_modules/picocolors/picocolors.js +75 -0
  250. package/templates/admin/node_modules/picocolors/types.d.ts +51 -0
  251. package/templates/admin/node_modules/picomatch/LICENSE +21 -0
  252. package/templates/admin/node_modules/picomatch/README.md +743 -0
  253. package/templates/admin/node_modules/picomatch/index.js +17 -0
  254. package/templates/admin/node_modules/picomatch/lib/constants.js +184 -0
  255. package/templates/admin/node_modules/picomatch/lib/parse.js +1425 -0
  256. package/templates/admin/node_modules/picomatch/lib/picomatch.js +361 -0
  257. package/templates/admin/node_modules/picomatch/lib/scan.js +403 -0
  258. package/templates/admin/node_modules/picomatch/lib/utils.js +72 -0
  259. package/templates/admin/node_modules/picomatch/package.json +83 -0
  260. package/templates/admin/node_modules/picomatch/posix.js +3 -0
  261. package/templates/admin/node_modules/postcss/LICENSE +20 -0
  262. package/templates/admin/node_modules/postcss/README.md +27 -0
  263. package/templates/admin/node_modules/postcss/lib/at-rule.d.ts +139 -0
  264. package/templates/admin/node_modules/postcss/lib/at-rule.js +25 -0
  265. package/templates/admin/node_modules/postcss/lib/comment.d.ts +67 -0
  266. package/templates/admin/node_modules/postcss/lib/comment.js +13 -0
  267. package/templates/admin/node_modules/postcss/lib/container.d.ts +478 -0
  268. package/templates/admin/node_modules/postcss/lib/container.js +494 -0
  269. package/templates/admin/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
  270. package/templates/admin/node_modules/postcss/lib/css-syntax-error.js +133 -0
  271. package/templates/admin/node_modules/postcss/lib/declaration.d.ts +150 -0
  272. package/templates/admin/node_modules/postcss/lib/declaration.js +24 -0
  273. package/templates/admin/node_modules/postcss/lib/document.d.ts +68 -0
  274. package/templates/admin/node_modules/postcss/lib/document.js +33 -0
  275. package/templates/admin/node_modules/postcss/lib/fromJSON.d.ts +9 -0
  276. package/templates/admin/node_modules/postcss/lib/fromJSON.js +107 -0
  277. package/templates/admin/node_modules/postcss/lib/input.d.ts +226 -0
  278. package/templates/admin/node_modules/postcss/lib/input.js +282 -0
  279. package/templates/admin/node_modules/postcss/lib/lazy-result.d.ts +189 -0
  280. package/templates/admin/node_modules/postcss/lib/lazy-result.js +626 -0
  281. package/templates/admin/node_modules/postcss/lib/list.d.ts +60 -0
  282. package/templates/admin/node_modules/postcss/lib/list.js +59 -0
  283. package/templates/admin/node_modules/postcss/lib/map-generator.js +376 -0
  284. package/templates/admin/node_modules/postcss/lib/no-work-result.d.ts +45 -0
  285. package/templates/admin/node_modules/postcss/lib/no-work-result.js +137 -0
  286. package/templates/admin/node_modules/postcss/lib/node.d.ts +555 -0
  287. package/templates/admin/node_modules/postcss/lib/node.js +494 -0
  288. package/templates/admin/node_modules/postcss/lib/parse.d.ts +9 -0
  289. package/templates/admin/node_modules/postcss/lib/parse.js +42 -0
  290. package/templates/admin/node_modules/postcss/lib/parser.js +618 -0
  291. package/templates/admin/node_modules/postcss/lib/postcss.d.mts +66 -0
  292. package/templates/admin/node_modules/postcss/lib/postcss.d.ts +464 -0
  293. package/templates/admin/node_modules/postcss/lib/postcss.js +101 -0
  294. package/templates/admin/node_modules/postcss/lib/postcss.mjs +30 -0
  295. package/templates/admin/node_modules/postcss/lib/previous-map.d.ts +80 -0
  296. package/templates/admin/node_modules/postcss/lib/previous-map.js +176 -0
  297. package/templates/admin/node_modules/postcss/lib/processor.d.ts +114 -0
  298. package/templates/admin/node_modules/postcss/lib/processor.js +67 -0
  299. package/templates/admin/node_modules/postcss/lib/result.d.ts +204 -0
  300. package/templates/admin/node_modules/postcss/lib/result.js +42 -0
  301. package/templates/admin/node_modules/postcss/lib/root.d.ts +86 -0
  302. package/templates/admin/node_modules/postcss/lib/root.js +76 -0
  303. package/templates/admin/node_modules/postcss/lib/rule.d.ts +126 -0
  304. package/templates/admin/node_modules/postcss/lib/rule.js +27 -0
  305. package/templates/admin/node_modules/postcss/lib/stringifier.d.ts +45 -0
  306. package/templates/admin/node_modules/postcss/lib/stringifier.js +461 -0
  307. package/templates/admin/node_modules/postcss/lib/stringify.d.ts +9 -0
  308. package/templates/admin/node_modules/postcss/lib/stringify.js +11 -0
  309. package/templates/admin/node_modules/postcss/lib/symbols.js +5 -0
  310. package/templates/admin/node_modules/postcss/lib/terminal-highlight.js +70 -0
  311. package/templates/admin/node_modules/postcss/lib/tokenize.js +270 -0
  312. package/templates/admin/node_modules/postcss/lib/warn-once.js +13 -0
  313. package/templates/admin/node_modules/postcss/lib/warning.d.ts +146 -0
  314. package/templates/admin/node_modules/postcss/lib/warning.js +47 -0
  315. package/templates/admin/node_modules/postcss/package.json +88 -0
  316. package/templates/admin/node_modules/rolldown/LICENSE +25 -0
  317. package/templates/admin/node_modules/rolldown/README.md +11 -0
  318. package/templates/admin/node_modules/rolldown/THIRD-PARTY-LICENSE +33 -0
  319. package/templates/admin/node_modules/rolldown/bin/cli.mjs +11 -0
  320. package/templates/admin/node_modules/rolldown/dist/cli.d.mts +1 -0
  321. package/templates/admin/node_modules/rolldown/dist/cli.mjs +1208 -0
  322. package/templates/admin/node_modules/rolldown/dist/config.d.mts +26 -0
  323. package/templates/admin/node_modules/rolldown/dist/config.mjs +4 -0
  324. package/templates/admin/node_modules/rolldown/dist/experimental-default-runtime.mjs +116 -0
  325. package/templates/admin/node_modules/rolldown/dist/experimental-index.d.mts +324 -0
  326. package/templates/admin/node_modules/rolldown/dist/experimental-index.mjs +383 -0
  327. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-base.mjs +95 -0
  328. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +177 -0
  329. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.d.ts +177 -0
  330. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.mjs +257 -0
  331. package/templates/admin/node_modules/rolldown/dist/filter-index.d.mts +196 -0
  332. package/templates/admin/node_modules/rolldown/dist/filter-index.mjs +376 -0
  333. package/templates/admin/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
  334. package/templates/admin/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
  335. package/templates/admin/node_modules/rolldown/dist/index.d.mts +4 -0
  336. package/templates/admin/node_modules/rolldown/dist/index.mjs +56 -0
  337. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
  338. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +29 -0
  339. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.d.mts +12 -0
  340. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
  341. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.d.mts +30 -0
  342. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
  343. package/templates/admin/node_modules/rolldown/dist/plugins-index.d.mts +32 -0
  344. package/templates/admin/node_modules/rolldown/dist/plugins-index.mjs +40 -0
  345. package/templates/admin/node_modules/rolldown/dist/shared/binding-CtPG-2KR.mjs +675 -0
  346. package/templates/admin/node_modules/rolldown/dist/shared/binding-Og__jmUi.d.mts +2065 -0
  347. package/templates/admin/node_modules/rolldown/dist/shared/bindingify-input-options-4JJxbZl2.mjs +2416 -0
  348. package/templates/admin/node_modules/rolldown/dist/shared/constructors-Qrp2Xr6w.d.mts +35 -0
  349. package/templates/admin/node_modules/rolldown/dist/shared/constructors-ltBDfHX1.mjs +69 -0
  350. package/templates/admin/node_modules/rolldown/dist/shared/create-bundler-option-DSPiA5F7.mjs +3220 -0
  351. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs +6 -0
  352. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Nbz-lniw.d.mts +4101 -0
  353. package/templates/admin/node_modules/rolldown/dist/shared/dist-DKbukT1H.mjs +154 -0
  354. package/templates/admin/node_modules/rolldown/dist/shared/error-HDibX49O.mjs +85 -0
  355. package/templates/admin/node_modules/rolldown/dist/shared/get-log-filter-AjBknEEO.d.mts +34 -0
  356. package/templates/admin/node_modules/rolldown/dist/shared/load-config-BMUrE9HH.mjs +137 -0
  357. package/templates/admin/node_modules/rolldown/dist/shared/logging-xuHO4mAy.d.mts +50 -0
  358. package/templates/admin/node_modules/rolldown/dist/shared/logs-DmYCAKcW.mjs +192 -0
  359. package/templates/admin/node_modules/rolldown/dist/shared/misc-DOSKtd97.mjs +29 -0
  360. package/templates/admin/node_modules/rolldown/dist/shared/normalize-string-or-regex-DWz4it3p.mjs +68 -0
  361. package/templates/admin/node_modules/rolldown/dist/shared/parse-D0g29RgN.mjs +74 -0
  362. package/templates/admin/node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs +885 -0
  363. package/templates/admin/node_modules/rolldown/dist/shared/resolve-tsconfig-CLYpUIZC.mjs +128 -0
  364. package/templates/admin/node_modules/rolldown/dist/shared/rolldown-C9Hfg50O.mjs +179 -0
  365. package/templates/admin/node_modules/rolldown/dist/shared/transform-DR4CXeQm.d.mts +152 -0
  366. package/templates/admin/node_modules/rolldown/dist/shared/watch-UbzgabQn.mjs +377 -0
  367. package/templates/admin/node_modules/rolldown/dist/utils-index.d.mts +375 -0
  368. package/templates/admin/node_modules/rolldown/dist/utils-index.mjs +2416 -0
  369. package/templates/admin/node_modules/rolldown/package.json +164 -0
  370. package/templates/admin/node_modules/source-map-js/LICENSE +28 -0
  371. package/templates/admin/node_modules/source-map-js/README.md +765 -0
  372. package/templates/admin/node_modules/source-map-js/lib/array-set.js +121 -0
  373. package/templates/admin/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  374. package/templates/admin/node_modules/source-map-js/lib/base64.js +67 -0
  375. package/templates/admin/node_modules/source-map-js/lib/binary-search.js +111 -0
  376. package/templates/admin/node_modules/source-map-js/lib/mapping-list.js +79 -0
  377. package/templates/admin/node_modules/source-map-js/lib/quick-sort.js +132 -0
  378. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  379. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  380. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  381. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  382. package/templates/admin/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  383. package/templates/admin/node_modules/source-map-js/lib/source-node.js +413 -0
  384. package/templates/admin/node_modules/source-map-js/lib/util.js +594 -0
  385. package/templates/admin/node_modules/source-map-js/package.json +71 -0
  386. package/templates/admin/node_modules/source-map-js/source-map.d.ts +104 -0
  387. package/templates/admin/node_modules/source-map-js/source-map.js +8 -0
  388. package/templates/admin/node_modules/tinyglobby/LICENSE +21 -0
  389. package/templates/admin/node_modules/tinyglobby/README.md +25 -0
  390. package/templates/admin/node_modules/tinyglobby/dist/index.cjs +335 -0
  391. package/templates/admin/node_modules/tinyglobby/dist/index.d.cts +148 -0
  392. package/templates/admin/node_modules/tinyglobby/dist/index.d.mts +148 -0
  393. package/templates/admin/node_modules/tinyglobby/dist/index.mjs +307 -0
  394. package/templates/admin/node_modules/tinyglobby/package.json +70 -0
  395. package/templates/admin/node_modules/typescript/LICENSE +55 -0
  396. package/templates/admin/node_modules/typescript/NOTICE.txt +436 -0
  397. package/templates/admin/node_modules/typescript/README.md +49 -0
  398. package/templates/admin/node_modules/typescript/bin/tsc +2 -0
  399. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts +529 -0
  400. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts.map +1 -0
  401. package/templates/admin/node_modules/typescript/dist/api/async/api.js +1657 -0
  402. package/templates/admin/node_modules/typescript/dist/api/async/api.js.map +1 -0
  403. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts +39 -0
  404. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts.map +1 -0
  405. package/templates/admin/node_modules/typescript/dist/api/async/client.js +211 -0
  406. package/templates/admin/node_modules/typescript/dist/api/async/client.js.map +1 -0
  407. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts +310 -0
  408. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts.map +1 -0
  409. package/templates/admin/node_modules/typescript/dist/api/async/types.js +2 -0
  410. package/templates/admin/node_modules/typescript/dist/api/async/types.js.map +1 -0
  411. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts +109 -0
  412. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts.map +1 -0
  413. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js +2 -0
  414. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js.map +1 -0
  415. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts +23 -0
  416. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts.map +1 -0
  417. package/templates/admin/node_modules/typescript/dist/api/fs.js +109 -0
  418. package/templates/admin/node_modules/typescript/dist/api/fs.js.map +1 -0
  419. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts +15 -0
  420. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts.map +1 -0
  421. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts +5 -0
  422. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +1 -0
  423. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js +74 -0
  424. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js.map +1 -0
  425. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js +287 -0
  426. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js.map +1 -0
  427. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts +32 -0
  428. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts.map +1 -0
  429. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js +213 -0
  430. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js.map +1 -0
  431. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts +76 -0
  432. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts.map +1 -0
  433. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts +182 -0
  434. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts.map +1 -0
  435. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js +835 -0
  436. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js.map +1 -0
  437. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +62 -0
  438. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +1 -0
  439. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js +122 -0
  440. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js.map +1 -0
  441. package/templates/admin/node_modules/typescript/dist/api/node/node.js +298 -0
  442. package/templates/admin/node_modules/typescript/dist/api/node/node.js.map +1 -0
  443. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts +29 -0
  444. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts.map +1 -0
  445. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts +4 -0
  446. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +1 -0
  447. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js +241 -0
  448. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js.map +1 -0
  449. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js +30 -0
  450. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js.map +1 -0
  451. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts +6 -0
  452. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts.map +1 -0
  453. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js +61 -0
  454. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js.map +1 -0
  455. package/templates/admin/node_modules/typescript/dist/api/options.d.ts +32 -0
  456. package/templates/admin/node_modules/typescript/dist/api/options.d.ts.map +1 -0
  457. package/templates/admin/node_modules/typescript/dist/api/options.js +11 -0
  458. package/templates/admin/node_modules/typescript/dist/api/options.js.map +1 -0
  459. package/templates/admin/node_modules/typescript/dist/api/path.d.ts +110 -0
  460. package/templates/admin/node_modules/typescript/dist/api/path.d.ts.map +1 -0
  461. package/templates/admin/node_modules/typescript/dist/api/path.js +508 -0
  462. package/templates/admin/node_modules/typescript/dist/api/path.js.map +1 -0
  463. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts +239 -0
  464. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts.map +1 -0
  465. package/templates/admin/node_modules/typescript/dist/api/proto.js +37 -0
  466. package/templates/admin/node_modules/typescript/dist/api/proto.js.map +1 -0
  467. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts +79 -0
  468. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +1 -0
  469. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js +169 -0
  470. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js.map +1 -0
  471. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts +529 -0
  472. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts.map +1 -0
  473. package/templates/admin/node_modules/typescript/dist/api/sync/api.js +1665 -0
  474. package/templates/admin/node_modules/typescript/dist/api/sync/api.js.map +1 -0
  475. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts +30 -0
  476. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts.map +1 -0
  477. package/templates/admin/node_modules/typescript/dist/api/sync/client.js +124 -0
  478. package/templates/admin/node_modules/typescript/dist/api/sync/client.js.map +1 -0
  479. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts +310 -0
  480. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts.map +1 -0
  481. package/templates/admin/node_modules/typescript/dist/api/sync/types.js +2 -0
  482. package/templates/admin/node_modules/typescript/dist/api/sync/types.js.map +1 -0
  483. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts +114 -0
  484. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts.map +1 -0
  485. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js +508 -0
  486. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js.map +1 -0
  487. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts +175 -0
  488. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts.map +1 -0
  489. package/templates/admin/node_modules/typescript/dist/api/timing.js +149 -0
  490. package/templates/admin/node_modules/typescript/dist/api/timing.js.map +1 -0
  491. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts +100 -0
  492. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts.map +1 -0
  493. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts +1161 -0
  494. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts.map +1 -0
  495. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js +4 -0
  496. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js.map +1 -0
  497. package/templates/admin/node_modules/typescript/dist/ast/ast.js +7 -0
  498. package/templates/admin/node_modules/typescript/dist/ast/ast.js.map +1 -0
  499. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts +19 -0
  500. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts.map +1 -0
  501. package/templates/admin/node_modules/typescript/dist/ast/astnav.js +596 -0
  502. package/templates/admin/node_modules/typescript/dist/ast/astnav.js.map +1 -0
  503. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts +16 -0
  504. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts.map +1 -0
  505. package/templates/admin/node_modules/typescript/dist/ast/clone.js +104 -0
  506. package/templates/admin/node_modules/typescript/dist/ast/clone.js.map +1 -0
  507. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts +520 -0
  508. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts.map +1 -0
  509. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js +3057 -0
  510. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js.map +1 -0
  511. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts +20 -0
  512. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts.map +1 -0
  513. package/templates/admin/node_modules/typescript/dist/ast/index.js +20 -0
  514. package/templates/admin/node_modules/typescript/dist/ast/index.js.map +1 -0
  515. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts +35 -0
  516. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts.map +1 -0
  517. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts +329 -0
  518. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts.map +1 -0
  519. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js +1103 -0
  520. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js.map +1 -0
  521. package/templates/admin/node_modules/typescript/dist/ast/is.js +233 -0
  522. package/templates/admin/node_modules/typescript/dist/ast/is.js.map +1 -0
  523. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts +11 -0
  524. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts.map +1 -0
  525. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js +202 -0
  526. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js.map +1 -0
  527. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts +97 -0
  528. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts.map +1 -0
  529. package/templates/admin/node_modules/typescript/dist/ast/scanner.js +2230 -0
  530. package/templates/admin/node_modules/typescript/dist/ast/scanner.js.map +1 -0
  531. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts +17 -0
  532. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts.map +1 -0
  533. package/templates/admin/node_modules/typescript/dist/ast/utils.js +67 -0
  534. package/templates/admin/node_modules/typescript/dist/ast/utils.js.map +1 -0
  535. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts +14 -0
  536. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts.map +1 -0
  537. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts +50 -0
  538. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +1 -0
  539. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js +978 -0
  540. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js.map +1 -0
  541. package/templates/admin/node_modules/typescript/dist/ast/visitor.js +47 -0
  542. package/templates/admin/node_modules/typescript/dist/ast/visitor.js.map +1 -0
  543. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts +2 -0
  544. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts.map +1 -0
  545. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +129 -0
  546. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +1 -0
  547. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js +132 -0
  548. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js.map +1 -0
  549. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js +130 -0
  550. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js.map +1 -0
  551. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +2 -0
  552. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +1 -0
  553. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +5 -0
  554. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
  555. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +6 -0
  556. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +1 -0
  557. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js +6 -0
  558. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js.map +1 -0
  559. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts +2 -0
  560. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +1 -0
  561. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +28 -0
  562. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +1 -0
  563. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js +30 -0
  564. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +1 -0
  565. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js +30 -0
  566. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js.map +1 -0
  567. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +2 -0
  568. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +1 -0
  569. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +7 -0
  570. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
  571. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +9 -0
  572. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +1 -0
  573. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js +9 -0
  574. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js.map +1 -0
  575. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts +2 -0
  576. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts.map +1 -0
  577. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +12 -0
  578. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +1 -0
  579. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js +14 -0
  580. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js.map +1 -0
  581. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js +14 -0
  582. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js.map +1 -0
  583. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts +2 -0
  584. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +1 -0
  585. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +23 -0
  586. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +1 -0
  587. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js +25 -0
  588. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +1 -0
  589. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js +25 -0
  590. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js.map +1 -0
  591. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts +2 -0
  592. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +1 -0
  593. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +9 -0
  594. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +1 -0
  595. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js +11 -0
  596. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +1 -0
  597. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js +11 -0
  598. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js.map +1 -0
  599. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts +2 -0
  600. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts.map +1 -0
  601. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +5 -0
  602. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +1 -0
  603. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js +6 -0
  604. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js.map +1 -0
  605. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js +6 -0
  606. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js.map +1 -0
  607. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts +2 -0
  608. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +1 -0
  609. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +42 -0
  610. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +1 -0
  611. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js +44 -0
  612. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +1 -0
  613. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js +44 -0
  614. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js.map +1 -0
  615. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +2 -0
  616. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +1 -0
  617. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +7 -0
  618. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +1 -0
  619. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +9 -0
  620. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +1 -0
  621. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js +9 -0
  622. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +1 -0
  623. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts +2 -0
  624. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts.map +1 -0
  625. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +17 -0
  626. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +1 -0
  627. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js +19 -0
  628. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js.map +1 -0
  629. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js +19 -0
  630. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js.map +1 -0
  631. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +2 -0
  632. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +1 -0
  633. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +9 -0
  634. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +1 -0
  635. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +11 -0
  636. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +1 -0
  637. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js +11 -0
  638. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +1 -0
  639. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts +2 -0
  640. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts.map +1 -0
  641. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +6 -0
  642. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +1 -0
  643. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js +8 -0
  644. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js.map +1 -0
  645. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js +8 -0
  646. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js.map +1 -0
  647. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +2 -0
  648. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
  649. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
  650. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
  651. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +38 -0
  652. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
  653. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js +38 -0
  654. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +1 -0
  655. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts +2 -0
  656. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +1 -0
  657. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +44 -0
  658. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +1 -0
  659. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js +46 -0
  660. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +1 -0
  661. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js +46 -0
  662. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js.map +1 -0
  663. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts +2 -0
  664. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts.map +1 -0
  665. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +50 -0
  666. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +1 -0
  667. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js +52 -0
  668. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js.map +1 -0
  669. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js +52 -0
  670. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js.map +1 -0
  671. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +2 -0
  672. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +1 -0
  673. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
  674. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
  675. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +18 -0
  676. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +1 -0
  677. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js +18 -0
  678. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +1 -0
  679. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +2 -0
  680. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +1 -0
  681. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
  682. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
  683. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +14 -0
  684. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +1 -0
  685. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js +14 -0
  686. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +1 -0
  687. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts +2 -0
  688. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts.map +1 -0
  689. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +11 -0
  690. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +1 -0
  691. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js +12 -0
  692. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js.map +1 -0
  693. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js +12 -0
  694. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js.map +1 -0
  695. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts +2 -0
  696. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +1 -0
  697. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +17 -0
  698. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +1 -0
  699. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js +18 -0
  700. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +1 -0
  701. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js +18 -0
  702. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js.map +1 -0
  703. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts +2 -0
  704. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +1 -0
  705. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +15 -0
  706. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +1 -0
  707. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js +17 -0
  708. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +1 -0
  709. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js +17 -0
  710. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js.map +1 -0
  711. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts +2 -0
  712. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts.map +1 -0
  713. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +5 -0
  714. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +1 -0
  715. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js +7 -0
  716. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js.map +1 -0
  717. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js +7 -0
  718. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js.map +1 -0
  719. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts +2 -0
  720. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +1 -0
  721. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +71 -0
  722. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +1 -0
  723. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js +73 -0
  724. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +1 -0
  725. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js +73 -0
  726. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js.map +1 -0
  727. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts +2 -0
  728. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +1 -0
  729. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +389 -0
  730. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +1 -0
  731. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js +391 -0
  732. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +1 -0
  733. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js +391 -0
  734. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js.map +1 -0
  735. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts +2 -0
  736. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +1 -0
  737. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +30 -0
  738. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +1 -0
  739. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js +32 -0
  740. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +1 -0
  741. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js +32 -0
  742. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js.map +1 -0
  743. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts +2 -0
  744. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts.map +1 -0
  745. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +76 -0
  746. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +1 -0
  747. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js +78 -0
  748. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js.map +1 -0
  749. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js +78 -0
  750. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js.map +1 -0
  751. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts +2 -0
  752. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +1 -0
  753. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +7 -0
  754. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
  755. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js +9 -0
  756. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +1 -0
  757. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js +9 -0
  758. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js.map +1 -0
  759. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts +23 -0
  760. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts.map +1 -0
  761. package/templates/admin/node_modules/typescript/dist/internal/utils.js +25 -0
  762. package/templates/admin/node_modules/typescript/dist/internal/utils.js.map +1 -0
  763. package/templates/admin/node_modules/typescript/lib/getExePath.d.ts +2 -0
  764. package/templates/admin/node_modules/typescript/lib/getExePath.js +70 -0
  765. package/templates/admin/node_modules/typescript/lib/tsc.js +28 -0
  766. package/templates/admin/node_modules/typescript/lib/version.cjs +3 -0
  767. package/templates/admin/node_modules/typescript/lib/version.d.cts +2 -0
  768. package/templates/admin/node_modules/typescript/package.json +87 -0
  769. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +11 -0
  770. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/README.md +54 -0
  771. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
  772. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
  773. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
  774. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
  775. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
  776. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
  777. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
  778. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
  779. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
  780. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
  781. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
  782. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
  783. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
  784. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
  785. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
  786. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
  787. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
  788. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
  789. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
  790. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
  791. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
  792. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
  793. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
  794. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
  795. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
  796. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
  797. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
  798. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
  799. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
  800. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
  801. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
  802. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
  803. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
  804. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
  805. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
  806. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
  807. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
  808. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
  809. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/package.json +54 -0
  810. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
  811. package/templates/admin/node_modules/vite/LICENSE.md +2322 -0
  812. package/templates/admin/node_modules/vite/README.md +20 -0
  813. package/templates/admin/node_modules/vite/bin/openChrome.js +68 -0
  814. package/templates/admin/node_modules/vite/bin/vite.js +79 -0
  815. package/templates/admin/node_modules/vite/client.d.ts +285 -0
  816. package/templates/admin/node_modules/vite/dist/client/bundledDevClient.mjs +1829 -0
  817. package/templates/admin/node_modules/vite/dist/client/client.mjs +1244 -0
  818. package/templates/admin/node_modules/vite/dist/client/env.mjs +18 -0
  819. package/templates/admin/node_modules/vite/dist/node/chunks/build.js +5494 -0
  820. package/templates/admin/node_modules/vite/dist/node/chunks/dist.js +6732 -0
  821. package/templates/admin/node_modules/vite/dist/node/chunks/lib.js +371 -0
  822. package/templates/admin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +95 -0
  823. package/templates/admin/node_modules/vite/dist/node/chunks/node.js +37269 -0
  824. package/templates/admin/node_modules/vite/dist/node/chunks/postcss-import.js +465 -0
  825. package/templates/admin/node_modules/vite/dist/node/cli.js +835 -0
  826. package/templates/admin/node_modules/vite/dist/node/index.d.ts +4069 -0
  827. package/templates/admin/node_modules/vite/dist/node/index.js +2 -0
  828. package/templates/admin/node_modules/vite/dist/node/internal.d.ts +2 -0
  829. package/templates/admin/node_modules/vite/dist/node/internal.js +2 -0
  830. package/templates/admin/node_modules/vite/dist/node/module-runner.d.ts +313 -0
  831. package/templates/admin/node_modules/vite/dist/node/module-runner.js +1288 -0
  832. package/templates/admin/node_modules/vite/misc/false.js +1 -0
  833. package/templates/admin/node_modules/vite/misc/true.js +1 -0
  834. package/templates/admin/node_modules/vite/package.json +194 -0
  835. package/templates/admin/node_modules/vite/types/customEvent.d.ts +81 -0
  836. package/templates/admin/node_modules/vite/types/hmrPayload.d.ts +94 -0
  837. package/templates/admin/node_modules/vite/types/hot.d.ts +39 -0
  838. package/templates/admin/node_modules/vite/types/import-meta.d.ts +5 -0
  839. package/templates/admin/node_modules/vite/types/importGlob.d.ts +131 -0
  840. package/templates/admin/node_modules/vite/types/importMeta.d.ts +30 -0
  841. package/templates/admin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
  842. package/templates/admin/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
  843. package/templates/admin/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
  844. package/templates/admin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
  845. package/templates/admin/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
  846. package/templates/admin/node_modules/vite/types/metadata.d.ts +47 -0
  847. package/templates/admin/src/features/dashboard/todos/pages/todo-approval-page.js +5 -0
  848. package/templates/admin/src/features/ops/deploys/pages/deploy-list-page.js +5 -0
  849. package/templates/admin/src/features/ops/services/pages/service-list-page.js +5 -0
  850. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.mgr.d.ts +24 -17
  851. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.mgr.js +24 -14
  852. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.mock.js +22 -4
  853. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.state.d.ts +5 -0
  854. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.state.js +39 -8
  855. package/templates/admin/src/features/{dicts → system/dicts}/components/dict-editor-dialog.js +1 -1
  856. package/templates/admin/src/features/{dicts → system/dicts}/pages/dict-list-page.js +41 -21
  857. package/templates/admin/src/features/{members → system/members}/api/member.mgr.d.ts +10 -9
  858. package/templates/admin/src/features/{members → system/members}/api/member.mgr.js +8 -3
  859. package/templates/admin/src/features/{members → system/members}/api/member.mock.js +1 -1
  860. package/templates/admin/src/features/{members → system/members}/api/member.req.d.ts +1 -1
  861. package/templates/admin/src/features/{members → system/members}/api/member.req.js +3 -1
  862. package/templates/admin/src/features/{members → system/members}/api/member.state.js +4 -4
  863. package/templates/admin/src/features/{members → system/members}/components/member-table.js +1 -1
  864. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.mgr.d.ts +11 -9
  865. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.mgr.js +10 -5
  866. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.mock.js +1 -1
  867. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.state.js +4 -4
  868. package/templates/admin/src/features/{permissions → system/permissions}/pages/permission-list-page.js +1 -1
  869. package/templates/admin/src/features/{roles → system/roles}/api/role.mgr.d.ts +19 -6
  870. package/templates/admin/src/features/{roles → system/roles}/api/role.mgr.js +8 -3
  871. package/templates/admin/src/features/{roles → system/roles}/api/role.mock.js +1 -1
  872. package/templates/admin/src/features/{roles → system/roles}/api/role.state.js +4 -4
  873. package/templates/admin/src/features/{roles → system/roles}/components/role-table.js +1 -1
  874. package/templates/admin/src/main.js +16 -12
  875. package/templates/admin/src/{ui/row-action-button.js → shared/ui.buttons.js} +1 -0
  876. package/templates/admin/src/{ui/placeholder-page.js → shared/ui.pages.js} +1 -0
  877. package/templates/admin/src/shell/api/shell.mock.js +42 -0
  878. package/templates/admin/src/shell/api/shell.req.js +17 -0
  879. package/templates/admin/src/shell/api/shell.state.js +90 -0
  880. package/templates/admin/src/shell/api/shell.views.js +19 -0
  881. package/templates/admin/src/shell/components/admin-shell.js +42 -0
  882. package/templates/admin/src/{ui → shell/components}/app-navbar.js +11 -12
  883. package/templates/admin/src/shell/components/app-sidebar.js +44 -0
  884. package/templates/admin/src/{ui → shell/components}/sidebar-menu.js +3 -3
  885. package/templates/admin/src/shell/router.js +40 -0
  886. package/templates/admin/src/app/admin-shell.js +0 -51
  887. package/templates/admin/src/app/modules.js +0 -37
  888. package/templates/admin/src/app/router.js +0 -20
  889. package/templates/admin/src/ui/app-sidebar.js +0 -27
  890. /package/templates/admin/src/features/dashboard/{components → overview/components}/dashboard-chart.js +0 -0
  891. /package/templates/admin/src/features/dashboard/{pages → overview/pages}/dashboard-overview-page.js +0 -0
  892. /package/templates/admin/src/features/{dicts → system/dicts}/api/dict.views.d.ts +0 -0
  893. /package/templates/admin/src/features/{dicts → system/dicts}/api/dict.views.js +0 -0
  894. /package/templates/admin/src/features/{dicts → system/dicts}/components/dict-item-form-dialog.js +0 -0
  895. /package/templates/admin/src/features/{dicts → system/dicts}/utils/options.js +0 -0
  896. /package/templates/admin/src/features/{members → system/members}/api/member.state.d.ts +0 -0
  897. /package/templates/admin/src/features/{members → system/members}/api/member.views.d.ts +0 -0
  898. /package/templates/admin/src/features/{members → system/members}/api/member.views.js +0 -0
  899. /package/templates/admin/src/features/{members → system/members}/components/member-form-dialog.js +0 -0
  900. /package/templates/admin/src/features/{members → system/members}/components/member-toolbar.js +0 -0
  901. /package/templates/admin/src/features/{members → system/members}/pages/member-list-page.js +0 -0
  902. /package/templates/admin/src/features/{members → system/members}/utils/options.d.ts +0 -0
  903. /package/templates/admin/src/features/{members → system/members}/utils/options.js +0 -0
  904. /package/templates/admin/src/features/{permissions → system/permissions}/api/permission.state.d.ts +0 -0
  905. /package/templates/admin/src/features/{permissions → system/permissions}/api/permission.views.d.ts +0 -0
  906. /package/templates/admin/src/features/{permissions → system/permissions}/api/permission.views.js +0 -0
  907. /package/templates/admin/src/features/{permissions → system/permissions}/components/permission-form-dialog.js +0 -0
  908. /package/templates/admin/src/features/{roles → system/roles}/api/role.state.d.ts +0 -0
  909. /package/templates/admin/src/features/{roles → system/roles}/api/role.views.d.ts +0 -0
  910. /package/templates/admin/src/features/{roles → system/roles}/api/role.views.js +0 -0
  911. /package/templates/admin/src/features/{roles → system/roles}/components/role-form-dialog.js +0 -0
  912. /package/templates/admin/src/features/{roles → system/roles}/components/role-toolbar.js +0 -0
  913. /package/templates/admin/src/features/{roles → system/roles}/pages/role-list-page.js +0 -0
  914. /package/templates/admin/src/features/{roles → system/roles}/utils/options.js +0 -0
@@ -0,0 +1,4069 @@
1
+ /// <reference types="node" />
2
+ import { t as ModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
3
+ import { ConnectedPayload, CustomPayload, CustomPayload as hmrPayload_CustomPayload, ErrorPayload, FullReloadPayload, HMRPayload, HotPayload, HotPayload as hmrPayload_HotPayload, PrunePayload, Update, UpdatePayload } from "#types/hmrPayload";
4
+ import { CustomEventMap, InferCustomEventPayload, InferCustomEventPayload as hmrPayload_InferCustomEventPayload, InvalidatePayload } from "#types/customEvent";
5
+ import * as Rolldown from "rolldown";
6
+ import { CustomPluginOptions, ExistingRawSourceMap, FunctionPluginHooks, ImportKind, InputOption, InputOptions, LoadResult, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleType, ModuleTypeFilter, ObjectHook, OutputBundle, OutputChunk, OutputOptions, PartialResolvedId, PluginContext, PluginContextMeta, ResolveIdResult, RolldownOptions, RolldownOutput, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, TransformPluginContext, VERSION as rolldownVersion, WatcherOptions } from "rolldown";
7
+ import { parseAst as parseAst$1, parseAstAsync as parseAstAsync$1 } from "rolldown/parseAst";
8
+ import * as Rollup from "#types/internal/rollupTypeCompat";
9
+ import { esmExternalRequirePlugin } from "rolldown/plugins";
10
+ import { ESTree, MinifyOptions, MinifyResult, ParseResult, ParserOptions, TransformOptions as rolldown_utils_TransformOptions, TransformResult as rolldown_utils_TransformResult, Visitor, VisitorObject, minify, minifySync, parse, parseSync } from "rolldown/utils";
11
+ import * as http from "node:http";
12
+ import { Agent, ClientRequest, ClientRequestArgs, OutgoingHttpHeaders, ServerResponse } from "node:http";
13
+ import { Http2SecureServer } from "node:http2";
14
+ import * as fs from "node:fs";
15
+ import { EventEmitter } from "node:events";
16
+ import { Server as HttpsServer, ServerOptions as HttpsServerOptions } from "node:https";
17
+ import * as net from "node:net";
18
+ import { Duplex, DuplexOptions, Stream } from "node:stream";
19
+ import { FetchFunction, FetchFunctionOptions, FetchResult, FetchResult as moduleRunner_FetchResult, ModuleEvaluator, ModuleRunner, ModuleRunnerHmr, ModuleRunnerOptions } from "vite/module-runner";
20
+ import { DepsOptimizerEsbuildOptions, EsbuildTarget, EsbuildTransformOptions, EsbuildTransformOptions as esbuildOptions_EsbuildTransformOptions, EsbuildTransformResult } from "#types/internal/esbuildOptions";
21
+ import { SecureContextOptions } from "node:tls";
22
+ import { URL as url_URL } from "node:url";
23
+ import { ZlibOptions } from "node:zlib";
24
+ import { ChunkMetadata, CustomPluginOptionsVite } from "#types/metadata";
25
+ import { Terser, TerserMinifyOptions } from "#types/internal/terserOptions";
26
+ import * as PostCSS from "postcss";
27
+ import { ProcessOptions, Processor, Transformer } from "postcss";
28
+ import { LightningCSSOptions, LightningCSSOptions as lightningcssOptions_LightningCSSOptions } from "#types/internal/lightningcssOptions";
29
+ import { LessPreprocessorBaseOptions, SassModernPreprocessBaseOptions, StylusPreprocessorBaseOptions } from "#types/internal/cssPreprocessorOptions";
30
+ import { withFilter } from "rolldown/filter";
31
+ import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownAsTypeMap, KnownQueryTypeMap } from "#types/importGlob";
32
+ //#endregion
33
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.4.12_crossws@0.4.10_srvx@0.12.5_typescript@6.0.3_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
+ //#region src/node/cli-commands.d.ts
35
+ interface StartOptions {
36
+ root?: string;
37
+ config?: string;
38
+ host: string;
39
+ port?: string | number;
40
+ open?: boolean;
41
+ }
42
+ //#endregion
43
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.4.12_crossws@0.4.10_srvx@0.12.5_typescript@6.0.3_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
44
+ //#region src/node/config.d.ts
45
+ interface DevToolsConfig extends Partial<StartOptions> {
46
+ enabled: boolean;
47
+ /**
48
+ * Vite environments to enable DevTools for. Defaults to all environments.
49
+ */
50
+ environments?: string[];
51
+ /**
52
+ * Disable client authentication.
53
+ *
54
+ * Beware that if you disable client authentication,
55
+ * any browsers can connect to the devtools and access to your server and filesystem.
56
+ * (including other devices, if you open server `host` option to LAN or WAN)
57
+ *
58
+ * @default true
59
+ */
60
+ clientAuth?: boolean;
61
+ /**
62
+ * Pre-configured auth tokens that are automatically trusted.
63
+ *
64
+ * Clients connecting with an auth token matching one of these
65
+ * will be auto-approved without a terminal prompt.
66
+ */
67
+ clientAuthTokens?: string[];
68
+ /**
69
+ * Origins allowed to open the DevTools WebSocket connection, in addition to the built-in
70
+ * loopback allowlist (`localhost`, `127.0.0.1`, etc).
71
+ *
72
+ * The loopback check is a plain string match against the `Origin` header, not a DNS/hosts-file
73
+ * resolution — a custom dev hostname that resolves to loopback via `/etc/hosts` or a local DNS
74
+ * override (e.g. `dev-my-app.example.com`) is invisible to it and gets rejected. List such
75
+ * hostnames here explicitly.
76
+ */
77
+ allowedOrigins?: string[];
78
+ }
79
+ interface ResolvedDevToolsConfig {
80
+ config: Omit<DevToolsConfig, 'enabled'> & {
81
+ host: string;
82
+ };
83
+ enabled: boolean;
84
+ }
85
+ //#endregion
86
+ //#region src/types/alias.d.ts
87
+ interface Alias {
88
+ find: string | RegExp;
89
+ replacement: string;
90
+ /**
91
+ * Instructs the plugin to use an alternative resolving algorithm,
92
+ * rather than the Rollup's resolver.
93
+ * @default null
94
+ * @deprecated Use a custom plugin with resolveId hook and `enforce: 'pre'` instead
95
+ */
96
+ customResolver?: ResolverFunction | ResolverObject | null;
97
+ }
98
+ type MapToFunction<T> = T extends Function ? T : never;
99
+ type ResolverFunction = MapToFunction<FunctionPluginHooks['resolveId']>;
100
+ interface ResolverObject {
101
+ buildStart?: FunctionPluginHooks['buildStart'];
102
+ resolveId: ResolverFunction;
103
+ }
104
+ /**
105
+ * Specifies an `Object`, or an `Array` of `Object`,
106
+ * which defines aliases used to replace values in `import` or `require` statements.
107
+ * With either format, the order of the entries is important,
108
+ * in that the first defined rules are applied first.
109
+ *
110
+ * This is passed to \@rollup/plugin-alias as the "entries" field
111
+ * https://github.com/rollup/plugins/tree/master/packages/alias#entries
112
+ */
113
+ type AliasOptions = readonly Alias[] | {
114
+ [find: string]: string;
115
+ };
116
+ //#endregion
117
+ //#region src/types/anymatch.d.ts
118
+ type AnymatchFn = (testString: string) => boolean;
119
+ type AnymatchPattern = string | RegExp | AnymatchFn;
120
+ type AnymatchMatcher = AnymatchPattern | AnymatchPattern[];
121
+ //#endregion
122
+ //#region src/types/chokidar.d.ts
123
+ declare class FSWatcher extends EventEmitter implements fs.FSWatcher {
124
+ options: WatchOptions;
125
+ /**
126
+ * Constructs a new FSWatcher instance with optional WatchOptions parameter.
127
+ */
128
+ constructor(options?: WatchOptions);
129
+ /**
130
+ * When called, requests that the Node.js event loop not exit so long as the fs.FSWatcher is active.
131
+ * Calling watcher.ref() multiple times will have no effect.
132
+ */
133
+ ref(): this;
134
+ /**
135
+ * When called, the active fs.FSWatcher object will not require the Node.js event loop to remain active.
136
+ * If there is no other activity keeping the event loop running, the process may exit before the fs.FSWatcher object's callback is invoked.
137
+ * Calling watcher.unref() multiple times will have no effect.
138
+ */
139
+ unref(): this;
140
+ /**
141
+ * Add files, directories, or glob patterns for tracking. Takes an array of strings or just one
142
+ * string.
143
+ */
144
+ add(paths: string | ReadonlyArray<string>): this;
145
+ /**
146
+ * Stop watching files, directories, or glob patterns. Takes an array of strings or just one
147
+ * string.
148
+ */
149
+ unwatch(paths: string | ReadonlyArray<string>): this;
150
+ /**
151
+ * Returns an object representing all the paths on the file system being watched by this
152
+ * `FSWatcher` instance. The object's keys are all the directories (using absolute paths unless
153
+ * the `cwd` option was used), and the values are arrays of the names of the items contained in
154
+ * each directory.
155
+ */
156
+ getWatched(): {
157
+ [directory: string]: string[];
158
+ };
159
+ /**
160
+ * Removes all listeners from watched files.
161
+ */
162
+ close(): Promise<void>;
163
+ on(event: 'add' | 'addDir' | 'change', listener: (path: string, stats?: fs.Stats) => void): this;
164
+ on(event: 'all', listener: (eventName: 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir', path: string, stats?: fs.Stats) => void): this;
165
+ /**
166
+ * Error occurred
167
+ */
168
+ on(event: 'error', listener: (error: Error) => void): this;
169
+ /**
170
+ * Exposes the native Node `fs.FSWatcher events`
171
+ */
172
+ on(event: 'raw', listener: (eventName: string, path: string, details: any) => void): this;
173
+ /**
174
+ * Fires when the initial scan is complete
175
+ */
176
+ on(event: 'ready', listener: () => void): this;
177
+ on(event: 'unlink' | 'unlinkDir', listener: (path: string) => void): this;
178
+ on(event: string, listener: (...args: any[]) => void): this;
179
+ }
180
+ interface WatchOptions {
181
+ /**
182
+ * Indicates whether the process should continue to run as long as files are being watched. If
183
+ * set to `false` when using `fsevents` to watch, no more events will be emitted after `ready`,
184
+ * even if the process continues to run.
185
+ */
186
+ persistent?: boolean;
187
+ /**
188
+ * ([anymatch](https://github.com/micromatch/anymatch)-compatible definition) Defines files/paths to
189
+ * be ignored. The whole relative or absolute path is tested, not just filename. If a function
190
+ * with two arguments is provided, it gets called twice per path - once with a single argument
191
+ * (the path), second time with two arguments (the path and the
192
+ * [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path).
193
+ */
194
+ ignored?: AnymatchMatcher;
195
+ /**
196
+ * If set to `false` then `add`/`addDir` events are also emitted for matching paths while
197
+ * instantiating the watching as chokidar discovers these file paths (before the `ready` event).
198
+ */
199
+ ignoreInitial?: boolean;
200
+ /**
201
+ * When `false`, only the symlinks themselves will be watched for changes instead of following
202
+ * the link references and bubbling events through the link's path.
203
+ */
204
+ followSymlinks?: boolean;
205
+ /**
206
+ * The base directory from which watch `paths` are to be derived. Paths emitted with events will
207
+ * be relative to this.
208
+ */
209
+ cwd?: string;
210
+ /**
211
+ * If set to true then the strings passed to .watch() and .add() are treated as literal path
212
+ * names, even if they look like globs.
213
+ *
214
+ * @default false
215
+ */
216
+ disableGlobbing?: boolean;
217
+ /**
218
+ * Whether to use fs.watchFile (backed by polling), or fs.watch. If polling leads to high CPU
219
+ * utilization, consider setting this to `false`. It is typically necessary to **set this to
220
+ * `true` to successfully watch files over a network**, and it may be necessary to successfully
221
+ * watch files in other non-standard situations. Setting to `true` explicitly on OS X overrides
222
+ * the `useFsEvents` default.
223
+ */
224
+ usePolling?: boolean;
225
+ /**
226
+ * Whether to use the `fsevents` watching interface if available. When set to `true` explicitly
227
+ * and `fsevents` is available this supersedes the `usePolling` setting. When set to `false` on
228
+ * OS X, `usePolling: true` becomes the default.
229
+ */
230
+ useFsEvents?: boolean;
231
+ /**
232
+ * If relying upon the [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object that
233
+ * may get passed with `add`, `addDir`, and `change` events, set this to `true` to ensure it is
234
+ * provided even in cases where it wasn't already available from the underlying watch events.
235
+ */
236
+ alwaysStat?: boolean;
237
+ /**
238
+ * If set, limits how many levels of subdirectories will be traversed.
239
+ */
240
+ depth?: number;
241
+ /**
242
+ * Interval of file system polling.
243
+ */
244
+ interval?: number;
245
+ /**
246
+ * Interval of file system polling for binary files. ([see list of binary extensions](https://gi
247
+ * thub.com/sindresorhus/binary-extensions/blob/master/binary-extensions.json))
248
+ */
249
+ binaryInterval?: number;
250
+ /**
251
+ * Indicates whether to watch files that don't have read permissions if possible. If watching
252
+ * fails due to `EPERM` or `EACCES` with this set to `true`, the errors will be suppressed
253
+ * silently.
254
+ */
255
+ ignorePermissionErrors?: boolean;
256
+ /**
257
+ * `true` if `useFsEvents` and `usePolling` are `false`. Automatically filters out artifacts
258
+ * that occur when using editors that use "atomic writes" instead of writing directly to the
259
+ * source file. If a file is re-added within 100 ms of being deleted, Chokidar emits a `change`
260
+ * event rather than `unlink` then `add`. If the default of 100 ms does not work well for you,
261
+ * you can override it by setting `atomic` to a custom value, in milliseconds.
262
+ */
263
+ atomic?: boolean | number;
264
+ /**
265
+ * can be set to an object in order to adjust timing params:
266
+ */
267
+ awaitWriteFinish?: AwaitWriteFinishOptions | boolean;
268
+ }
269
+ interface AwaitWriteFinishOptions {
270
+ /**
271
+ * Amount of time in milliseconds for a file size to remain constant before emitting its event.
272
+ */
273
+ stabilityThreshold?: number;
274
+ /**
275
+ * File size polling interval.
276
+ */
277
+ pollInterval?: number;
278
+ }
279
+ //#endregion
280
+ //#region src/types/connect.d.ts
281
+ declare namespace Connect {
282
+ export type ServerHandle = HandleFunction | http.Server;
283
+ export class IncomingMessage extends http.IncomingMessage {
284
+ originalUrl?: http.IncomingMessage['url'] | undefined;
285
+ }
286
+ export type NextFunction = (err?: any) => void;
287
+ export type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => void;
288
+ export type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
289
+ export type ErrorHandleFunction = (err: any, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
290
+ export type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction;
291
+ export interface ServerStackItem {
292
+ route: string;
293
+ handle: ServerHandle;
294
+ }
295
+ export interface Server extends NodeJS.EventEmitter {
296
+ (req: http.IncomingMessage, res: http.ServerResponse, next?: Function): void;
297
+ route: string;
298
+ stack: ServerStackItem[];
299
+ /**
300
+ * Utilize the given middleware `handle` to the given `route`,
301
+ * defaulting to _/_. This "route" is the mount-point for the
302
+ * middleware, when given a value other than _/_ the middleware
303
+ * is only effective when that segment is present in the request's
304
+ * pathname.
305
+ *
306
+ * For example if we were to mount a function at _/admin_, it would
307
+ * be invoked on _/admin_, and _/admin/settings_, however it would
308
+ * not be invoked for _/_, or _/posts_.
309
+ */
310
+ use(fn: NextHandleFunction): Server;
311
+ use(fn: HandleFunction): Server;
312
+ use(route: string, fn: NextHandleFunction): Server;
313
+ use(route: string, fn: HandleFunction): Server;
314
+ /**
315
+ * Handle server requests, punting them down
316
+ * the middleware stack.
317
+ */
318
+ handle(req: http.IncomingMessage, res: http.ServerResponse, next: Function): void;
319
+ /**
320
+ * Listen for connections.
321
+ *
322
+ * This method takes the same arguments
323
+ * as node's `http.Server#listen()`.
324
+ *
325
+ * HTTP and HTTPS:
326
+ *
327
+ * If you run your application both as HTTP
328
+ * and HTTPS you may wrap them individually,
329
+ * since your Connect "server" is really just
330
+ * a JavaScript `Function`.
331
+ *
332
+ * var connect = require('connect')
333
+ * , http = require('http')
334
+ * , https = require('https');
335
+ *
336
+ * var app = connect();
337
+ *
338
+ * http.createServer(app).listen(80);
339
+ * https.createServer(options, app).listen(443);
340
+ */
341
+ listen(port: number, hostname?: string, backlog?: number, callback?: Function): http.Server;
342
+ listen(port: number, hostname?: string, callback?: Function): http.Server;
343
+ listen(path: string, callback?: Function): http.Server;
344
+ listen(handle: any, listeningListener?: Function): http.Server;
345
+ }
346
+ }
347
+ //#endregion
348
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.23.3_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/index.d.ts
349
+ interface ProxyTargetDetailed {
350
+ host: string;
351
+ port: number;
352
+ protocol?: string;
353
+ hostname?: string;
354
+ socketPath?: string;
355
+ key?: string;
356
+ passphrase?: string;
357
+ pfx?: Buffer | string;
358
+ cert?: string;
359
+ ca?: string;
360
+ ciphers?: string;
361
+ secureProtocol?: string;
362
+ }
363
+ type ProxyType = "ws" | "web";
364
+ type ProxyTarget = ProxyTargetUrl | ProxyTargetDetailed;
365
+ type ProxyTargetUrl = URL | string | {
366
+ port: number;
367
+ host: string;
368
+ protocol?: string;
369
+ };
370
+ type NormalizeProxyTarget<T extends ProxyTargetUrl> = Exclude<T, string> | URL;
371
+ interface ServerOptions$3 {
372
+ /** URL string to be parsed with the url module. */
373
+ target?: ProxyTarget;
374
+ /** URL string to be parsed with the url module or a URL object. */
375
+ forward?: ProxyTargetUrl;
376
+ /** Object to be passed to http(s).request. */
377
+ agent?: any;
378
+ /** Object to be passed to https.createServer(). */
379
+ ssl?: any;
380
+ /** If you want to proxy websockets. */
381
+ ws?: boolean;
382
+ /** Adds x- forward headers. */
383
+ xfwd?: boolean;
384
+ /** Verify SSL certificate. */
385
+ secure?: boolean;
386
+ /** Explicitly specify if we are proxying to another proxy. */
387
+ toProxy?: boolean;
388
+ /** Specify whether you want to prepend the target's path to the proxy path. */
389
+ prependPath?: boolean;
390
+ /** Specify whether you want to ignore the proxy path of the incoming request. */
391
+ ignorePath?: boolean;
392
+ /** Local interface string to bind for outgoing connections. */
393
+ localAddress?: string;
394
+ /** Changes the origin of the host header to the target URL. */
395
+ changeOrigin?: boolean;
396
+ /** specify whether you want to keep letter case of response header key */
397
+ preserveHeaderKeyCase?: boolean;
398
+ /** Basic authentication i.e. 'user:password' to compute an Authorization header. */
399
+ auth?: string;
400
+ /** Rewrites the location hostname on (301 / 302 / 307 / 308) redirects, Default: null. */
401
+ hostRewrite?: string;
402
+ /** Rewrites the location host/ port on (301 / 302 / 307 / 308) redirects based on requested host/ port.Default: false. */
403
+ autoRewrite?: boolean;
404
+ /** Rewrites the location protocol on (301 / 302 / 307 / 308) redirects to 'http' or 'https'.Default: null. */
405
+ protocolRewrite?: string;
406
+ /** rewrites domain of set-cookie headers. */
407
+ cookieDomainRewrite?: false | string | {
408
+ [oldDomain: string]: string;
409
+ };
410
+ /** rewrites path of set-cookie headers. Default: false */
411
+ cookiePathRewrite?: false | string | {
412
+ [oldPath: string]: string;
413
+ };
414
+ /** object with extra headers to be added to target requests. */
415
+ headers?: {
416
+ [header: string]: string | string[] | undefined;
417
+ };
418
+ /** Timeout (in milliseconds) when proxy receives no response from target. Default: 120000 (2 minutes) */
419
+ proxyTimeout?: number;
420
+ /** Timeout (in milliseconds) for incoming requests */
421
+ timeout?: number;
422
+ /** Specify whether you want to follow redirects. Default: false */
423
+ followRedirects?: boolean;
424
+ /** If set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the proxyRes event */
425
+ selfHandleResponse?: boolean;
426
+ /** Buffer */
427
+ buffer?: Stream;
428
+ /** Explicitly set the method type of the ProxyReq */
429
+ method?: string;
430
+ /**
431
+ * Optionally override the trusted CA certificates.
432
+ * This is passed to https.request.
433
+ */
434
+ ca?: string;
435
+ /** Optional fetch implementation to use instead of global fetch, use this to activate fetch-based proxying,
436
+ * for example to proxy HTTP/2 requests
437
+ */
438
+ fetch?: typeof fetch;
439
+ /** Optional configuration object for fetch-based proxy requests.
440
+ * Use this to customize fetch request and response handling.
441
+ * For custom fetch implementations, use the `fetch` property.*/
442
+ fetchOptions?: FetchOptions;
443
+ }
444
+ interface FetchOptions {
445
+ /** Fetch request options */
446
+ requestOptions?: RequestInit;
447
+ /** Called before making the fetch request */
448
+ onBeforeRequest?: (requestOptions: RequestInit, req: http.IncomingMessage, res: http.ServerResponse, options: NormalizedServerOptions) => void | Promise<void>;
449
+ /** Called after receiving the fetch response */
450
+ onAfterResponse?: (response: Response, req: http.IncomingMessage, res: http.ServerResponse, options: NormalizedServerOptions) => void | Promise<void>;
451
+ }
452
+ interface NormalizedServerOptions extends ServerOptions$3 {
453
+ target?: NormalizeProxyTarget<ProxyTarget>;
454
+ forward?: NormalizeProxyTarget<ProxyTargetUrl>;
455
+ }
456
+ type ErrorCallback<TIncomingMessage extends typeof http.IncomingMessage = typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse = typeof http.ServerResponse, TError = Error> = (err: TError, req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse> | net.Socket, target?: ProxyTargetUrl) => void;
457
+ type ProxyServerEventMap<TIncomingMessage extends typeof http.IncomingMessage = typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse = typeof http.ServerResponse, TError = Error> = {
458
+ error: Parameters<ErrorCallback<TIncomingMessage, TServerResponse, TError>>;
459
+ start: [req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse>, target: ProxyTargetUrl];
460
+ open: [socket: net.Socket];
461
+ proxyReq: [proxyReq: http.ClientRequest, req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse>, options: ServerOptions$3, socket: net.Socket];
462
+ proxyRes: [proxyRes: InstanceType<TIncomingMessage>, req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse>];
463
+ proxyReqWs: [proxyReq: http.ClientRequest, req: InstanceType<TIncomingMessage>, socket: net.Socket, options: ServerOptions$3, head: any];
464
+ econnreset: [err: Error, req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse>, target: ProxyTargetUrl];
465
+ end: [req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse>, proxyRes: InstanceType<TIncomingMessage>];
466
+ close: [proxyRes: InstanceType<TIncomingMessage>, proxySocket: net.Socket, proxyHead: any];
467
+ };
468
+ type ProxyMethodArgs<TIncomingMessage extends typeof http.IncomingMessage = typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse = typeof http.ServerResponse, TError = Error> = {
469
+ ws: [req: InstanceType<TIncomingMessage>, socket: any, head: any, ...args: [options?: ServerOptions$3, callback?: ErrorCallback<TIncomingMessage, TServerResponse, TError>] | [callback?: ErrorCallback<TIncomingMessage, TServerResponse, TError>]];
470
+ web: [req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse>, ...args: [options: ServerOptions$3, callback?: ErrorCallback<TIncomingMessage, TServerResponse, TError>] | [callback?: ErrorCallback<TIncomingMessage, TServerResponse, TError>]];
471
+ };
472
+ type PassFunctions<TIncomingMessage extends typeof http.IncomingMessage = typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse = typeof http.ServerResponse, TError = Error> = {
473
+ ws: (req: InstanceType<TIncomingMessage>, socket: net.Socket, options: NormalizedServerOptions, head: Buffer | undefined, server: ProxyServer<TIncomingMessage, TServerResponse, TError>, cb?: ErrorCallback<TIncomingMessage, TServerResponse, TError>) => unknown;
474
+ web: (req: InstanceType<TIncomingMessage>, res: InstanceType<TServerResponse>, options: NormalizedServerOptions, head: Buffer | undefined, server: ProxyServer<TIncomingMessage, TServerResponse, TError>, cb?: ErrorCallback<TIncomingMessage, TServerResponse, TError>) => unknown;
475
+ };
476
+ declare class ProxyServer<TIncomingMessage extends typeof http.IncomingMessage = typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse = typeof http.ServerResponse, TError = Error> extends EventEmitter<ProxyServerEventMap<TIncomingMessage, TServerResponse, TError>> {
477
+ /**
478
+ * Used for proxying WS(S) requests
479
+ * @param req - Client request.
480
+ * @param socket - Client socket.
481
+ * @param head - Client head.
482
+ * @param options - Additional options.
483
+ */
484
+ readonly ws: (...args: ProxyMethodArgs<TIncomingMessage, TServerResponse, TError>["ws"]) => void;
485
+ /**
486
+ * Used for proxying regular HTTP(S) requests
487
+ * @param req - Client request.
488
+ * @param res - Client response.
489
+ * @param options - Additional options.
490
+ */
491
+ readonly web: (...args: ProxyMethodArgs<TIncomingMessage, TServerResponse, TError>["web"]) => void;
492
+ private options;
493
+ private webPasses;
494
+ private wsPasses;
495
+ private _server?;
496
+ /**
497
+ * Creates the proxy server with specified options.
498
+ * @param options - Config object passed to the proxy
499
+ */
500
+ constructor(options?: ServerOptions$3);
501
+ /**
502
+ * Creates the proxy server with specified options.
503
+ * @param options Config object passed to the proxy
504
+ * @returns Proxy object with handlers for `ws` and `web` requests
505
+ */
506
+ static createProxyServer<TIncomingMessage extends typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse, TError = Error>(options?: ServerOptions$3): ProxyServer<TIncomingMessage, TServerResponse, TError>;
507
+ /**
508
+ * Creates the proxy server with specified options.
509
+ * @param options Config object passed to the proxy
510
+ * @returns Proxy object with handlers for `ws` and `web` requests
511
+ */
512
+ static createServer<TIncomingMessage extends typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse, TError = Error>(options?: ServerOptions$3): ProxyServer<TIncomingMessage, TServerResponse, TError>;
513
+ /**
514
+ * Creates the proxy server with specified options.
515
+ * @param options Config object passed to the proxy
516
+ * @returns Proxy object with handlers for `ws` and `web` requests
517
+ */
518
+ static createProxy<TIncomingMessage extends typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse, TError = Error>(options?: ServerOptions$3): ProxyServer<TIncomingMessage, TServerResponse, TError>;
519
+ createRightProxy: <PT extends ProxyType>(type: PT) => Function;
520
+ onError: (err: TError) => void;
521
+ /**
522
+ * A function that wraps the object in a webserver, for your convenience
523
+ * @param port - Port to listen on
524
+ * @param hostname - The hostname to listen on
525
+ */
526
+ listen: (port: number, hostname?: string) => this;
527
+ address: () => string | net.AddressInfo | null | undefined;
528
+ /**
529
+ * A function that closes the inner webserver and stops listening on given port
530
+ */
531
+ close: (cb?: Function) => void;
532
+ before: <PT extends ProxyType>(type: PT, passName: string, cb: PassFunctions<TIncomingMessage, TServerResponse, TError>[PT]) => void;
533
+ after: <PT extends ProxyType>(type: PT, passName: string, cb: PassFunctions<TIncomingMessage, TServerResponse, TError>[PT]) => void;
534
+ }
535
+ //#endregion
536
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.23.3_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.d.ts
537
+ declare function numOpenSockets(): number;
538
+ declare namespace index_d_exports {
539
+ export { ErrorCallback, ProxyServer, ProxyTarget, ProxyTargetUrl, ServerOptions$3 as ServerOptions, createProxyServer as createProxy, createProxyServer, createProxyServer as createServer, ProxyServer as default, numOpenSockets };
540
+ }
541
+ /**
542
+ * Creates the proxy server.
543
+ *
544
+ * Examples:
545
+ *
546
+ * httpProxy.createProxyServer({ .. }, 8000)
547
+ * // => '{ web: [Function], ws: [Function] ... }'
548
+ *
549
+ * @param {Object} Options Config object passed to the proxy
550
+ *
551
+ * @return {Object} Proxy Proxy object with handlers for `ws` and `web` requests
552
+ *
553
+ * @api public
554
+ */
555
+ declare function createProxyServer<TIncomingMessage extends typeof http.IncomingMessage = typeof http.IncomingMessage, TServerResponse extends typeof http.ServerResponse = typeof http.ServerResponse, TError = Error>(options?: ServerOptions$3): ProxyServer<TIncomingMessage, TServerResponse, TError>;
556
+ //#endregion
557
+ //#region src/node/server/middlewares/proxy.d.ts
558
+ interface ProxyOptions extends ServerOptions$3 {
559
+ /**
560
+ * rewrite path
561
+ */
562
+ rewrite?: (path: string) => string;
563
+ /**
564
+ * configure the proxy server (e.g. listen to events)
565
+ */
566
+ configure?: (proxy: ProxyServer, options: ProxyOptions) => void;
567
+ /**
568
+ * webpack-dev-server style bypass function
569
+ */
570
+ bypass?: (req: http.IncomingMessage, res: http.ServerResponse | undefined, options: ProxyOptions) => void | null | undefined | false | string | Promise<void | null | undefined | boolean | string>;
571
+ /**
572
+ * rewrite the Origin header of a WebSocket request to match the target
573
+ *
574
+ * **Exercise caution as rewriting the Origin can leave the proxying open to [CSRF attacks](https://owasp.org/www-community/attacks/csrf).**
575
+ */
576
+ rewriteWsOrigin?: boolean | undefined;
577
+ }
578
+ //#endregion
579
+ //#region src/node/logger.d.ts
580
+ type LogType = "error" | "warn" | "info";
581
+ type LogLevel = LogType | "silent";
582
+ interface Logger {
583
+ info(msg: string, options?: LogOptions): void;
584
+ warn(msg: string, options?: LogOptions): void;
585
+ warnOnce(msg: string, options?: LogOptions): void;
586
+ error(msg: string, options?: LogErrorOptions): void;
587
+ clearScreen(type: LogType): void;
588
+ hasErrorLogged(error: Error | RollupError): boolean;
589
+ hasWarned: boolean;
590
+ }
591
+ interface LogOptions {
592
+ clear?: boolean;
593
+ timestamp?: boolean;
594
+ environment?: string;
595
+ }
596
+ interface LogErrorOptions extends LogOptions {
597
+ error?: Error | RollupError | null;
598
+ }
599
+ interface LoggerOptions {
600
+ prefix?: string;
601
+ allowClearScreen?: boolean;
602
+ customLogger?: Logger;
603
+ console?: Console;
604
+ }
605
+ export declare function createLogger(level?: LogLevel, options?: LoggerOptions): Logger;
606
+ //#endregion
607
+ //#region src/node/http.d.ts
608
+ interface CommonServerOptions {
609
+ /**
610
+ * Specify server port. Note if the port is already being used, Vite will
611
+ * automatically try the next available port so this may not be the actual
612
+ * port the server ends up listening on.
613
+ */
614
+ port?: number;
615
+ /**
616
+ * If enabled, vite will exit if specified port is already in use
617
+ */
618
+ strictPort?: boolean;
619
+ /**
620
+ * Specify which IP addresses the server should listen on.
621
+ * Set to 0.0.0.0 to listen on all addresses, including LAN and public addresses.
622
+ */
623
+ host?: string | boolean;
624
+ /**
625
+ * The hostnames that Vite is allowed to respond to.
626
+ * `localhost` and subdomains under `.localhost` and all IP addresses are allowed by default.
627
+ * When using HTTPS, this check is skipped.
628
+ *
629
+ * If a string starts with `.`, it will allow that hostname without the `.` and all subdomains under the hostname.
630
+ * For example, `.example.com` will allow `example.com`, `foo.example.com`, and `foo.bar.example.com`.
631
+ *
632
+ * If set to `true`, the server is allowed to respond to requests for any hosts.
633
+ * This is not recommended as it will be vulnerable to DNS rebinding attacks.
634
+ */
635
+ allowedHosts?: string[] | true;
636
+ /**
637
+ * Enable TLS + HTTP/2.
638
+ * Note: this downgrades to TLS only when the proxy option is also used.
639
+ */
640
+ https?: HttpsServerOptions;
641
+ /**
642
+ * Open browser window on startup
643
+ */
644
+ open?: boolean | string;
645
+ /**
646
+ * Configure custom proxy rules for the dev server. Expects an object
647
+ * of `{ key: options }` pairs.
648
+ * Uses [`http-proxy-3`](https://github.com/sagemathinc/http-proxy-3).
649
+ * Full options [here](https://github.com/sagemathinc/http-proxy-3#options).
650
+ *
651
+ * Example `vite.config.js`:
652
+ * ``` js
653
+ * module.exports = {
654
+ * proxy: {
655
+ * // string shorthand: /foo -> http://localhost:4567/foo
656
+ * '/foo': 'http://localhost:4567',
657
+ * // with options
658
+ * '/api': {
659
+ * target: 'http://jsonplaceholder.typicode.com',
660
+ * changeOrigin: true,
661
+ * rewrite: path => path.replace(/^\/api/, '')
662
+ * }
663
+ * }
664
+ * }
665
+ * ```
666
+ */
667
+ proxy?: Record<string, string | ProxyOptions>;
668
+ /**
669
+ * Configure CORS for the dev server.
670
+ * Uses https://github.com/expressjs/cors.
671
+ *
672
+ * When enabling this option, **we recommend setting a specific value
673
+ * rather than `true`** to avoid exposing the source code to untrusted origins.
674
+ *
675
+ * Set to `true` to allow all methods from any origin, or configure separately
676
+ * using an object.
677
+ *
678
+ * @default { origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/ }
679
+ */
680
+ cors?: CorsOptions | boolean;
681
+ /**
682
+ * Specify server response headers.
683
+ */
684
+ headers?: OutgoingHttpHeaders;
685
+ }
686
+ /**
687
+ * https://github.com/expressjs/cors#configuration-options
688
+ */
689
+ interface CorsOptions {
690
+ /**
691
+ * Configures the Access-Control-Allow-Origin CORS header.
692
+ *
693
+ * **We recommend setting a specific value rather than
694
+ * `true`** to avoid exposing the source code to untrusted origins.
695
+ */
696
+ origin?: CorsOrigin | ((origin: string | undefined, cb: (err: Error, origins: CorsOrigin) => void) => void);
697
+ methods?: string | string[];
698
+ allowedHeaders?: string | string[];
699
+ exposedHeaders?: string | string[];
700
+ credentials?: boolean;
701
+ maxAge?: number;
702
+ preflightContinue?: boolean;
703
+ optionsSuccessStatus?: number;
704
+ }
705
+ type CorsOrigin = boolean | string | RegExp | (string | RegExp)[];
706
+ //#endregion
707
+ //#region src/shared/forwardConsole.d.ts
708
+ type ForwardConsoleLogLevel = "error" | "warn" | "info" | "log" | "debug" | (string & {});
709
+ interface ForwardConsoleOptions {
710
+ unhandledErrors?: boolean;
711
+ logLevels?: ForwardConsoleLogLevel[];
712
+ }
713
+ interface ResolvedForwardConsoleOptions {
714
+ enabled: boolean;
715
+ unhandledErrors: boolean;
716
+ logLevels: ForwardConsoleLogLevel[];
717
+ }
718
+ //#endregion
719
+ //#region src/node/typeUtils.d.ts
720
+ type RequiredExceptFor<T, K extends keyof T> = Pick<T, K> & Required<Omit<T, K>>;
721
+ //#endregion
722
+ //#region src/node/preview.d.ts
723
+ interface PreviewOptions extends CommonServerOptions {}
724
+ interface ResolvedPreviewOptions extends RequiredExceptFor<PreviewOptions, "host" | "https" | "proxy"> {}
725
+ interface PreviewServer {
726
+ /**
727
+ * The resolved vite config object
728
+ */
729
+ config: ResolvedConfig;
730
+ /**
731
+ * Stop the server.
732
+ */
733
+ close(): Promise<void>;
734
+ /**
735
+ * A connect app instance.
736
+ * - Can be used to attach custom middlewares to the preview server.
737
+ * - Can also be used as the handler function of a custom http server
738
+ * or as a middleware in any connect-style Node.js frameworks
739
+ *
740
+ * https://github.com/senchalabs/connect#use-middleware
741
+ */
742
+ middlewares: Connect.Server;
743
+ /**
744
+ * native Node http server instance
745
+ */
746
+ httpServer: HttpServer;
747
+ /**
748
+ * The resolved urls Vite prints on the CLI (URL-encoded). Returns `null`
749
+ * if the server is not listening on any port.
750
+ */
751
+ resolvedUrls: ResolvedServerUrls | null;
752
+ /**
753
+ * Print server urls
754
+ */
755
+ printUrls(): void;
756
+ /**
757
+ * Bind CLI shortcuts
758
+ */
759
+ bindCLIShortcuts(options?: BindCLIShortcutsOptions<PreviewServer>): void;
760
+ }
761
+ type PreviewServerHook = (this: MinimalPluginContextWithoutEnvironment, server: PreviewServer) => (() => void) | void | Promise<(() => void) | void>;
762
+ /**
763
+ * Starts the Vite server in preview mode, to simulate a production deployment
764
+ */
765
+ export declare function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>;
766
+ //#endregion
767
+ //#region src/node/shortcuts.d.ts
768
+ type BindCLIShortcutsOptions<Server = ViteDevServer | PreviewServer> = {
769
+ /**
770
+ * Print a one-line shortcuts "help" hint to the terminal
771
+ */
772
+ print?: boolean;
773
+ /**
774
+ * Custom shortcuts to run when a key is pressed. These shortcuts take priority
775
+ * over the default shortcuts if they have the same keys (except the `h` key).
776
+ * To disable a default shortcut, define the same key but with `action: undefined`.
777
+ */
778
+ customShortcuts?: CLIShortcut<Server>[];
779
+ };
780
+ type CLIShortcut<Server = ViteDevServer | PreviewServer> = {
781
+ key: string;
782
+ description: string;
783
+ action?(server: Server): void | Promise<void>;
784
+ };
785
+ //#endregion
786
+ //#region src/node/baseEnvironment.d.ts
787
+ declare class PartialEnvironment {
788
+ name: string;
789
+ getTopLevelConfig(): ResolvedConfig;
790
+ config: ResolvedConfig & ResolvedEnvironmentOptions;
791
+ logger: Logger;
792
+ constructor(name: string, topLevelConfig: ResolvedConfig, options?: ResolvedEnvironmentOptions);
793
+ }
794
+ declare class BaseEnvironment extends PartialEnvironment {
795
+ get plugins(): readonly Plugin[];
796
+ constructor(name: string, config: ResolvedConfig, options?: ResolvedEnvironmentOptions);
797
+ }
798
+ /**
799
+ * This class discourages users from inversely checking the `mode`
800
+ * to determine the type of environment, e.g.
801
+ *
802
+ * ```js
803
+ * const isDev = environment.mode !== 'build' // bad
804
+ * const isDev = environment.mode === 'dev' // good
805
+ * ```
806
+ *
807
+ * You should also not check against `"unknown"` specifically. It's
808
+ * a placeholder for more possible environment types.
809
+ */
810
+ declare class UnknownEnvironment extends BaseEnvironment {
811
+ mode: "unknown";
812
+ }
813
+ //#endregion
814
+ //#region src/node/optimizer/scan.d.ts
815
+ declare class ScanEnvironment extends BaseEnvironment {
816
+ mode: "scan";
817
+ get pluginContainer(): EnvironmentPluginContainer;
818
+ init(): Promise<void>;
819
+ }
820
+ //#endregion
821
+ //#region src/node/optimizer/index.d.ts
822
+ type ExportsData = {
823
+ hasModuleSyntax: boolean;
824
+ exports: readonly string[];
825
+ jsxLoader?: boolean;
826
+ };
827
+ interface DepsOptimizer {
828
+ init: () => Promise<void>;
829
+ metadata: DepOptimizationMetadata;
830
+ scanProcessing?: Promise<void>;
831
+ registerMissingImport: (id: string, resolved: string) => OptimizedDepInfo;
832
+ run: () => void;
833
+ isOptimizedDepFile: (id: string) => boolean;
834
+ isOptimizedDepUrl: (url: string) => boolean;
835
+ getOptimizedDepId: (depInfo: OptimizedDepInfo) => string;
836
+ close: () => Promise<void>;
837
+ options: DepOptimizationOptions;
838
+ }
839
+ interface DepOptimizationConfig {
840
+ /**
841
+ * Force optimize listed dependencies (must be resolvable import paths,
842
+ * cannot be globs).
843
+ */
844
+ include?: string[];
845
+ /**
846
+ * Do not optimize these dependencies (must be resolvable import paths,
847
+ * cannot be globs).
848
+ */
849
+ exclude?: string[];
850
+ /**
851
+ * Forces ESM interop when importing these dependencies. Some legacy
852
+ * packages advertise themselves as ESM but use `require` internally
853
+ * @experimental
854
+ */
855
+ needsInterop?: string[];
856
+ /**
857
+ * Options to pass to esbuild during the dep scanning and optimization
858
+ *
859
+ * Certain options are omitted since changing them would not be compatible
860
+ * with Vite's dep optimization.
861
+ *
862
+ * - `external` is also omitted, use Vite's `optimizeDeps.exclude` option
863
+ * - `plugins` are merged with Vite's dep plugin
864
+ *
865
+ * https://esbuild.github.io/api
866
+ *
867
+ * @deprecated Use `rolldownOptions` instead.
868
+ */
869
+ esbuildOptions?: DepsOptimizerEsbuildOptions;
870
+ /**
871
+ * @deprecated Use `rolldownOptions` instead.
872
+ */
873
+ rollupOptions?: Omit<RolldownOptions, "input" | "logLevel" | "output"> & {
874
+ output?: Omit<OutputOptions, "format" | "sourcemap" | "dir" | "banner">;
875
+ };
876
+ /**
877
+ * Options to pass to rolldown during the dep scanning and optimization
878
+ *
879
+ * Certain options are omitted since changing them would not be compatible
880
+ * with Vite's dep optimization.
881
+ *
882
+ * - `plugins` are merged with Vite's dep plugin
883
+ */
884
+ rolldownOptions?: Omit<RolldownOptions, "input" | "logLevel" | "output"> & {
885
+ output?: Omit<OutputOptions, "format" | "sourcemap" | "dir" | "banner">;
886
+ };
887
+ /**
888
+ * List of file extensions that can be optimized. A corresponding esbuild
889
+ * plugin must exist to handle the specific extension.
890
+ *
891
+ * By default, Vite can optimize `.mjs`, `.js`, `.ts`, and `.mts` files. This option
892
+ * allows specifying additional extensions.
893
+ *
894
+ * @experimental
895
+ */
896
+ extensions?: string[];
897
+ /**
898
+ * Deps optimization during build was removed in Vite 5.1. This option is
899
+ * now redundant and will be removed in a future version. Switch to using
900
+ * `optimizeDeps.noDiscovery` and an empty or undefined `optimizeDeps.include`.
901
+ * true or 'dev' disables the optimizer, false or 'build' leaves it enabled.
902
+ * @default 'build'
903
+ * @deprecated
904
+ * @experimental
905
+ */
906
+ disabled?: boolean | "build" | "dev";
907
+ /**
908
+ * Automatic dependency discovery. When `noDiscovery` is true, only dependencies
909
+ * listed in `include` will be optimized. The scanner isn't run for cold start
910
+ * in this case. CJS-only dependencies must be present in `include` during dev.
911
+ * @default false
912
+ */
913
+ noDiscovery?: boolean;
914
+ /**
915
+ * When enabled, it will hold the first optimized deps results until all static
916
+ * imports are crawled on cold start. This avoids the need for full-page reloads
917
+ * when new dependencies are discovered and they trigger the generation of new
918
+ * common chunks. If all dependencies are found by the scanner plus the explicitly
919
+ * defined ones in `include`, it is better to disable this option to let the
920
+ * browser process more requests in parallel.
921
+ * @default true
922
+ * @experimental
923
+ */
924
+ holdUntilCrawlEnd?: boolean;
925
+ /**
926
+ * When enabled, Vite will not throw an error when an outdated optimized
927
+ * dependency is requested. Enabling this option may cause a single module
928
+ * to have a multiple reference.
929
+ * @default false
930
+ * @experimental
931
+ */
932
+ ignoreOutdatedRequests?: boolean;
933
+ }
934
+ type DepOptimizationOptions = DepOptimizationConfig & {
935
+ /**
936
+ * By default, Vite will crawl your `index.html` to detect dependencies that
937
+ * need to be pre-bundled. If `build.rolldownOptions.input` is specified, Vite
938
+ * will crawl those entry points instead.
939
+ *
940
+ * If neither of these fit your needs, you can specify custom entries using
941
+ * this option - the value should be a tinyglobby pattern or array of patterns
942
+ * (https://github.com/SuperchupuDev/tinyglobby) that are relative from
943
+ * vite project root. This will overwrite default entries inference.
944
+ */
945
+ entries?: string | string[];
946
+ /**
947
+ * Force dep pre-optimization regardless of whether deps have changed.
948
+ * @experimental
949
+ */
950
+ force?: boolean;
951
+ };
952
+ interface OptimizedDepInfo {
953
+ id: string;
954
+ file: string;
955
+ src?: string;
956
+ needsInterop?: boolean;
957
+ browserHash?: string;
958
+ fileHash?: string;
959
+ /**
960
+ * During optimization, ids can still be resolved to their final location
961
+ * but the bundles may not yet be saved to disk
962
+ */
963
+ processing?: Promise<void>;
964
+ /**
965
+ * ExportData cache, discovered deps will parse the src entry to get exports
966
+ * data used both to define if interop is needed and when pre-bundling
967
+ */
968
+ exportsData?: Promise<ExportsData>;
969
+ isDynamicEntry?: boolean;
970
+ }
971
+ interface DepOptimizationMetadata {
972
+ /**
973
+ * The main hash is determined by user config and dependency lockfiles.
974
+ * This is checked on server startup to avoid unnecessary re-bundles.
975
+ */
976
+ hash: string;
977
+ /**
978
+ * This hash is determined by dependency lockfiles.
979
+ * This is checked on server startup to avoid unnecessary re-bundles.
980
+ */
981
+ lockfileHash: string;
982
+ /**
983
+ * This hash is determined by user config.
984
+ * This is checked on server startup to avoid unnecessary re-bundles.
985
+ */
986
+ configHash: string;
987
+ /**
988
+ * The browser hash is determined by the main hash plus additional dependencies
989
+ * discovered at runtime. This is used to invalidate browser requests to
990
+ * optimized deps.
991
+ */
992
+ browserHash: string;
993
+ /**
994
+ * Metadata for each already optimized dependency
995
+ */
996
+ optimized: Record<string, OptimizedDepInfo>;
997
+ /**
998
+ * Metadata for non-entry optimized chunks and dynamic imports
999
+ */
1000
+ chunks: Record<string, OptimizedDepInfo>;
1001
+ /**
1002
+ * Metadata for each newly discovered dependency after processing
1003
+ */
1004
+ discovered: Record<string, OptimizedDepInfo>;
1005
+ /**
1006
+ * OptimizedDepInfo list
1007
+ */
1008
+ depInfoList: OptimizedDepInfo[];
1009
+ }
1010
+ /**
1011
+ * Scan and optimize dependencies within a project.
1012
+ * Used by Vite CLI when running `vite optimize`.
1013
+ *
1014
+ * @deprecated the optimization process runs automatically and does not need to be called
1015
+ */
1016
+ export declare function optimizeDeps(config: ResolvedConfig, force?: boolean | undefined, asCommand?: boolean): Promise<DepOptimizationMetadata>;
1017
+ //#endregion
1018
+ //#region src/node/server/transformRequest.d.ts
1019
+ interface TransformResult {
1020
+ code: string;
1021
+ map: SourceMap | {
1022
+ mappings: "";
1023
+ } | null;
1024
+ ssr?: boolean;
1025
+ etag?: string;
1026
+ deps?: string[];
1027
+ dynamicDeps?: string[];
1028
+ }
1029
+ interface TransformOptions {
1030
+ /**
1031
+ * @deprecated inferred from environment
1032
+ */
1033
+ ssr?: boolean;
1034
+ }
1035
+ //#endregion
1036
+ //#region src/node/server/moduleGraph.d.ts
1037
+ declare class EnvironmentModuleNode {
1038
+ environment: string;
1039
+ /**
1040
+ * Public served url path, starts with /
1041
+ */
1042
+ url: string;
1043
+ /**
1044
+ * Resolved file system path + query
1045
+ */
1046
+ id: string | null;
1047
+ file: string | null;
1048
+ type: "js" | "css" | "asset";
1049
+ info?: ModuleInfo;
1050
+ meta?: Record<string, any>;
1051
+ importers: Set<EnvironmentModuleNode>;
1052
+ importedModules: Set<EnvironmentModuleNode>;
1053
+ acceptedHmrDeps: Set<EnvironmentModuleNode>;
1054
+ acceptedHmrExports: Set<string> | null;
1055
+ importedBindings: Map<string, Set<string>> | null;
1056
+ isSelfAccepting?: boolean;
1057
+ transformResult: TransformResult | null;
1058
+ ssrModule: Record<string, any> | null;
1059
+ ssrError: Error | null;
1060
+ lastHMRTimestamp: number;
1061
+ lastInvalidationTimestamp: number;
1062
+ /**
1063
+ * @param setIsSelfAccepting - set `false` to set `isSelfAccepting` later. e.g. #7870
1064
+ */
1065
+ constructor(url: string, environment: string, setIsSelfAccepting?: boolean);
1066
+ }
1067
+ type ResolvedUrl = [url: string, resolvedId: string, meta: object | null | undefined];
1068
+ declare class EnvironmentModuleGraph {
1069
+ environment: string;
1070
+ urlToModuleMap: Map<string, EnvironmentModuleNode>;
1071
+ idToModuleMap: Map<string, EnvironmentModuleNode>;
1072
+ etagToModuleMap: Map<string, EnvironmentModuleNode>;
1073
+ fileToModulesMap: Map<string, Set<EnvironmentModuleNode>>;
1074
+ constructor(environment: string, resolveId: (url: string) => Promise<PartialResolvedId | null>);
1075
+ getModuleByUrl(rawUrl: string): Promise<EnvironmentModuleNode | undefined>;
1076
+ getModuleById(id: string): EnvironmentModuleNode | undefined;
1077
+ getModulesByFile(file: string): Set<EnvironmentModuleNode> | undefined;
1078
+ onFileChange(file: string): void;
1079
+ onFileDelete(file: string): void;
1080
+ invalidateModule(mod: EnvironmentModuleNode, seen?: Set<EnvironmentModuleNode>, timestamp?: number, isHmr?: boolean, softInvalidate?: boolean): void;
1081
+ invalidateAll(): void;
1082
+ /**
1083
+ * Update the module graph based on a module's updated imports information
1084
+ * If there are dependencies that no longer have any importers, they are
1085
+ * returned as a Set.
1086
+ *
1087
+ * @param staticImportedUrls Subset of `importedModules` where they're statically imported in code.
1088
+ * This is only used for soft invalidations so `undefined` is fine but may cause more runtime processing.
1089
+ */
1090
+ updateModuleInfo(mod: EnvironmentModuleNode, importedModules: Set<string | EnvironmentModuleNode>, importedBindings: Map<string, Set<string>> | null, acceptedModules: Set<string | EnvironmentModuleNode>, acceptedExports: Set<string> | null, isSelfAccepting: boolean, staticImportedUrls?: Set<string>): Promise<Set<EnvironmentModuleNode> | undefined>;
1091
+ ensureEntryFromUrl(rawUrl: string, setIsSelfAccepting?: boolean): Promise<EnvironmentModuleNode>;
1092
+ createFileOnlyEntry(file: string): EnvironmentModuleNode;
1093
+ resolveUrl(url: string): Promise<ResolvedUrl>;
1094
+ updateModuleTransformResult(mod: EnvironmentModuleNode, result: TransformResult | null): void;
1095
+ getModuleByEtag(etag: string): EnvironmentModuleNode | undefined;
1096
+ }
1097
+ //#endregion
1098
+ //#region src/node/server/mixedModuleGraph.d.ts
1099
+ declare class ModuleNode {
1100
+ _moduleGraph: ModuleGraph;
1101
+ _clientModule: EnvironmentModuleNode | undefined;
1102
+ _ssrModule: EnvironmentModuleNode | undefined;
1103
+ constructor(moduleGraph: ModuleGraph, clientModule?: EnvironmentModuleNode, ssrModule?: EnvironmentModuleNode);
1104
+ _get<T extends keyof EnvironmentModuleNode>(prop: T): EnvironmentModuleNode[T];
1105
+ _set<T extends keyof EnvironmentModuleNode>(prop: T, value: EnvironmentModuleNode[T]): void;
1106
+ _wrapModuleSet(prop: ModuleSetNames, module: EnvironmentModuleNode | undefined): Set<ModuleNode>;
1107
+ _getModuleSetUnion(prop: "importedModules" | "importers"): Set<ModuleNode>;
1108
+ _getModuleInfoUnion(prop: "info"): ModuleInfo | undefined;
1109
+ _getModuleObjectUnion(prop: "meta"): Record<string, any> | undefined;
1110
+ get url(): string;
1111
+ set url(value: string);
1112
+ get id(): string | null;
1113
+ set id(value: string | null);
1114
+ get file(): string | null;
1115
+ set file(value: string | null);
1116
+ get type(): "js" | "css" | "asset";
1117
+ get info(): ModuleInfo | undefined;
1118
+ get meta(): Record<string, any> | undefined;
1119
+ get importers(): Set<ModuleNode>;
1120
+ get clientImportedModules(): Set<ModuleNode>;
1121
+ get ssrImportedModules(): Set<ModuleNode>;
1122
+ get importedModules(): Set<ModuleNode>;
1123
+ get acceptedHmrDeps(): Set<ModuleNode>;
1124
+ get acceptedHmrExports(): Set<string> | null;
1125
+ get importedBindings(): Map<string, Set<string>> | null;
1126
+ get isSelfAccepting(): boolean | undefined;
1127
+ get transformResult(): TransformResult | null;
1128
+ set transformResult(value: TransformResult | null);
1129
+ get ssrTransformResult(): TransformResult | null;
1130
+ set ssrTransformResult(value: TransformResult | null);
1131
+ get ssrModule(): Record<string, any> | null;
1132
+ get ssrError(): Error | null;
1133
+ get lastHMRTimestamp(): number;
1134
+ set lastHMRTimestamp(value: number);
1135
+ get lastInvalidationTimestamp(): number;
1136
+ get invalidationState(): TransformResult | "HARD_INVALIDATED" | undefined;
1137
+ get ssrInvalidationState(): TransformResult | "HARD_INVALIDATED" | undefined;
1138
+ }
1139
+ declare class ModuleGraph {
1140
+ urlToModuleMap: Map<string, ModuleNode>;
1141
+ idToModuleMap: Map<string, ModuleNode>;
1142
+ etagToModuleMap: Map<string, ModuleNode>;
1143
+ fileToModulesMap: Map<string, Set<ModuleNode>>;
1144
+ private moduleNodeCache;
1145
+ constructor(moduleGraphs: {
1146
+ client: () => EnvironmentModuleGraph;
1147
+ ssr: () => EnvironmentModuleGraph;
1148
+ });
1149
+ getModuleById(id: string): ModuleNode | undefined;
1150
+ getModuleByUrl(url: string, _ssr?: boolean): Promise<ModuleNode | undefined>;
1151
+ getModulesByFile(file: string): Set<ModuleNode> | undefined;
1152
+ onFileChange(file: string): void;
1153
+ onFileDelete(file: string): void;
1154
+ invalidateModule(mod: ModuleNode, seen?: Set<ModuleNode>, timestamp?: number, isHmr?: boolean, softInvalidate?: boolean): void;
1155
+ invalidateAll(): void;
1156
+ ensureEntryFromUrl(rawUrl: string, ssr?: boolean, setIsSelfAccepting?: boolean): Promise<ModuleNode>;
1157
+ createFileOnlyEntry(file: string): ModuleNode;
1158
+ resolveUrl(url: string, ssr?: boolean): Promise<ResolvedUrl>;
1159
+ updateModuleTransformResult(mod: ModuleNode, result: TransformResult | null, ssr?: boolean): void;
1160
+ getModuleByEtag(etag: string): ModuleNode | undefined;
1161
+ getBackwardCompatibleBrowserModuleNode(clientModule: EnvironmentModuleNode): ModuleNode;
1162
+ getBackwardCompatibleServerModuleNode(ssrModule: EnvironmentModuleNode): ModuleNode;
1163
+ getBackwardCompatibleModuleNode(mod: EnvironmentModuleNode): ModuleNode;
1164
+ getBackwardCompatibleModuleNodeDual(clientModule?: EnvironmentModuleNode, ssrModule?: EnvironmentModuleNode): ModuleNode;
1165
+ }
1166
+ type ModuleSetNames = "acceptedHmrDeps" | "importedModules";
1167
+ //#endregion
1168
+ //#region src/node/server/hmr.d.ts
1169
+ interface WsOptions {
1170
+ protocol?: string;
1171
+ host?: string;
1172
+ port?: number;
1173
+ clientPort?: number;
1174
+ path?: string;
1175
+ timeout?: number;
1176
+ server?: HttpServer;
1177
+ }
1178
+ interface HmrOptions {
1179
+ /**
1180
+ * @deprecated Use `server.ws.protocol` instead.
1181
+ */
1182
+ protocol?: string;
1183
+ /**
1184
+ * @deprecated Use `server.ws.host` instead.
1185
+ */
1186
+ host?: string;
1187
+ /**
1188
+ * @deprecated Use `server.ws.port` instead.
1189
+ */
1190
+ port?: number;
1191
+ /**
1192
+ * @deprecated Use `server.ws.clientPort` instead.
1193
+ */
1194
+ clientPort?: number;
1195
+ /**
1196
+ * @deprecated Use `server.ws.path` instead.
1197
+ */
1198
+ path?: string;
1199
+ /**
1200
+ * @deprecated Use `server.ws.timeout` instead.
1201
+ */
1202
+ timeout?: number;
1203
+ overlay?: boolean;
1204
+ /**
1205
+ * @deprecated Use `server.ws.server` instead.
1206
+ */
1207
+ server?: HttpServer;
1208
+ }
1209
+ interface HotUpdateOptions {
1210
+ type: "create" | "update" | "delete";
1211
+ file: string;
1212
+ timestamp: number;
1213
+ modules: Array<EnvironmentModuleNode>;
1214
+ read: () => string | Promise<string>;
1215
+ server: ViteDevServer;
1216
+ }
1217
+ interface HmrContext {
1218
+ file: string;
1219
+ timestamp: number;
1220
+ modules: Array<ModuleNode>;
1221
+ read: () => string | Promise<string>;
1222
+ server: ViteDevServer;
1223
+ }
1224
+ interface HotChannelClient {
1225
+ send(payload: hmrPayload_HotPayload): void;
1226
+ }
1227
+ type HotChannelListener<T extends string = string> = (data: InferCustomEventPayload<T>, client: HotChannelClient) => void;
1228
+ interface HotChannel<Api = any> {
1229
+ /**
1230
+ * When true, the fs access check is skipped in fetchModule.
1231
+ * Set this for transports that is not exposed over the network.
1232
+ */
1233
+ skipFsCheck?: boolean;
1234
+ /**
1235
+ * Broadcast events to all clients
1236
+ */
1237
+ send?(payload: hmrPayload_HotPayload): void;
1238
+ /**
1239
+ * Handle custom event emitted by `import.meta.hot.send`
1240
+ */
1241
+ on?<T extends string>(event: T, listener: HotChannelListener<T>): void;
1242
+ on?(event: "connection", listener: () => void): void;
1243
+ /**
1244
+ * Unregister event listener
1245
+ */
1246
+ off?(event: string, listener: Function): void;
1247
+ /**
1248
+ * Start listening for messages
1249
+ */
1250
+ listen?(): void;
1251
+ /**
1252
+ * Disconnect all clients, called when server is closed or restarted.
1253
+ */
1254
+ close?(): Promise<unknown> | void;
1255
+ api?: Api;
1256
+ }
1257
+ interface NormalizedHotChannelClient {
1258
+ /**
1259
+ * Send event to the client
1260
+ */
1261
+ send(payload: hmrPayload_HotPayload): void;
1262
+ /**
1263
+ * Send custom event
1264
+ */
1265
+ send(event: string, payload?: hmrPayload_CustomPayload["data"]): void;
1266
+ }
1267
+ interface NormalizedHotChannel<Api = any> {
1268
+ /**
1269
+ * Broadcast events to all clients
1270
+ */
1271
+ send(payload: hmrPayload_HotPayload): void;
1272
+ /**
1273
+ * Send custom event
1274
+ */
1275
+ send<T extends string>(event: T, payload?: InferCustomEventPayload<T>): void;
1276
+ /**
1277
+ * Handle custom event emitted by `import.meta.hot.send`
1278
+ */
1279
+ on<T extends string>(event: T, listener: (data: InferCustomEventPayload<T>, client: NormalizedHotChannelClient) => void): void;
1280
+ /**
1281
+ * @deprecated use `vite:client:connect` event instead
1282
+ */
1283
+ on(event: "connection", listener: () => void): void;
1284
+ /**
1285
+ * Unregister event listener
1286
+ */
1287
+ off(event: string, listener: Function): void;
1288
+ handleInvoke(payload: hmrPayload_HotPayload): Promise<{
1289
+ result: any;
1290
+ } | {
1291
+ error: any;
1292
+ }>;
1293
+ /**
1294
+ * Start listening for messages
1295
+ */
1296
+ listen(): void;
1297
+ /**
1298
+ * Disconnect all clients, called when server is closed or restarted.
1299
+ */
1300
+ close(): Promise<unknown> | void;
1301
+ api?: Api;
1302
+ }
1303
+ type ServerHotChannelApi = {
1304
+ innerEmitter: EventEmitter;
1305
+ outsideEmitter: EventEmitter;
1306
+ };
1307
+ type ServerHotChannel = HotChannel<ServerHotChannelApi>;
1308
+ type NormalizedServerHotChannel = NormalizedHotChannel<ServerHotChannelApi>;
1309
+ export declare function createServerHotChannel(): ServerHotChannel;
1310
+ //#endregion
1311
+ //#region src/types/ws.d.ts
1312
+ // WebSocket socket.
1313
+ declare class WebSocket extends EventEmitter {
1314
+ /** The connection is not yet open. */
1315
+ static readonly CONNECTING: 0;
1316
+ /** The connection is open and ready to communicate. */
1317
+ static readonly OPEN: 1;
1318
+ /** The connection is in the process of closing. */
1319
+ static readonly CLOSING: 2;
1320
+ /** The connection is closed. */
1321
+ static readonly CLOSED: 3;
1322
+ binaryType: 'nodebuffer' | 'arraybuffer' | 'fragments';
1323
+ readonly bufferedAmount: number;
1324
+ readonly extensions: string;
1325
+ /** Indicates whether the websocket is paused */
1326
+ readonly isPaused: boolean;
1327
+ readonly protocol: string;
1328
+ /** The current state of the connection */
1329
+ readonly readyState: typeof WebSocket.CONNECTING | typeof WebSocket.OPEN | typeof WebSocket.CLOSING | typeof WebSocket.CLOSED;
1330
+ readonly url: string;
1331
+ /** The connection is not yet open. */
1332
+ readonly CONNECTING: 0;
1333
+ /** The connection is open and ready to communicate. */
1334
+ readonly OPEN: 1;
1335
+ /** The connection is in the process of closing. */
1336
+ readonly CLOSING: 2;
1337
+ /** The connection is closed. */
1338
+ readonly CLOSED: 3;
1339
+ onopen: ((event: WebSocket.Event) => void) | null;
1340
+ onerror: ((event: WebSocket.ErrorEvent) => void) | null;
1341
+ onclose: ((event: WebSocket.CloseEvent) => void) | null;
1342
+ onmessage: ((event: WebSocket.MessageEvent) => void) | null;
1343
+ constructor(address: null);
1344
+ constructor(address: string | url_URL, options?: WebSocket.ClientOptions | ClientRequestArgs);
1345
+ constructor(address: string | url_URL, protocols?: string | string[], options?: WebSocket.ClientOptions | ClientRequestArgs);
1346
+ close(code?: number, data?: string | Buffer): void;
1347
+ ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
1348
+ pong(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
1349
+ send(data: any, cb?: (err?: Error) => void): void;
1350
+ send(data: any, options: {
1351
+ mask?: boolean | undefined;
1352
+ binary?: boolean | undefined;
1353
+ compress?: boolean | undefined;
1354
+ fin?: boolean | undefined;
1355
+ }, cb?: (err?: Error) => void): void;
1356
+ terminate(): void;
1357
+ /**
1358
+ * Pause the websocket causing it to stop emitting events. Some events can still be
1359
+ * emitted after this is called, until all buffered data is consumed. This method
1360
+ * is a noop if the ready state is `CONNECTING` or `CLOSED`.
1361
+ */
1362
+ pause(): void;
1363
+ /**
1364
+ * Make a paused socket resume emitting events. This method is a noop if the ready
1365
+ * state is `CONNECTING` or `CLOSED`.
1366
+ */
1367
+ resume(): void;
1368
+ // HTML5 WebSocket events
1369
+ addEventListener(method: 'message', cb: (event: WebSocket.MessageEvent) => void, options?: WebSocket.EventListenerOptions): void;
1370
+ addEventListener(method: 'close', cb: (event: WebSocket.CloseEvent) => void, options?: WebSocket.EventListenerOptions): void;
1371
+ addEventListener(method: 'error', cb: (event: WebSocket.ErrorEvent) => void, options?: WebSocket.EventListenerOptions): void;
1372
+ addEventListener(method: 'open', cb: (event: WebSocket.Event) => void, options?: WebSocket.EventListenerOptions): void;
1373
+ removeEventListener(method: 'message', cb: (event: WebSocket.MessageEvent) => void): void;
1374
+ removeEventListener(method: 'close', cb: (event: WebSocket.CloseEvent) => void): void;
1375
+ removeEventListener(method: 'error', cb: (event: WebSocket.ErrorEvent) => void): void;
1376
+ removeEventListener(method: 'open', cb: (event: WebSocket.Event) => void): void;
1377
+ // Events
1378
+ on(event: 'close', listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
1379
+ on(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
1380
+ on(event: 'upgrade', listener: (this: WebSocket, request: http.IncomingMessage) => void): this;
1381
+ on(event: 'message', listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
1382
+ on(event: 'open', listener: (this: WebSocket) => void): this;
1383
+ on(event: 'ping' | 'pong', listener: (this: WebSocket, data: Buffer) => void): this;
1384
+ on(event: 'unexpected-response', listener: (this: WebSocket, request: ClientRequest, response: http.IncomingMessage) => void): this;
1385
+ on(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
1386
+ once(event: 'close', listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
1387
+ once(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
1388
+ once(event: 'upgrade', listener: (this: WebSocket, request: http.IncomingMessage) => void): this;
1389
+ once(event: 'message', listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
1390
+ once(event: 'open', listener: (this: WebSocket) => void): this;
1391
+ once(event: 'ping' | 'pong', listener: (this: WebSocket, data: Buffer) => void): this;
1392
+ once(event: 'unexpected-response', listener: (this: WebSocket, request: ClientRequest, response: http.IncomingMessage) => void): this;
1393
+ once(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
1394
+ off(event: 'close', listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
1395
+ off(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
1396
+ off(event: 'upgrade', listener: (this: WebSocket, request: http.IncomingMessage) => void): this;
1397
+ off(event: 'message', listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
1398
+ off(event: 'open', listener: (this: WebSocket) => void): this;
1399
+ off(event: 'ping' | 'pong', listener: (this: WebSocket, data: Buffer) => void): this;
1400
+ off(event: 'unexpected-response', listener: (this: WebSocket, request: ClientRequest, response: http.IncomingMessage) => void): this;
1401
+ off(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
1402
+ addListener(event: 'close', listener: (code: number, reason: Buffer) => void): this;
1403
+ addListener(event: 'error', listener: (err: Error) => void): this;
1404
+ addListener(event: 'upgrade', listener: (request: http.IncomingMessage) => void): this;
1405
+ addListener(event: 'message', listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
1406
+ addListener(event: 'open', listener: () => void): this;
1407
+ addListener(event: 'ping' | 'pong', listener: (data: Buffer) => void): this;
1408
+ addListener(event: 'unexpected-response', listener: (request: ClientRequest, response: http.IncomingMessage) => void): this;
1409
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
1410
+ removeListener(event: 'close', listener: (code: number, reason: Buffer) => void): this;
1411
+ removeListener(event: 'error', listener: (err: Error) => void): this;
1412
+ removeListener(event: 'upgrade', listener: (request: http.IncomingMessage) => void): this;
1413
+ removeListener(event: 'message', listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
1414
+ removeListener(event: 'open', listener: () => void): this;
1415
+ removeListener(event: 'ping' | 'pong', listener: (data: Buffer) => void): this;
1416
+ removeListener(event: 'unexpected-response', listener: (request: ClientRequest, response: http.IncomingMessage) => void): this;
1417
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
1418
+ }
1419
+ declare const WebSocketAlias: typeof WebSocket;
1420
+ interface WebSocketAlias extends WebSocket {}
1421
+ declare namespace WebSocket {
1422
+ /**
1423
+ * Data represents the raw message payload received over the WebSocket.
1424
+ */
1425
+ type RawData = Buffer | ArrayBuffer | Buffer[];
1426
+ /**
1427
+ * Data represents the message payload received over the WebSocket.
1428
+ */
1429
+ type Data = string | Buffer | ArrayBuffer | Buffer[];
1430
+ /**
1431
+ * CertMeta represents the accepted types for certificate & key data.
1432
+ */
1433
+ type CertMeta = string | string[] | Buffer | Buffer[];
1434
+ /**
1435
+ * VerifyClientCallbackSync is a synchronous callback used to inspect the
1436
+ * incoming message. The return value (boolean) of the function determines
1437
+ * whether or not to accept the handshake.
1438
+ */
1439
+ type VerifyClientCallbackSync = (info: {
1440
+ origin: string;
1441
+ secure: boolean;
1442
+ req: http.IncomingMessage;
1443
+ }) => boolean;
1444
+ /**
1445
+ * VerifyClientCallbackAsync is an asynchronous callback used to inspect the
1446
+ * incoming message. The return value (boolean) of the function determines
1447
+ * whether or not to accept the handshake.
1448
+ */
1449
+ type VerifyClientCallbackAsync = (info: {
1450
+ origin: string;
1451
+ secure: boolean;
1452
+ req: http.IncomingMessage;
1453
+ }, callback: (res: boolean, code?: number, message?: string, headers?: OutgoingHttpHeaders) => void) => void;
1454
+ interface ClientOptions extends SecureContextOptions {
1455
+ protocol?: string | undefined;
1456
+ followRedirects?: boolean | undefined;
1457
+ generateMask?(mask: Buffer): void;
1458
+ handshakeTimeout?: number | undefined;
1459
+ maxRedirects?: number | undefined;
1460
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
1461
+ localAddress?: string | undefined;
1462
+ protocolVersion?: number | undefined;
1463
+ headers?: {
1464
+ [key: string]: string;
1465
+ } | undefined;
1466
+ origin?: string | undefined;
1467
+ agent?: Agent | undefined;
1468
+ host?: string | undefined;
1469
+ family?: number | undefined;
1470
+ checkServerIdentity?(servername: string, cert: CertMeta): boolean;
1471
+ rejectUnauthorized?: boolean | undefined;
1472
+ maxPayload?: number | undefined;
1473
+ skipUTF8Validation?: boolean | undefined;
1474
+ }
1475
+ interface PerMessageDeflateOptions {
1476
+ serverNoContextTakeover?: boolean | undefined;
1477
+ clientNoContextTakeover?: boolean | undefined;
1478
+ serverMaxWindowBits?: number | undefined;
1479
+ clientMaxWindowBits?: number | undefined;
1480
+ zlibDeflateOptions?: {
1481
+ flush?: number | undefined;
1482
+ finishFlush?: number | undefined;
1483
+ chunkSize?: number | undefined;
1484
+ windowBits?: number | undefined;
1485
+ level?: number | undefined;
1486
+ memLevel?: number | undefined;
1487
+ strategy?: number | undefined;
1488
+ dictionary?: Buffer | Buffer[] | DataView | undefined;
1489
+ info?: boolean | undefined;
1490
+ } | undefined;
1491
+ zlibInflateOptions?: ZlibOptions | undefined;
1492
+ threshold?: number | undefined;
1493
+ concurrencyLimit?: number | undefined;
1494
+ }
1495
+ interface Event {
1496
+ type: string;
1497
+ target: WebSocket;
1498
+ }
1499
+ interface ErrorEvent {
1500
+ error: any;
1501
+ message: string;
1502
+ type: string;
1503
+ target: WebSocket;
1504
+ }
1505
+ interface CloseEvent {
1506
+ wasClean: boolean;
1507
+ code: number;
1508
+ reason: string;
1509
+ type: string;
1510
+ target: WebSocket;
1511
+ }
1512
+ interface MessageEvent {
1513
+ data: Data;
1514
+ type: string;
1515
+ target: WebSocket;
1516
+ }
1517
+ interface EventListenerOptions {
1518
+ once?: boolean | undefined;
1519
+ }
1520
+ interface ServerOptions {
1521
+ host?: string | undefined;
1522
+ port?: number | undefined;
1523
+ backlog?: number | undefined;
1524
+ server?: http.Server | HttpsServer | undefined;
1525
+ verifyClient?: VerifyClientCallbackAsync | VerifyClientCallbackSync | undefined;
1526
+ handleProtocols?: (protocols: Set<string>, request: http.IncomingMessage) => string | false;
1527
+ path?: string | undefined;
1528
+ noServer?: boolean | undefined;
1529
+ clientTracking?: boolean | undefined;
1530
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
1531
+ maxPayload?: number | undefined;
1532
+ skipUTF8Validation?: boolean | undefined;
1533
+ WebSocket?: typeof WebSocket.WebSocket | undefined;
1534
+ }
1535
+ interface AddressInfo {
1536
+ address: string;
1537
+ family: string;
1538
+ port: number;
1539
+ }
1540
+ // WebSocket Server
1541
+ class Server<T extends WebSocket = WebSocket> extends EventEmitter {
1542
+ options: ServerOptions;
1543
+ path: string;
1544
+ clients: Set<T>;
1545
+ constructor(options?: ServerOptions, callback?: () => void);
1546
+ address(): AddressInfo | string;
1547
+ close(cb?: (err?: Error) => void): void;
1548
+ handleUpgrade(request: http.IncomingMessage, socket: Duplex, upgradeHead: Buffer, callback: (client: T, request: http.IncomingMessage) => void): void;
1549
+ shouldHandle(request: http.IncomingMessage): boolean | Promise<boolean>;
1550
+ // Events
1551
+ on(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
1552
+ on(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
1553
+ on(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
1554
+ on(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
1555
+ on(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
1556
+ once(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
1557
+ once(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
1558
+ once(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
1559
+ once(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
1560
+ once(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
1561
+ off(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
1562
+ off(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
1563
+ off(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
1564
+ off(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
1565
+ off(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
1566
+ addListener(event: 'connection', cb: (client: T, request: http.IncomingMessage) => void): this;
1567
+ addListener(event: 'error', cb: (err: Error) => void): this;
1568
+ addListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
1569
+ addListener(event: 'close' | 'listening', cb: () => void): this;
1570
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
1571
+ removeListener(event: 'connection', cb: (client: T) => void): this;
1572
+ removeListener(event: 'error', cb: (err: Error) => void): this;
1573
+ removeListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
1574
+ removeListener(event: 'close' | 'listening', cb: () => void): this;
1575
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
1576
+ }
1577
+ const WebSocketServer: typeof Server;
1578
+ interface WebSocketServer extends Server {}
1579
+ const WebSocket: typeof WebSocketAlias;
1580
+ interface WebSocket extends WebSocketAlias {}
1581
+ // WebSocket stream
1582
+ function createWebSocketStream(websocket: WebSocket, options?: DuplexOptions): Duplex;
1583
+ }
1584
+ //#endregion
1585
+ //#region src/node/server/ws.d.ts
1586
+ type WebSocketCustomListener<T> = (data: T, client: WebSocketClient) => void;
1587
+ declare const isWebSocketServer: unique symbol;
1588
+ interface WebSocketServer extends NormalizedHotChannel {
1589
+ /**
1590
+ * Handle custom event emitted by `import.meta.hot.send`
1591
+ */
1592
+ on: WebSocket.Server["on"] & {
1593
+ <T extends string>(event: T, listener: WebSocketCustomListener<hmrPayload_InferCustomEventPayload<T>>): void;
1594
+ };
1595
+ /**
1596
+ * Unregister event listener.
1597
+ */
1598
+ off: WebSocket.Server["off"] & {
1599
+ (event: string, listener: Function): void;
1600
+ };
1601
+ /**
1602
+ * Listen on port and host
1603
+ */
1604
+ listen(): void;
1605
+ /**
1606
+ * Disconnect all clients and terminate the server.
1607
+ */
1608
+ close(): Promise<void>;
1609
+ [isWebSocketServer]: true;
1610
+ /**
1611
+ * Get all connected clients.
1612
+ */
1613
+ clients: Set<WebSocketClient>;
1614
+ }
1615
+ interface WebSocketClient extends NormalizedHotChannelClient {
1616
+ /**
1617
+ * The raw WebSocket instance
1618
+ * @advanced
1619
+ */
1620
+ socket: WebSocket;
1621
+ }
1622
+ //#endregion
1623
+ //#region src/node/server/bundledDev.d.ts
1624
+ type MemoryFile = {
1625
+ source: string | Uint8Array;
1626
+ etag?: string;
1627
+ };
1628
+ declare class MemoryFiles {
1629
+ private files;
1630
+ get size(): number;
1631
+ get(file: string): MemoryFile | undefined;
1632
+ set(file: string, content: MemoryFile | (() => MemoryFile)): void;
1633
+ has(file: string): boolean;
1634
+ clear(): void;
1635
+ }
1636
+ declare class BundledDev {
1637
+ private environment;
1638
+ private _devEngine;
1639
+ private viteRuntime?;
1640
+ private initialBuildCompleted;
1641
+ private _closed;
1642
+ private clients;
1643
+ private debouncedFullReload;
1644
+ private fullReloadPending;
1645
+ private reloadNeededClientIds;
1646
+ private debouncedReloadNeededFlush;
1647
+ private lastBuildError;
1648
+ memoryFiles: MemoryFiles;
1649
+ constructor(environment: DevEnvironment);
1650
+ private get devEngine();
1651
+ private pendingPayloadFilenames;
1652
+ get hasBuildOutput(): boolean;
1653
+ listen(): Promise<void>;
1654
+ private waitForInitialBuildFinish;
1655
+ private ensureOutputAndFlushReloadNeeded;
1656
+ triggerBundleRegenerationIfStale(): Promise<boolean>;
1657
+ triggerLazyBundling(moduleId: string | null, clientId: string | null): Promise<{
1658
+ code: string;
1659
+ filename: string;
1660
+ } | undefined>;
1661
+ /**
1662
+ * Called by the serving middlewares when the response for a payload completed.
1663
+ * Only delivered payloads are recorded on the server's per-client ship map, so
1664
+ * later chunks may omit a module only if the payload carrying it was delivered.
1665
+ *
1666
+ * Note: the payload filename is unique across all clients.
1667
+ */
1668
+ markPayloadDelivered(filename: string): void;
1669
+ close(): Promise<void>;
1670
+ private storeOutputFiles;
1671
+ private getRolldownOptions;
1672
+ private handleHmrOutput;
1673
+ }
1674
+ //#endregion
1675
+ //#region src/node/server/environment.d.ts
1676
+ interface DevEnvironmentContext {
1677
+ hot: boolean;
1678
+ transport?: HotChannel | WebSocketServer;
1679
+ options?: EnvironmentOptions;
1680
+ remoteRunner?: {
1681
+ inlineSourceMap?: boolean;
1682
+ };
1683
+ depsOptimizer?: DepsOptimizer;
1684
+ }
1685
+ export declare class DevEnvironment extends BaseEnvironment {
1686
+ mode: "dev";
1687
+ moduleGraph: EnvironmentModuleGraph;
1688
+ depsOptimizer?: DepsOptimizer;
1689
+ get pluginContainer(): EnvironmentPluginContainer<DevEnvironment>;
1690
+ /**
1691
+ * Hot channel for this environment. If not provided or disabled,
1692
+ * it will be a noop channel that does nothing.
1693
+ *
1694
+ * @example
1695
+ * environment.hot.send({ type: 'full-reload' })
1696
+ */
1697
+ hot: NormalizedHotChannel;
1698
+ bundledDev?: BundledDev;
1699
+ constructor(name: string, config: ResolvedConfig, context: DevEnvironmentContext);
1700
+ init(options?: {
1701
+ watcher?: FSWatcher;
1702
+ /**
1703
+ * the previous instance used for the environment with the same name
1704
+ *
1705
+ * when using, the consumer should check if it's an instance generated from the same class or factory function
1706
+ */
1707
+ previousInstance?: DevEnvironment;
1708
+ }): Promise<void>;
1709
+ /**
1710
+ * When the dev server is restarted, the methods are called in the following order:
1711
+ * - new instance `init`
1712
+ * - previous instance `close`
1713
+ * - new instance `listen`
1714
+ */
1715
+ listen(server: ViteDevServer): Promise<void>;
1716
+ /**
1717
+ * Called by the module runner to retrieve information about the specified
1718
+ * module. Internally calls `transformRequest` and wraps the result in the
1719
+ * format that the module runner understands.
1720
+ * This method is not meant to be called manually.
1721
+ */
1722
+ fetchModule(id: string, importer?: string, options?: FetchFunctionOptions): Promise<moduleRunner_FetchResult>;
1723
+ reloadModule(module: EnvironmentModuleNode): Promise<void>;
1724
+ transformRequest(url: string): Promise<TransformResult | null>;
1725
+ warmupRequest(url: string): Promise<void>;
1726
+ protected invalidateModule(m: {
1727
+ path: string;
1728
+ message?: string;
1729
+ firstInvalidatedBy: string;
1730
+ }, _client: NormalizedHotChannelClient): void;
1731
+ close(): Promise<void>;
1732
+ /**
1733
+ * Calling `await environment.waitForRequestsIdle(id)` will wait until all static imports
1734
+ * are processed after the first transformRequest call. If called from a load or transform
1735
+ * plugin hook, the id needs to be passed as a parameter to avoid deadlocks.
1736
+ * Calling this function after the first static imports section of the module graph has been
1737
+ * processed will resolve immediately.
1738
+ * @experimental
1739
+ */
1740
+ waitForRequestsIdle(ignoredId?: string): Promise<void>;
1741
+ }
1742
+ //#endregion
1743
+ //#region src/types/commonjs.d.ts
1744
+
1745
+ interface RollupCommonJSOptions {
1746
+ /**
1747
+ * A minimatch pattern, or array of patterns, which specifies the files in
1748
+ * the build the plugin should operate on. By default, all files with
1749
+ * extension `".cjs"` or those in `extensions` are included, but you can
1750
+ * narrow this list by only including specific files. These files will be
1751
+ * analyzed and transpiled if either the analysis does not find ES module
1752
+ * specific statements or `transformMixedEsModules` is `true`.
1753
+ * @default undefined
1754
+ */
1755
+ include?: string | RegExp | readonly (string | RegExp)[];
1756
+ /**
1757
+ * A minimatch pattern, or array of patterns, which specifies the files in
1758
+ * the build the plugin should _ignore_. By default, all files with
1759
+ * extensions other than those in `extensions` or `".cjs"` are ignored, but you
1760
+ * can exclude additional files. See also the `include` option.
1761
+ * @default undefined
1762
+ */
1763
+ exclude?: string | RegExp | readonly (string | RegExp)[];
1764
+ /**
1765
+ * For extensionless imports, search for extensions other than .js in the
1766
+ * order specified. Note that you need to make sure that non-JavaScript files
1767
+ * are transpiled by another plugin first.
1768
+ * @default [ '.js' ]
1769
+ */
1770
+ extensions?: ReadonlyArray<string>;
1771
+ /**
1772
+ * If true then uses of `global` won't be dealt with by this plugin
1773
+ * @default false
1774
+ */
1775
+ ignoreGlobal?: boolean;
1776
+ /**
1777
+ * If false, skips source map generation for CommonJS modules. This will
1778
+ * improve performance.
1779
+ * @default true
1780
+ */
1781
+ sourceMap?: boolean;
1782
+ /**
1783
+ * Some `require` calls cannot be resolved statically to be translated to
1784
+ * imports.
1785
+ * When this option is set to `false`, the generated code will either
1786
+ * directly throw an error when such a call is encountered or, when
1787
+ * `dynamicRequireTargets` is used, when such a call cannot be resolved with a
1788
+ * configured dynamic require target.
1789
+ * Setting this option to `true` will instead leave the `require` call in the
1790
+ * code or use it as a fallback for `dynamicRequireTargets`.
1791
+ * @default false
1792
+ */
1793
+ ignoreDynamicRequires?: boolean;
1794
+ /**
1795
+ * Instructs the plugin whether to enable mixed module transformations. This
1796
+ * is useful in scenarios with modules that contain a mix of ES `import`
1797
+ * statements and CommonJS `require` expressions. Set to `true` if `require`
1798
+ * calls should be transformed to imports in mixed modules, or `false` if the
1799
+ * `require` expressions should survive the transformation. The latter can be
1800
+ * important if the code contains environment detection, or you are coding
1801
+ * for an environment with special treatment for `require` calls such as
1802
+ * ElectronJS. See also the `ignore` option.
1803
+ * @default false
1804
+ */
1805
+ transformMixedEsModules?: boolean;
1806
+ /**
1807
+ * By default, this plugin will try to hoist `require` statements as imports
1808
+ * to the top of each file. While this works well for many code bases and
1809
+ * allows for very efficient ESM output, it does not perfectly capture
1810
+ * CommonJS semantics as the order of side effects like log statements may
1811
+ * change. But it is especially problematic when there are circular `require`
1812
+ * calls between CommonJS modules as those often rely on the lazy execution of
1813
+ * nested `require` calls.
1814
+ *
1815
+ * Setting this option to `true` will wrap all CommonJS files in functions
1816
+ * which are executed when they are required for the first time, preserving
1817
+ * NodeJS semantics. Note that this can have an impact on the size and
1818
+ * performance of the generated code.
1819
+ *
1820
+ * The default value of `"auto"` will only wrap CommonJS files when they are
1821
+ * part of a CommonJS dependency cycle, e.g. an index file that is required by
1822
+ * many of its dependencies. All other CommonJS files are hoisted. This is the
1823
+ * recommended setting for most code bases.
1824
+ *
1825
+ * `false` will entirely prevent wrapping and hoist all files. This may still
1826
+ * work depending on the nature of cyclic dependencies but will often cause
1827
+ * problems.
1828
+ *
1829
+ * You can also provide a minimatch pattern, or array of patterns, to only
1830
+ * specify a subset of files which should be wrapped in functions for proper
1831
+ * `require` semantics.
1832
+ *
1833
+ * `"debug"` works like `"auto"` but after bundling, it will display a warning
1834
+ * containing a list of ids that have been wrapped which can be used as
1835
+ * minimatch pattern for fine-tuning.
1836
+ * @default "auto"
1837
+ */
1838
+ strictRequires?: boolean | string | RegExp | readonly (string | RegExp)[];
1839
+ /**
1840
+ * Sometimes you have to leave require statements unconverted. Pass an array
1841
+ * containing the IDs or a `id => boolean` function.
1842
+ * @default []
1843
+ */
1844
+ ignore?: ReadonlyArray<string> | ((id: string) => boolean);
1845
+ /**
1846
+ * In most cases, where `require` calls are inside a `try-catch` clause,
1847
+ * they should be left unconverted as it requires an optional dependency
1848
+ * that may or may not be installed beside the rolled up package.
1849
+ * Due to the conversion of `require` to a static `import` - the call is
1850
+ * hoisted to the top of the file, outside the `try-catch` clause.
1851
+ *
1852
+ * - `true`: Default. All `require` calls inside a `try` will be left unconverted.
1853
+ * - `false`: All `require` calls inside a `try` will be converted as if the
1854
+ * `try-catch` clause is not there.
1855
+ * - `remove`: Remove all `require` calls from inside any `try` block.
1856
+ * - `string[]`: Pass an array containing the IDs to left unconverted.
1857
+ * - `((id: string) => boolean|'remove')`: Pass a function that controls
1858
+ * individual IDs.
1859
+ *
1860
+ * @default true
1861
+ */
1862
+ ignoreTryCatch?: boolean | 'remove' | ReadonlyArray<string> | ((id: string) => boolean | 'remove');
1863
+ /**
1864
+ * Controls how to render imports from external dependencies. By default,
1865
+ * this plugin assumes that all external dependencies are CommonJS. This
1866
+ * means they are rendered as default imports to be compatible with e.g.
1867
+ * NodeJS where ES modules can only import a default export from a CommonJS
1868
+ * dependency.
1869
+ *
1870
+ * If you set `esmExternals` to `true`, this plugin assumes that all
1871
+ * external dependencies are ES modules and respect the
1872
+ * `requireReturnsDefault` option. If that option is not set, they will be
1873
+ * rendered as namespace imports.
1874
+ *
1875
+ * You can also supply an array of ids to be treated as ES modules, or a
1876
+ * function that will be passed each external id to determine whether it is
1877
+ * an ES module.
1878
+ * @default false
1879
+ */
1880
+ esmExternals?: boolean | ReadonlyArray<string> | ((id: string) => boolean);
1881
+ /**
1882
+ * Controls what is returned when requiring an ES module from a CommonJS file.
1883
+ * When using the `esmExternals` option, this will also apply to external
1884
+ * modules. By default, this plugin will render those imports as namespace
1885
+ * imports i.e.
1886
+ *
1887
+ * ```js
1888
+ * // input
1889
+ * const foo = require('foo');
1890
+ *
1891
+ * // output
1892
+ * import * as foo from 'foo';
1893
+ * ```
1894
+ *
1895
+ * However, there are some situations where this may not be desired.
1896
+ * For these situations, you can change Rollup's behaviour either globally or
1897
+ * per module. To change it globally, set the `requireReturnsDefault` option
1898
+ * to one of the following values:
1899
+ *
1900
+ * - `false`: This is the default, requiring an ES module returns its
1901
+ * namespace. This is the only option that will also add a marker
1902
+ * `__esModule: true` to the namespace to support interop patterns in
1903
+ * CommonJS modules that are transpiled ES modules.
1904
+ * - `"namespace"`: Like `false`, requiring an ES module returns its
1905
+ * namespace, but the plugin does not add the `__esModule` marker and thus
1906
+ * creates more efficient code. For external dependencies when using
1907
+ * `esmExternals: true`, no additional interop code is generated.
1908
+ * - `"auto"`: This is complementary to how `output.exports: "auto"` works in
1909
+ * Rollup: If a module has a default export and no named exports, requiring
1910
+ * that module returns the default export. In all other cases, the namespace
1911
+ * is returned. For external dependencies when using `esmExternals: true`, a
1912
+ * corresponding interop helper is added.
1913
+ * - `"preferred"`: If a module has a default export, requiring that module
1914
+ * always returns the default export, no matter whether additional named
1915
+ * exports exist. This is similar to how previous versions of this plugin
1916
+ * worked. Again for external dependencies when using `esmExternals: true`,
1917
+ * an interop helper is added.
1918
+ * - `true`: This will always try to return the default export on require
1919
+ * without checking if it actually exists. This can throw at build time if
1920
+ * there is no default export. This is how external dependencies are handled
1921
+ * when `esmExternals` is not used. The advantage over the other options is
1922
+ * that, like `false`, this does not add an interop helper for external
1923
+ * dependencies, keeping the code lean.
1924
+ *
1925
+ * To change this for individual modules, you can supply a function for
1926
+ * `requireReturnsDefault` instead. This function will then be called once for
1927
+ * each required ES module or external dependency with the corresponding id
1928
+ * and allows you to return different values for different modules.
1929
+ * @default false
1930
+ */
1931
+ requireReturnsDefault?: boolean | 'auto' | 'preferred' | 'namespace' | ((id: string) => boolean | 'auto' | 'preferred' | 'namespace');
1932
+ /**
1933
+ * @default "auto"
1934
+ */
1935
+ defaultIsModuleExports?: boolean | 'auto' | ((id: string) => boolean | 'auto');
1936
+ /**
1937
+ * Some modules contain dynamic `require` calls, or require modules that
1938
+ * contain circular dependencies, which are not handled well by static
1939
+ * imports. Including those modules as `dynamicRequireTargets` will simulate a
1940
+ * CommonJS (NodeJS-like) environment for them with support for dynamic
1941
+ * dependencies. It also enables `strictRequires` for those modules.
1942
+ *
1943
+ * Note: In extreme cases, this feature may result in some paths being
1944
+ * rendered as absolute in the final bundle. The plugin tries to avoid
1945
+ * exposing paths from the local machine, but if you are `dynamicRequirePaths`
1946
+ * with paths that are far away from your project's folder, that may require
1947
+ * replacing strings like `"/Users/John/Desktop/foo-project/"` -\> `"/"`.
1948
+ */
1949
+ dynamicRequireTargets?: string | ReadonlyArray<string>;
1950
+ /**
1951
+ * To avoid long paths when using the `dynamicRequireTargets` option, you can use this option to specify a directory
1952
+ * that is a common parent for all files that use dynamic require statements. Using a directory higher up such as `/`
1953
+ * may lead to unnecessarily long paths in the generated code and may expose directory names on your machine like your
1954
+ * home directory name. By default, it uses the current working directory.
1955
+ */
1956
+ dynamicRequireRoot?: string;
1957
+ }
1958
+ //#endregion
1959
+ //#region src/types/dynamicImportVars.d.ts
1960
+ interface RollupDynamicImportVarsOptions {
1961
+ /**
1962
+ * Files to include in this plugin (default all).
1963
+ * @default []
1964
+ */
1965
+ include?: string | RegExp | (string | RegExp)[];
1966
+ /**
1967
+ * Files to exclude in this plugin (default none).
1968
+ * @default []
1969
+ */
1970
+ exclude?: string | RegExp | (string | RegExp)[];
1971
+ /**
1972
+ * @deprecated This option is no-op and will be removed in future versions.
1973
+ */
1974
+ warnOnError?: boolean;
1975
+ }
1976
+ //#endregion
1977
+ //#region src/node/plugins/terser.d.ts
1978
+ interface TerserOptions extends TerserMinifyOptions {
1979
+ /**
1980
+ * Vite-specific option to specify the max number of workers to spawn
1981
+ * when minifying files with terser.
1982
+ *
1983
+ * @default number of CPUs minus 1
1984
+ */
1985
+ maxWorkers?: number;
1986
+ }
1987
+ //#endregion
1988
+ //#region src/node/plugins/resolve.d.ts
1989
+ interface EnvironmentResolveOptions {
1990
+ /**
1991
+ * @default ['browser', 'module', 'jsnext:main', 'jsnext']
1992
+ */
1993
+ mainFields?: string[];
1994
+ conditions?: string[];
1995
+ externalConditions?: string[];
1996
+ /**
1997
+ * @default ['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']
1998
+ */
1999
+ extensions?: string[];
2000
+ dedupe?: string[];
2001
+ /**
2002
+ * Prevent listed dependencies from being externalized and will get bundled in build.
2003
+ * Only works in server environments for now. Previously this was `ssr.noExternal`.
2004
+ * @experimental
2005
+ */
2006
+ noExternal?: string | RegExp | (string | RegExp)[] | true;
2007
+ /**
2008
+ * Externalize the given dependencies and their transitive dependencies.
2009
+ * Only works in server environments for now. Previously this was `ssr.external`.
2010
+ * @experimental
2011
+ */
2012
+ external?: string[] | true;
2013
+ /**
2014
+ * Array of strings or regular expressions that indicate what modules are builtin for the environment.
2015
+ */
2016
+ builtins?: (string | RegExp)[];
2017
+ }
2018
+ interface ResolveOptions extends EnvironmentResolveOptions {
2019
+ /**
2020
+ * @default false
2021
+ */
2022
+ preserveSymlinks?: boolean;
2023
+ /**
2024
+ * Enable tsconfig paths resolution
2025
+ *
2026
+ * @default false
2027
+ */
2028
+ tsconfigPaths?: boolean;
2029
+ }
2030
+ interface ResolvePluginOptions {
2031
+ root: string;
2032
+ isBuild: boolean;
2033
+ isProduction: boolean;
2034
+ packageCache?: PackageCache;
2035
+ /**
2036
+ * src code mode also attempts the following:
2037
+ * - resolving /xxx as URLs
2038
+ * - resolving bare imports from optimized deps
2039
+ */
2040
+ asSrc?: boolean;
2041
+ tryIndex?: boolean;
2042
+ tryPrefix?: string;
2043
+ preferRelative?: boolean;
2044
+ isRequire?: boolean;
2045
+ scan?: boolean;
2046
+ /**
2047
+ * Enable when `legacy.inconsistentCjsInterop` is true. See that option for more details.
2048
+ */
2049
+ legacyInconsistentCjsInterop?: boolean;
2050
+ }
2051
+ interface InternalResolveOptions extends Required<ResolveOptions>, ResolvePluginOptions {}
2052
+ //#endregion
2053
+ //#region src/node/packages.d.ts
2054
+ /** Cache for package.json resolution and package.json contents */
2055
+ type PackageCache = Map<string, PackageData>;
2056
+ interface PackageData {
2057
+ dir: string;
2058
+ hasSideEffects: (id: string) => boolean | "no-treeshake" | null;
2059
+ setResolvedCache: (key: string, entry: string, options: InternalResolveOptions) => void;
2060
+ getResolvedCache: (key: string, options: InternalResolveOptions) => string | undefined;
2061
+ data: {
2062
+ [field: string]: any;
2063
+ name: string;
2064
+ type: string;
2065
+ version: string;
2066
+ main: string;
2067
+ module: string;
2068
+ browser: string | Record<string, string | false>;
2069
+ exports: string | Record<string, any> | string[];
2070
+ imports: Record<string, any>;
2071
+ dependencies: Record<string, string>;
2072
+ };
2073
+ }
2074
+ //#endregion
2075
+ //#region src/node/plugins/license.d.ts
2076
+ interface LicenseOptions {
2077
+ /**
2078
+ * The output file name of the license file relative to the output directory.
2079
+ * Specify a path that ends with `.json` to output the raw JSON metadata.
2080
+ *
2081
+ * @default '.vite/license.md'
2082
+ */
2083
+ fileName: string;
2084
+ }
2085
+ //#endregion
2086
+ //#region src/node/build.d.ts
2087
+ interface BuildEnvironmentOptions {
2088
+ /**
2089
+ * Compatibility transform target. The transform is performed with esbuild
2090
+ * and the lowest supported target is es2015. Note this only handles
2091
+ * syntax transformation and does not cover polyfills
2092
+ *
2093
+ * Default: 'baseline-widely-available' - transpile targeting browsers that
2094
+ * are included in the Baseline Widely Available on 2026-01-01.
2095
+ * (Chrome 111+, Edge 111+, Firefox 114+, Safari 16.4+).
2096
+ *
2097
+ * Another special value is 'esnext' - which only performs minimal transpiling
2098
+ * (for minification compat).
2099
+ *
2100
+ * For custom targets, see https://esbuild.github.io/api/#target and
2101
+ * https://esbuild.github.io/content-types/#javascript for more details.
2102
+ * @default 'baseline-widely-available'
2103
+ */
2104
+ target?: "baseline-widely-available" | EsbuildTarget | false;
2105
+ /**
2106
+ * whether to inject module preload polyfill.
2107
+ * Note: does not apply to library mode.
2108
+ * @default true
2109
+ * @deprecated use `modulePreload.polyfill` instead
2110
+ */
2111
+ polyfillModulePreload?: boolean;
2112
+ /**
2113
+ * Configure module preload
2114
+ * Note: does not apply to library mode.
2115
+ * @default true
2116
+ */
2117
+ modulePreload?: boolean | ModulePreloadOptions;
2118
+ /**
2119
+ * Directory relative from `root` where build output will be placed. If the
2120
+ * directory exists, it will be removed before the build.
2121
+ * @default 'dist'
2122
+ */
2123
+ outDir?: string;
2124
+ /**
2125
+ * Directory relative from `outDir` where the built js/css/image assets will
2126
+ * be placed.
2127
+ * @default 'assets'
2128
+ */
2129
+ assetsDir?: string;
2130
+ /**
2131
+ * Static asset files smaller than this number (in bytes) will be inlined as
2132
+ * base64 strings. If a callback is passed, a boolean can be returned to opt-in
2133
+ * or opt-out of inlining. If nothing is returned the default logic applies.
2134
+ *
2135
+ * Default limit is `4096` (4 KiB). Set to `0` to disable.
2136
+ * @default 4096
2137
+ */
2138
+ assetsInlineLimit?: number | ((filePath: string, content: Buffer) => boolean | undefined);
2139
+ /**
2140
+ * Whether to code-split CSS. When enabled, CSS in async chunks will be
2141
+ * inlined as strings in the chunk and inserted via dynamically created
2142
+ * style tags when the chunk is loaded.
2143
+ * @default true
2144
+ */
2145
+ cssCodeSplit?: boolean;
2146
+ /**
2147
+ * An optional separate target for CSS minification.
2148
+ * As esbuild only supports configuring targets to mainstream
2149
+ * browsers, users may need this option when they are targeting
2150
+ * a niche browser that comes with most modern JavaScript features
2151
+ * but has poor CSS support, e.g. Android WeChat WebView, which
2152
+ * doesn't support the #RGBA syntax.
2153
+ * When `build.cssMinify` is `lightningcss` (the default), this
2154
+ * option takes precedence over `css.lightningcss.targets` for the
2155
+ * minification step.
2156
+ * @default target
2157
+ */
2158
+ cssTarget?: EsbuildTarget | false;
2159
+ /**
2160
+ * Override CSS minification specifically instead of defaulting to `build.minify`,
2161
+ * so you can configure minification for JS and CSS separately.
2162
+ * @default 'lightningcss', but false if build.minify is disabled for client build
2163
+ */
2164
+ cssMinify?: boolean | "lightningcss" | "esbuild";
2165
+ /**
2166
+ * If `true`, a separate sourcemap file will be created. If 'inline', the
2167
+ * sourcemap will be appended to the resulting output file as data URI.
2168
+ * 'hidden' works like `true` except that the corresponding sourcemap
2169
+ * comments in the bundled files are suppressed.
2170
+ * @default false
2171
+ */
2172
+ sourcemap?: boolean | "inline" | "hidden";
2173
+ /**
2174
+ * Set to `false` to disable minification, or specify the minifier to use.
2175
+ * Available options are 'oxc' or 'terser' or 'esbuild'.
2176
+ * @default 'oxc' for client build, false for SSR build
2177
+ */
2178
+ minify?: boolean | "oxc" | "terser" | "esbuild";
2179
+ /**
2180
+ * Options for terser
2181
+ * https://terser.org/docs/api-reference#minify-options
2182
+ *
2183
+ * In addition, you can also pass a `maxWorkers: number` option to specify the
2184
+ * max number of workers to spawn. Defaults to the number of CPUs minus 1.
2185
+ */
2186
+ terserOptions?: TerserOptions;
2187
+ /**
2188
+ * Whether to use import maps feature to optimize chunk caching efficiency.
2189
+ * @default false
2190
+ * @experimental
2191
+ */
2192
+ chunkImportMap?: boolean;
2193
+ /**
2194
+ * Alias to `rolldownOptions`
2195
+ * @deprecated Use `rolldownOptions` instead.
2196
+ */
2197
+ rollupOptions?: RolldownOptions;
2198
+ /**
2199
+ * Will be merged with internal rolldown options.
2200
+ * https://rolldown.rs/reference/Interface.RolldownOptions
2201
+ */
2202
+ rolldownOptions?: RolldownOptions;
2203
+ /**
2204
+ * Options to pass on to `@rollup/plugin-commonjs`
2205
+ * @deprecated This option is no-op and will be removed in future versions.
2206
+ */
2207
+ commonjsOptions?: RollupCommonJSOptions;
2208
+ /**
2209
+ * Options to pass on to `@rollup/plugin-dynamic-import-vars`
2210
+ */
2211
+ dynamicImportVarsOptions?: RollupDynamicImportVarsOptions;
2212
+ /**
2213
+ * Whether to write bundle to disk
2214
+ * @default true
2215
+ */
2216
+ write?: boolean;
2217
+ /**
2218
+ * Empty outDir on write.
2219
+ * @default true when outDir is a sub directory of project root
2220
+ */
2221
+ emptyOutDir?: boolean | null;
2222
+ /**
2223
+ * Copy the public directory to outDir on write.
2224
+ * @default true
2225
+ */
2226
+ copyPublicDir?: boolean;
2227
+ /**
2228
+ * Whether to emit a `.vite/license.md` file that includes all bundled dependencies'
2229
+ * licenses. Pass an object to customize the output file name.
2230
+ * @default false
2231
+ */
2232
+ license?: boolean | LicenseOptions;
2233
+ /**
2234
+ * Whether to emit a .vite/manifest.json in the output dir to map hash-less filenames
2235
+ * to their hashed versions. Useful when you want to generate your own HTML
2236
+ * instead of using the one generated by Vite.
2237
+ *
2238
+ * Example:
2239
+ *
2240
+ * ```json
2241
+ * {
2242
+ * "main.js": {
2243
+ * "file": "main.68fe3fad.js",
2244
+ * "css": "main.e6b63442.css",
2245
+ * "imports": [...],
2246
+ * "dynamicImports": [...]
2247
+ * }
2248
+ * }
2249
+ * ```
2250
+ * @default false
2251
+ */
2252
+ manifest?: boolean | string;
2253
+ /**
2254
+ * Build in library mode. The value should be the global name of the lib in
2255
+ * UMD mode. This will produce esm + cjs + umd bundle formats with default
2256
+ * configurations that are suitable for distributing libraries.
2257
+ * @default false
2258
+ */
2259
+ lib?: LibraryOptions | false;
2260
+ /**
2261
+ * Produce SSR oriented build. Note this requires specifying SSR entry via
2262
+ * `rolldownOptions.input`.
2263
+ * @default false
2264
+ */
2265
+ ssr?: boolean | string;
2266
+ /**
2267
+ * Generate SSR manifest for determining style links and asset preload
2268
+ * directives in production.
2269
+ * @default false
2270
+ */
2271
+ ssrManifest?: boolean | string;
2272
+ /**
2273
+ * Emit assets during SSR.
2274
+ * @default false
2275
+ */
2276
+ ssrEmitAssets?: boolean;
2277
+ /**
2278
+ * Emit assets during build. Frameworks can set environments.ssr.build.emitAssets
2279
+ * By default, it is true for the client and false for other environments.
2280
+ */
2281
+ emitAssets?: boolean;
2282
+ /**
2283
+ * Set to false to disable reporting compressed chunk sizes.
2284
+ * Can slightly improve build speed.
2285
+ * @default true
2286
+ */
2287
+ reportCompressedSize?: boolean;
2288
+ /**
2289
+ * Adjust chunk size warning limit (in kB).
2290
+ * @default 500
2291
+ */
2292
+ chunkSizeWarningLimit?: number;
2293
+ /**
2294
+ * Rollup watch options
2295
+ * https://rollupjs.org/configuration-options/#watch
2296
+ * @default null
2297
+ */
2298
+ watch?: WatcherOptions | null;
2299
+ /**
2300
+ * create the Build Environment instance
2301
+ */
2302
+ createEnvironment?: (name: string, config: ResolvedConfig) => Promise<BuildEnvironment> | BuildEnvironment;
2303
+ }
2304
+ type BuildOptions = BuildEnvironmentOptions;
2305
+ interface LibraryOptions {
2306
+ /**
2307
+ * Path of library entry.
2308
+ * Defaults to the top-level `input` option when omitted.
2309
+ */
2310
+ entry?: InputOption;
2311
+ /**
2312
+ * The name of the exposed global variable. Required when the `formats` option includes
2313
+ * `umd` or `iife`
2314
+ */
2315
+ name?: string;
2316
+ /**
2317
+ * Output bundle formats. Defaults to `['es', 'umd']` for a single entry, or
2318
+ * `['es', 'cjs']` for multiple entries (`umd` and `iife` do not support
2319
+ * multiple entries).
2320
+ * @default ['es', 'umd']
2321
+ */
2322
+ formats?: LibraryFormats[];
2323
+ /**
2324
+ * The name of the package file output. The default file name is the name option
2325
+ * of the project package.json. It can also be defined as a function taking the
2326
+ * format as an argument.
2327
+ */
2328
+ fileName?: string | ((format: ModuleFormat, entryName: string) => string);
2329
+ /**
2330
+ * The name of the CSS file output if the library imports CSS. Defaults to the
2331
+ * same value as `build.lib.fileName` if it's set a string, otherwise it falls
2332
+ * back to the name option of the project package.json.
2333
+ */
2334
+ cssFileName?: string;
2335
+ }
2336
+ type LibraryFormats = "es" | "cjs" | "umd" | "iife";
2337
+ interface ModulePreloadOptions {
2338
+ /**
2339
+ * Whether to inject a module preload polyfill.
2340
+ * Note: does not apply to library mode.
2341
+ * @default true
2342
+ */
2343
+ polyfill?: boolean;
2344
+ /**
2345
+ * Resolve the list of dependencies to preload for a given dynamic import
2346
+ * @experimental
2347
+ */
2348
+ resolveDependencies?: ResolveModulePreloadDependenciesFn;
2349
+ }
2350
+ interface ResolvedModulePreloadOptions {
2351
+ polyfill: boolean;
2352
+ resolveDependencies?: ResolveModulePreloadDependenciesFn;
2353
+ }
2354
+ type ResolveModulePreloadDependenciesFn = (filename: string, deps: string[], context: {
2355
+ hostId: string;
2356
+ hostType: "html" | "js";
2357
+ }) => string[];
2358
+ interface ResolvedBuildEnvironmentOptions extends Required<Omit<BuildEnvironmentOptions, "polyfillModulePreload">> {
2359
+ modulePreload: false | ResolvedModulePreloadOptions;
2360
+ }
2361
+ interface ResolvedBuildOptions extends Required<Omit<BuildOptions, "polyfillModulePreload">> {
2362
+ modulePreload: false | ResolvedModulePreloadOptions;
2363
+ }
2364
+ /**
2365
+ * Bundles a single environment for production.
2366
+ * Returns a Promise containing the build result.
2367
+ */
2368
+ export declare function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2369
+ type RenderBuiltAssetUrl = (filename: string, type: {
2370
+ type: "asset" | "public";
2371
+ hostId: string;
2372
+ hostType: "js" | "css" | "html";
2373
+ ssr: boolean;
2374
+ }) => string | {
2375
+ relative?: boolean;
2376
+ runtime?: string;
2377
+ } | undefined;
2378
+ export declare class BuildEnvironment extends BaseEnvironment {
2379
+ mode: "build";
2380
+ isBuilt: boolean;
2381
+ constructor(name: string, config: ResolvedConfig, setup?: {
2382
+ options?: EnvironmentOptions;
2383
+ });
2384
+ init(): Promise<void>;
2385
+ }
2386
+ interface ViteBuilder {
2387
+ environments: Record<string, BuildEnvironment>;
2388
+ config: ResolvedConfig;
2389
+ buildApp(): Promise<void>;
2390
+ build(environment: BuildEnvironment): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
2391
+ runDevTools(): Promise<void>;
2392
+ }
2393
+ interface BuilderOptions {
2394
+ /**
2395
+ * Whether to share the config instance among environments to align with the behavior of dev server.
2396
+ *
2397
+ * @default false
2398
+ * @experimental
2399
+ */
2400
+ sharedConfigBuild?: boolean;
2401
+ /**
2402
+ * Whether to share the plugin instances among environments to align with the behavior of dev server.
2403
+ *
2404
+ * @default false
2405
+ * @experimental
2406
+ */
2407
+ sharedPlugins?: boolean;
2408
+ buildApp?: (builder: ViteBuilder) => Promise<void>;
2409
+ }
2410
+ type ResolvedBuilderOptions = Required<BuilderOptions>;
2411
+ /**
2412
+ * Creates a ViteBuilder to orchestrate building multiple environments.
2413
+ * @experimental
2414
+ */
2415
+ export declare function createBuilder(inlineConfig?: InlineConfig, useLegacyBuilder?: null | boolean): Promise<ViteBuilder>;
2416
+ type BuildAppHook = (this: MinimalPluginContextWithoutEnvironment, builder: ViteBuilder) => Promise<void>;
2417
+ //#endregion
2418
+ //#region src/node/environment.d.ts
2419
+ type Environment = DevEnvironment | BuildEnvironment | ScanEnvironment | UnknownEnvironment;
2420
+ /**
2421
+ * Creates a function that hides the complexities of a WeakMap with an initial value
2422
+ * to implement object metadata. Used by plugins to implement cross hooks per
2423
+ * environment metadata
2424
+ *
2425
+ * @experimental
2426
+ */
2427
+ export declare function perEnvironmentState<State>(initial: (environment: Environment) => State): (context: PluginContext) => State;
2428
+ //#endregion
2429
+ //#region src/node/server/pluginContainer.d.ts
2430
+ type SkipInformation = {
2431
+ id: string;
2432
+ importer: string | undefined;
2433
+ plugin: Plugin;
2434
+ called?: boolean;
2435
+ };
2436
+ declare class EnvironmentPluginContainer<Env extends Environment = Environment> {
2437
+ private _pluginContextMap;
2438
+ private _resolvedRolldownOptions?;
2439
+ private _processesing;
2440
+ private _seenResolves;
2441
+ private _moduleNodeToLoadAddedImports;
2442
+ getSortedPluginHooks: PluginHookUtils["getSortedPluginHooks"];
2443
+ getSortedPlugins: PluginHookUtils["getSortedPlugins"];
2444
+ moduleGraph: EnvironmentModuleGraph | undefined;
2445
+ watchFiles: Set<string>;
2446
+ minimalContext: MinimalPluginContext$1<Env>;
2447
+ private _started;
2448
+ private _buildStartPromise;
2449
+ private _closed;
2450
+ private _updateModuleLoadAddedImports;
2451
+ private _getAddedImports;
2452
+ getModuleInfo(id: string): ModuleInfo | null;
2453
+ private handleHookPromise;
2454
+ get options(): InputOptions;
2455
+ resolveRolldownOptions(): Promise<InputOptions>;
2456
+ private _getPluginContext;
2457
+ private hookParallel;
2458
+ buildStart(_options?: InputOptions): Promise<void>;
2459
+ resolveId(rawId: string, importer?: string | undefined, options?: {
2460
+ kind?: ImportKind;
2461
+ attributes?: Record<string, string>;
2462
+ custom?: CustomPluginOptions;
2463
+ /** @deprecated use `skipCalls` instead */
2464
+ skip?: Set<Plugin>;
2465
+ skipCalls?: readonly SkipInformation[];
2466
+
2467
+ isEntry?: boolean;
2468
+ }): Promise<PartialResolvedId | null>;
2469
+ load(id: string): Promise<LoadResult | null>;
2470
+ transform(code: string, id: string, options?: {
2471
+ inMap?: SourceDescription["map"];
2472
+ moduleType?: string;
2473
+ }): Promise<{
2474
+ code: string;
2475
+ map: SourceMap | {
2476
+ mappings: "";
2477
+ } | null;
2478
+ moduleType?: ModuleType;
2479
+ }>;
2480
+ watchChange(id: string, change: {
2481
+ event: "create" | "update" | "delete";
2482
+ }): Promise<void>;
2483
+ close(): Promise<void>;
2484
+ }
2485
+ declare class BasicMinimalPluginContext<Meta = PluginContextMeta> {
2486
+ meta: Meta;
2487
+ private _logger;
2488
+ constructor(meta: Meta, _logger: Logger);
2489
+ get pluginName(): string;
2490
+ debug(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2491
+ info(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2492
+ warn(rawLog: string | RollupLog | (() => string | RollupLog)): void;
2493
+ error(e: string | RollupError): never;
2494
+ private _normalizeRawLog;
2495
+ }
2496
+ declare class MinimalPluginContext$1<T extends Environment = Environment> extends BasicMinimalPluginContext implements MinimalPluginContext {
2497
+ environment: T;
2498
+ constructor(meta: PluginContextMeta, environment: T);
2499
+ }
2500
+ declare class PluginContainer {
2501
+ private environments;
2502
+ constructor(environments: Record<string, Environment>);
2503
+ private _getEnvironment;
2504
+ private _getPluginContainer;
2505
+ getModuleInfo(id: string): ModuleInfo | null;
2506
+ get options(): InputOptions;
2507
+ buildStart(_options?: InputOptions): Promise<void>;
2508
+ watchChange(id: string, change: {
2509
+ event: "create" | "update" | "delete";
2510
+ }): Promise<void>;
2511
+ resolveId(rawId: string, importer?: string, options?: {
2512
+ attributes?: Record<string, string>;
2513
+ custom?: CustomPluginOptions;
2514
+ /** @deprecated use `skipCalls` instead */
2515
+ skip?: Set<Plugin>;
2516
+ skipCalls?: readonly SkipInformation[];
2517
+ ssr?: boolean;
2518
+
2519
+ isEntry?: boolean;
2520
+ }): Promise<PartialResolvedId | null>;
2521
+ load(id: string, options?: {
2522
+ ssr?: boolean;
2523
+ }): Promise<LoadResult | null>;
2524
+ transform(code: string, id: string, options?: {
2525
+ ssr?: boolean;
2526
+ environment?: Environment;
2527
+ inMap?: SourceDescription["map"];
2528
+ }): Promise<{
2529
+ code: string;
2530
+ map: SourceMap | {
2531
+ mappings: "";
2532
+ } | null;
2533
+ }>;
2534
+ close(): Promise<void>;
2535
+ }
2536
+ //#endregion
2537
+ //#region src/node/server/index.d.ts
2538
+ interface ServerOptions$1 extends CommonServerOptions {
2539
+ /**
2540
+ * Configure HMR-specific options (port, host, path & protocol)
2541
+ */
2542
+ hmr?: HmrOptions | boolean;
2543
+ /**
2544
+ * Configure WebSocket connection options.
2545
+ * Set to `false` to disable the WebSocket server and connection.
2546
+ */
2547
+ ws?: WsOptions | false;
2548
+ /**
2549
+ * Warm-up files to transform and cache the results in advance. This improves the
2550
+ * initial page load during server starts and prevents transform waterfalls.
2551
+ */
2552
+ warmup?: {
2553
+ /**
2554
+ * The files to be transformed and used on the client-side. Supports glob patterns.
2555
+ */
2556
+ clientFiles?: string[];
2557
+ /**
2558
+ * The files to be transformed and used in SSR. Supports glob patterns.
2559
+ */
2560
+ ssrFiles?: string[];
2561
+ };
2562
+ /**
2563
+ * chokidar watch options or null to disable FS watching
2564
+ * https://github.com/paulmillr/chokidar/tree/3.6.0#api
2565
+ */
2566
+ watch?: WatchOptions | null;
2567
+ /**
2568
+ * Create Vite dev server to be used as a middleware in an existing server
2569
+ * @default false
2570
+ */
2571
+ middlewareMode?: boolean | {
2572
+ /**
2573
+ * Parent server instance to attach to
2574
+ *
2575
+ * This is needed to proxy WebSocket connections to the parent server.
2576
+ */
2577
+ server: HttpServer;
2578
+ };
2579
+ /**
2580
+ * Options for files served via '/\@fs/'.
2581
+ */
2582
+ fs?: FileSystemServeOptions;
2583
+ /**
2584
+ * Origin for the generated asset URLs.
2585
+ *
2586
+ * @example `http://127.0.0.1:8080`
2587
+ */
2588
+ origin?: string;
2589
+ /**
2590
+ * Pre-transform known direct imports
2591
+ * @default true
2592
+ */
2593
+ preTransformRequests?: boolean;
2594
+ /**
2595
+ * Whether or not to ignore-list source files in the dev server sourcemap, used to populate
2596
+ * the [`x_google_ignoreList` source map extension](https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension).
2597
+ *
2598
+ * By default, it excludes all paths containing `node_modules`. You can pass `false` to
2599
+ * disable this behavior, or, for full control, a function that takes the source path and
2600
+ * sourcemap path and returns whether to ignore the source path.
2601
+ */
2602
+ sourcemapIgnoreList?: false | ((sourcePath: string, sourcemapPath: string) => boolean);
2603
+ /**
2604
+ * Backward compatibility. The buildStart and buildEnd hooks were called only once for
2605
+ * the client environment. This option enables per-environment buildStart and buildEnd hooks.
2606
+ * @default false
2607
+ * @experimental
2608
+ */
2609
+ perEnvironmentStartEndDuringDev?: boolean;
2610
+ /**
2611
+ * Backward compatibility. The watchChange hook was called only once for the client environment.
2612
+ * This option enables per-environment watchChange hooks.
2613
+ * @default false
2614
+ * @experimental
2615
+ */
2616
+ perEnvironmentWatchChangeDuringDev?: boolean;
2617
+ /**
2618
+ * Run HMR tasks, by default the HMR propagation is done in parallel for all environments
2619
+ * @experimental
2620
+ */
2621
+ hotUpdateEnvironments?: (server: ViteDevServer, hmr: (environment: DevEnvironment) => Promise<void>) => Promise<void>;
2622
+ forwardConsole?: boolean | ForwardConsoleOptions;
2623
+ }
2624
+ interface ResolvedServerOptions extends Omit<RequiredExceptFor<ServerOptions$1, "host" | "https" | "proxy" | "hmr" | "ws" | "watch" | "origin" | "hotUpdateEnvironments">, "fs" | "middlewareMode" | "sourcemapIgnoreList" | "forwardConsole"> {
2625
+ fs: Required<FileSystemServeOptions>;
2626
+ middlewareMode: NonNullable<ServerOptions$1["middlewareMode"]>;
2627
+ sourcemapIgnoreList: Exclude<ServerOptions$1["sourcemapIgnoreList"], false | undefined>;
2628
+ forwardConsole: ResolvedForwardConsoleOptions;
2629
+ }
2630
+ interface FileSystemServeOptions {
2631
+ /**
2632
+ * Strictly restrict file accessing outside of allowing paths.
2633
+ *
2634
+ * Set to `false` to disable the warning
2635
+ *
2636
+ * @default true
2637
+ */
2638
+ strict?: boolean;
2639
+ /**
2640
+ * Restrict accessing files outside the allowed directories.
2641
+ *
2642
+ * Accepts absolute path or a path relative to project root.
2643
+ * Will try to search up for workspace root by default.
2644
+ */
2645
+ allow?: string[];
2646
+ /**
2647
+ * Restrict accessing files that matches the patterns.
2648
+ *
2649
+ * This will have higher priority than `allow`.
2650
+ * picomatch patterns are supported.
2651
+ *
2652
+ * @default ['.env', '.env.*', '*.{crt,pem,key,p12,pfx,cer,der}', '.npmrc', '.yarnrc.yml', '**\/.git/**']
2653
+ */
2654
+ deny?: string[];
2655
+ }
2656
+ type ServerHook = (this: MinimalPluginContextWithoutEnvironment, server: ViteDevServer) => (() => void) | void | Promise<(() => void) | void>;
2657
+ type HttpServer = http.Server | Http2SecureServer;
2658
+ interface ViteDevServer {
2659
+ /**
2660
+ * The resolved vite config object
2661
+ */
2662
+ config: ResolvedConfig;
2663
+ /**
2664
+ * A connect app instance.
2665
+ * - Can be used to attach custom middlewares to the dev server.
2666
+ * - Can also be used as the handler function of a custom http server
2667
+ * or as a middleware in any connect-style Node.js frameworks
2668
+ *
2669
+ * https://github.com/senchalabs/connect#use-middleware
2670
+ */
2671
+ middlewares: Connect.Server;
2672
+ /**
2673
+ * native Node http server instance
2674
+ * will be null in middleware mode
2675
+ */
2676
+ httpServer: HttpServer | null;
2677
+ /**
2678
+ * Chokidar watcher instance. If `config.server.watch` is set to `null`,
2679
+ * it will not watch any files and calling `add` or `unwatch` will have no effect.
2680
+ * https://github.com/paulmillr/chokidar/tree/3.6.0#api
2681
+ */
2682
+ watcher: FSWatcher;
2683
+ /**
2684
+ * WebSocket server with `send(payload)` method
2685
+ */
2686
+ ws: WebSocketServer;
2687
+ /**
2688
+ * An alias to `server.environments.client.hot`.
2689
+ * If you want to interact with all environments, loop over `server.environments`.
2690
+ */
2691
+ hot: NormalizedHotChannel;
2692
+ /**
2693
+ * Rollup plugin container that can run plugin hooks on a given file
2694
+ */
2695
+ pluginContainer: PluginContainer;
2696
+ /**
2697
+ * Module execution environments attached to the Vite server.
2698
+ */
2699
+ environments: Record<"client" | "ssr" | (string & {}), DevEnvironment>;
2700
+ /**
2701
+ * Module graph that tracks the import relationships, url to file mapping
2702
+ * and hmr state.
2703
+ */
2704
+ moduleGraph: ModuleGraph;
2705
+ /**
2706
+ * The resolved urls Vite prints on the CLI (URL-encoded). Returns `null`
2707
+ * in middleware mode or if the server is not listening on any port.
2708
+ */
2709
+ resolvedUrls: ResolvedServerUrls | null;
2710
+ /**
2711
+ * Programmatically resolve, load and transform a URL and get the result
2712
+ * without going through the http request pipeline.
2713
+ */
2714
+ transformRequest(url: string, options?: TransformOptions): Promise<TransformResult | null>;
2715
+ /**
2716
+ * Same as `transformRequest` but only warm up the URLs so the next request
2717
+ * will already be cached. The function will never throw as it handles and
2718
+ * reports errors internally.
2719
+ */
2720
+ warmupRequest(url: string, options?: TransformOptions): Promise<void>;
2721
+ /**
2722
+ * Apply vite built-in HTML transforms and any plugin HTML transforms.
2723
+ */
2724
+ transformIndexHtml(url: string, html: string, originalUrl?: string): Promise<string>;
2725
+ /**
2726
+ * Transform module code into SSR format.
2727
+ */
2728
+ ssrTransform(code: string, inMap: SourceMap | {
2729
+ mappings: "";
2730
+ } | null, url: string, originalCode?: string): Promise<TransformResult | null>;
2731
+ /**
2732
+ * Load a given URL as an instantiated module for SSR.
2733
+ */
2734
+ ssrLoadModule(url: string, opts?: {
2735
+ fixStacktrace?: boolean;
2736
+ }): Promise<Record<string, any>>;
2737
+ /**
2738
+ * Returns a fixed version of the given stack
2739
+ */
2740
+ ssrRewriteStacktrace(stack: string): string;
2741
+ /**
2742
+ * Mutates the given SSR error by rewriting the stacktrace
2743
+ */
2744
+ ssrFixStacktrace(e: Error): void;
2745
+ /**
2746
+ * Triggers HMR for a module in the module graph. You can use the `server.moduleGraph`
2747
+ * API to retrieve the module to be reloaded. If `hmr` is false, this is a no-op.
2748
+ */
2749
+ reloadModule(module: ModuleNode): Promise<void>;
2750
+ /**
2751
+ * Start the server.
2752
+ */
2753
+ listen(port?: number, isRestart?: boolean): Promise<ViteDevServer>;
2754
+ /**
2755
+ * Stop the server.
2756
+ */
2757
+ close(): Promise<void>;
2758
+ /**
2759
+ * Print server urls
2760
+ */
2761
+ printUrls(): void;
2762
+ /**
2763
+ * Bind CLI shortcuts
2764
+ */
2765
+ bindCLIShortcuts(options?: BindCLIShortcutsOptions<ViteDevServer>): void;
2766
+ /**
2767
+ * Restart the server.
2768
+ *
2769
+ * @param forceOptimize - force the optimizer to re-bundle, same as --force cli flag
2770
+ */
2771
+ restart(forceOptimize?: boolean): Promise<void>;
2772
+ /**
2773
+ * Open browser
2774
+ */
2775
+ openBrowser(): void;
2776
+ /**
2777
+ * Calling `await server.waitForRequestsIdle(id)` will wait until all static imports
2778
+ * are processed. If called from a load or transform plugin hook, the id needs to be
2779
+ * passed as a parameter to avoid deadlocks. Calling this function after the first
2780
+ * static imports section of the module graph has been processed will resolve immediately.
2781
+ */
2782
+ waitForRequestsIdle: (ignoredId?: string) => Promise<void>;
2783
+ }
2784
+ interface ResolvedServerUrls {
2785
+ local: string[];
2786
+ network: string[];
2787
+ /**
2788
+ * Names of the network interface that each {@link ResolvedServerUrls.network}
2789
+ * URL is bound to, in the same order as `network`. An entry is `undefined`
2790
+ * when the interface name is not known, for example when an explicit `host`
2791
+ * is set.
2792
+ */
2793
+ networkInterfaceNames?: (string | undefined)[];
2794
+ }
2795
+ export declare function createServer(inlineConfig?: InlineConfig | ResolvedConfig): Promise<ViteDevServer>;
2796
+ //#endregion
2797
+ //#region src/node/plugins/html.d.ts
2798
+ interface HtmlTagDescriptor {
2799
+ tag: string;
2800
+ /**
2801
+ * attribute values will be escaped automatically if needed
2802
+ */
2803
+ attrs?: Record<string, string | boolean | undefined>;
2804
+ children?: string | HtmlTagDescriptor[];
2805
+ /**
2806
+ * default: 'head-prepend'
2807
+ */
2808
+ injectTo?: "head" | "body" | "head-prepend" | "body-prepend";
2809
+ }
2810
+ type IndexHtmlTransformResult = string | HtmlTagDescriptor[] | {
2811
+ html: string;
2812
+ tags: HtmlTagDescriptor[];
2813
+ };
2814
+ interface IndexHtmlTransformContext {
2815
+ /**
2816
+ * public path when served
2817
+ */
2818
+ path: string;
2819
+ /**
2820
+ * filename on disk
2821
+ */
2822
+ filename: string;
2823
+ server?: ViteDevServer;
2824
+ bundle?: OutputBundle;
2825
+ chunk?: OutputChunk;
2826
+ originalUrl?: string;
2827
+ }
2828
+ type IndexHtmlTransformHook = (this: MinimalPluginContextWithoutEnvironment, html: string, ctx: IndexHtmlTransformContext) => IndexHtmlTransformResult | void | Promise<IndexHtmlTransformResult | void>;
2829
+ type IndexHtmlTransform = IndexHtmlTransformHook | {
2830
+ order?: "pre" | "post" | null;
2831
+ handler: IndexHtmlTransformHook;
2832
+ };
2833
+ //#endregion
2834
+ //#region src/node/plugins/pluginFilter.d.ts
2835
+ type StringFilter<Value = string | RegExp> = Value | Array<Value> | {
2836
+ include?: Value | Array<Value>;
2837
+ exclude?: Value | Array<Value>;
2838
+ };
2839
+ //#endregion
2840
+ //#region src/node/plugin.d.ts
2841
+ /**
2842
+ * Vite plugins extends the Rollup plugin interface with a few extra
2843
+ * vite-specific options. A valid vite plugin is also a valid Rollup plugin.
2844
+ * On the contrary, a Rollup plugin may or may NOT be a valid vite universal
2845
+ * plugin, since some Rollup features do not make sense in an unbundled
2846
+ * dev server context. That said, as long as a rollup plugin doesn't have strong
2847
+ * coupling between its bundle phase and output phase hooks then it should
2848
+ * just work (that means, most of them).
2849
+ *
2850
+ * By default, the plugins are run during both serve and build. When a plugin
2851
+ * is applied during serve, it will only run **non output plugin hooks** (see
2852
+ * rollup type definition of {@link rollup#PluginHooks}). You can think of the
2853
+ * dev server as only running `const bundle = rollup.rollup()` but never calling
2854
+ * `bundle.generate()`.
2855
+ *
2856
+ * A plugin that expects to have different behavior depending on serve/build can
2857
+ * export a factory function that receives the command being run via options.
2858
+ *
2859
+ * If a plugin should be applied only for server or build, a function format
2860
+ * config file can be used to conditional determine the plugins to use.
2861
+ *
2862
+ * The current environment can be accessed from the context for the all non-global
2863
+ * hooks (it is not available in config, configResolved, configureServer, etc).
2864
+ * It can be a dev, build, or scan environment.
2865
+ * Plugins can use this.environment.mode === 'dev' to guard for dev specific APIs.
2866
+ */
2867
+ interface PluginContextExtension {
2868
+ /**
2869
+ * Vite-specific environment instance
2870
+ */
2871
+ environment: Environment;
2872
+ }
2873
+ interface PluginContextMetaExtension {
2874
+ viteVersion: string;
2875
+ }
2876
+ interface ConfigPluginContext extends Omit<MinimalPluginContext, "meta" | "environment"> {
2877
+ meta: Omit<PluginContextMeta, "watchMode">;
2878
+ }
2879
+ interface MinimalPluginContextWithoutEnvironment extends Omit<MinimalPluginContext, "environment"> {}
2880
+ declare module "rolldown" {
2881
+ interface MinimalPluginContext extends PluginContextExtension {}
2882
+ interface PluginContextMeta extends PluginContextMetaExtension {}
2883
+ }
2884
+ /**
2885
+ * There are two types of plugins in Vite. App plugins and environment plugins.
2886
+ * Environment Plugins are defined by a constructor function that will be called
2887
+ * once per each environment allowing users to have completely different plugins
2888
+ * for each of them. The constructor gets the resolved environment after the server
2889
+ * and builder has already been created simplifying config access and cache
2890
+ * management for environment specific plugins.
2891
+ * Environment Plugins are closer to regular rollup plugins. They can't define
2892
+ * app level hooks (like config, configResolved, configureServer, etc).
2893
+ */
2894
+ interface Plugin<A = any> extends Rolldown.Plugin<A> {
2895
+ /**
2896
+ * Perform custom handling of HMR updates.
2897
+ * The handler receives an options containing changed filename, timestamp, a
2898
+ * list of modules affected by the file change, and the dev server instance.
2899
+ *
2900
+ * - The hook can return a filtered list of modules to narrow down the update.
2901
+ * e.g. for a Vue SFC, we can narrow down the part to update by comparing
2902
+ * the descriptors.
2903
+ *
2904
+ * - The hook can also return an empty array and then perform custom updates
2905
+ * by sending a custom hmr payload via environment.hot.send().
2906
+ *
2907
+ * - If the hook doesn't return a value, the hmr update will be performed as
2908
+ * normal.
2909
+ */
2910
+ hotUpdate?: ObjectHook<(this: MinimalPluginContext & {
2911
+ environment: DevEnvironment;
2912
+ }, options: HotUpdateOptions) => Array<EnvironmentModuleNode> | void | Promise<Array<EnvironmentModuleNode> | void>>;
2913
+ /**
2914
+ * extend hooks with ssr flag
2915
+ */
2916
+ resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
2917
+ kind?: ImportKind;
2918
+ custom?: CustomPluginOptions;
2919
+ ssr?: boolean | undefined;
2920
+
2921
+ isEntry: boolean;
2922
+ }) => Promise<ResolveIdResult> | ResolveIdResult, {
2923
+ filter?: {
2924
+ id?: StringFilter<RegExp>;
2925
+ };
2926
+ }>;
2927
+ load?: ObjectHook<(this: PluginContext, id: string, options?: {
2928
+ ssr?: boolean | undefined;
2929
+ }) => Promise<LoadResult> | LoadResult, {
2930
+ filter?: {
2931
+ id?: StringFilter;
2932
+ };
2933
+ }>;
2934
+ transform?: ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: {
2935
+ moduleType: ModuleType;
2936
+ ssr?: boolean | undefined;
2937
+ }) => Promise<Rolldown.TransformResult> | Rolldown.TransformResult, {
2938
+ filter?: {
2939
+ id?: StringFilter;
2940
+ code?: StringFilter;
2941
+ moduleType?: ModuleTypeFilter;
2942
+ };
2943
+ }>;
2944
+ /**
2945
+ * Opt-in this plugin into the shared plugins pipeline.
2946
+ * For backward-compatibility, plugins are re-recreated for each environment
2947
+ * during `vite build --app`
2948
+ * We have an opt-in per plugin, and a general `builder.sharedPlugins`
2949
+ * In a future major, we'll flip the default to be shared by default
2950
+ * @experimental
2951
+ */
2952
+ sharedDuringBuild?: boolean;
2953
+ /**
2954
+ * Opt-in this plugin into per-environment buildStart and buildEnd during dev.
2955
+ * For backward-compatibility, the buildStart hook is called only once during
2956
+ * dev, for the client environment. Plugins can opt-in to be called
2957
+ * per-environment, aligning with the build hook behavior.
2958
+ * @experimental
2959
+ */
2960
+ perEnvironmentStartEndDuringDev?: boolean;
2961
+ /**
2962
+ * Opt-in this plugin into per-environment watchChange during dev.
2963
+ * For backward-compatibility, the watchChange hook is called only once during
2964
+ * dev, for the client environment. Plugins can opt-in to be called
2965
+ * per-environment, aligning with the watchChange hook behavior.
2966
+ * @experimental
2967
+ */
2968
+ perEnvironmentWatchChangeDuringDev?: boolean;
2969
+ /**
2970
+ * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering
2971
+ * is still subject to the `order` property in the hook object.
2972
+ *
2973
+ * Plugin invocation order:
2974
+ * - alias resolution
2975
+ * - `enforce: 'pre'` plugins
2976
+ * - vite core plugins
2977
+ * - normal plugins
2978
+ * - vite build plugins
2979
+ * - `enforce: 'post'` plugins
2980
+ * - vite build post plugins
2981
+ */
2982
+ enforce?: "pre" | "post";
2983
+ /**
2984
+ * Apply the plugin only for serve or build, or on certain conditions.
2985
+ */
2986
+ apply?: "serve" | "build" | ((this: void, config: UserConfig, env: ConfigEnv) => boolean);
2987
+ /**
2988
+ * Define environments where this plugin should be active
2989
+ * By default, the plugin is active in all environments
2990
+ * @experimental
2991
+ */
2992
+ applyToEnvironment?: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption;
2993
+ /**
2994
+ * Modify vite config before it's resolved. The hook can either mutate the
2995
+ * passed-in config directly, or return a partial config object that will be
2996
+ * deeply merged into existing config.
2997
+ *
2998
+ * Note: User plugins are resolved before running this hook so injecting other
2999
+ * plugins inside the `config` hook will have no effect.
3000
+ */
3001
+ config?: ObjectHook<(this: ConfigPluginContext, config: UserConfig, env: ConfigEnv) => Omit<UserConfig, "plugins"> | null | void | Promise<Omit<UserConfig, "plugins"> | null | void>>;
3002
+ /**
3003
+ * Modify environment configs before it's resolved. The hook can either mutate the
3004
+ * passed-in environment config directly, or return a partial config object that will be
3005
+ * deeply merged into existing config.
3006
+ * This hook is called for each environment with a partially resolved environment config
3007
+ * that already accounts for the default environment config values set at the root level.
3008
+ * If plugins need to modify the config of a given environment, they should do it in this
3009
+ * hook instead of the config hook. Leaving the config hook only for modifying the root
3010
+ * default environment config.
3011
+ */
3012
+ configEnvironment?: ObjectHook<(this: ConfigPluginContext, name: string, config: EnvironmentOptions, env: ConfigEnv & {
3013
+ /**
3014
+ * Whether this environment is SSR environment and `ssr.target` is set to `'webworker'`.
3015
+ * Only intended to be used for backward compatibility.
3016
+ */
3017
+ isSsrTargetWebworker?: boolean;
3018
+ }) => EnvironmentOptions | null | void | Promise<EnvironmentOptions | null | void>>;
3019
+ /**
3020
+ * Use this hook to read and store the final resolved vite config.
3021
+ */
3022
+ configResolved?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, config: ResolvedConfig) => void | Promise<void>>;
3023
+ /**
3024
+ * Configure the vite server. The hook receives the {@link ViteDevServer}
3025
+ * instance. This can also be used to store a reference to the server
3026
+ * for use in other hooks.
3027
+ *
3028
+ * The hooks will be called before internal middlewares are applied. A hook
3029
+ * can return a post hook that will be called after internal middlewares
3030
+ * are applied. Hook can be async functions and will be called in series.
3031
+ */
3032
+ configureServer?: ObjectHook<ServerHook>;
3033
+ /**
3034
+ * Configure the preview server. The hook receives the {@link PreviewServer}
3035
+ * instance. This can also be used to store a reference to the server
3036
+ * for use in other hooks.
3037
+ *
3038
+ * The hooks are called before other middlewares are applied. A hook can
3039
+ * return a post hook that will be called after other middlewares are
3040
+ * applied. Hooks can be async functions and will be called in series.
3041
+ */
3042
+ configurePreviewServer?: ObjectHook<PreviewServerHook>;
3043
+ /**
3044
+ * Transform index.html.
3045
+ * The hook receives the following arguments:
3046
+ *
3047
+ * - html: string
3048
+ * - ctx: IndexHtmlTransformContext, which contains:
3049
+ * - path: public path when served
3050
+ * - filename: filename on disk
3051
+ * - server?: ViteDevServer (only present during serve)
3052
+ * - bundle?: rollup.OutputBundle (only present during build)
3053
+ * - chunk?: rollup.OutputChunk
3054
+ * - originalUrl?: string
3055
+ *
3056
+ * It can either return a transformed string, or a list of html tag
3057
+ * descriptors that will be injected into the `<head>` or `<body>`.
3058
+ *
3059
+ * By default the transform is applied **after** vite's internal html
3060
+ * transform. If you need to apply the transform before vite, use an object:
3061
+ * `{ order: 'pre', handler: hook }`
3062
+ */
3063
+ transformIndexHtml?: IndexHtmlTransform;
3064
+ /**
3065
+ * Build Environments
3066
+ *
3067
+ * @experimental
3068
+ */
3069
+ buildApp?: ObjectHook<BuildAppHook>;
3070
+ /**
3071
+ * Perform custom handling of HMR updates.
3072
+ * The handler receives a context containing changed filename, timestamp, a
3073
+ * list of modules affected by the file change, and the dev server instance.
3074
+ *
3075
+ * - The hook can return a filtered list of modules to narrow down the update.
3076
+ * e.g. for a Vue SFC, we can narrow down the part to update by comparing
3077
+ * the descriptors.
3078
+ *
3079
+ * - The hook can also return an empty array and then perform custom updates
3080
+ * by sending a custom hmr payload via server.ws.send().
3081
+ *
3082
+ * - If the hook doesn't return a value, the hmr update will be performed as
3083
+ * normal.
3084
+ */
3085
+ handleHotUpdate?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, ctx: HmrContext) => Array<ModuleNode> | void | Promise<Array<ModuleNode> | void>>;
3086
+ /**
3087
+ * This hook is not supported by Rolldown yet. But the type is declared for compatibility.
3088
+ *
3089
+ * @deprecated This hook is **not** deprecated. It is marked as deprecated just to make it clear that this hook is currently a no-op.
3090
+ */
3091
+ shouldTransformCachedModule?: ObjectHook<(this: PluginContext, options: {
3092
+ code: string;
3093
+ id: string;
3094
+ meta: CustomPluginOptions;
3095
+ moduleSideEffects: boolean | "no-treeshake";
3096
+ }) => boolean | null | void>;
3097
+ }
3098
+ type HookHandler<T> = T extends ObjectHook<infer H> ? H : T;
3099
+ type PluginWithRequiredHook<K extends keyof Plugin> = Plugin & { [P in K]: NonNullable<Plugin[P]>; };
3100
+ type Thenable<T> = T | Promise<T>;
3101
+ type FalsyPlugin = false | null | undefined;
3102
+ type PluginOption = Thenable<Plugin | {
3103
+ name: string;
3104
+ } | FalsyPlugin | PluginOption[]>;
3105
+ /**
3106
+ * @experimental
3107
+ */
3108
+ export declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
3109
+ //#endregion
3110
+ //#region src/node/idResolver.d.ts
3111
+ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: string, aliasOnly?: boolean) => Promise<string | undefined>;
3112
+ /**
3113
+ * Create an internal resolver to be used in special scenarios, e.g.
3114
+ * optimizer and handling css @imports
3115
+ */
3116
+ export declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3117
+ //#endregion
3118
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.26_tsx@4.23.12_yaml@2.9.0/node_modules/postcss-load-config/src/index.d.ts
3119
+ type ConfigPlugin = Transformer | PostCSS.Plugin | Processor;
3120
+ interface Config {
3121
+ parser?: string | ProcessOptions['parser'] | false;
3122
+ stringifier?: string | ProcessOptions['stringifier'] | false;
3123
+ syntax?: string | ProcessOptions['syntax'] | false;
3124
+ map?: string | false;
3125
+ from?: string;
3126
+ to?: string;
3127
+ plugins?: Array<ConfigPlugin | false> | Record<string, object | false>;
3128
+ }
3129
+ //#endregion
3130
+ //#region src/node/plugins/css.d.ts
3131
+ interface CSSOptions {
3132
+ /**
3133
+ * Using lightningcss is an experimental option to handle CSS modules,
3134
+ * assets and imports via Lightning CSS. It requires to install it as a
3135
+ * peer dependency.
3136
+ *
3137
+ * @default 'postcss'
3138
+ * @experimental
3139
+ */
3140
+ transformer?: "postcss" | "lightningcss";
3141
+ /**
3142
+ * https://github.com/css-modules/postcss-modules
3143
+ */
3144
+ modules?: CSSModulesOptions | false;
3145
+ /**
3146
+ * Options for preprocessors.
3147
+ *
3148
+ * In addition to options specific to each processors, Vite supports `additionalData` option.
3149
+ * The `additionalData` option can be used to inject extra code for each style content.
3150
+ */
3151
+ preprocessorOptions?: {
3152
+ scss?: SassPreprocessorOptions;
3153
+ sass?: SassPreprocessorOptions;
3154
+ less?: LessPreprocessorOptions;
3155
+ styl?: StylusPreprocessorOptions;
3156
+ stylus?: StylusPreprocessorOptions;
3157
+ };
3158
+ /**
3159
+ * If this option is set, preprocessors will run in workers when possible.
3160
+ * `true` means the number of CPUs minus 1.
3161
+ *
3162
+ * @default true
3163
+ */
3164
+ preprocessorMaxWorkers?: number | true;
3165
+ postcss?: string | (PostCSS.ProcessOptions & {
3166
+ plugins?: PostCSS.AcceptedPlugin[];
3167
+ });
3168
+ /**
3169
+ * Enables css sourcemaps during dev
3170
+ * @default false
3171
+ * @experimental
3172
+ */
3173
+ devSourcemap?: boolean;
3174
+ /**
3175
+ * @experimental
3176
+ */
3177
+ lightningcss?: lightningcssOptions_LightningCSSOptions;
3178
+ }
3179
+ interface CSSModulesOptions {
3180
+ getJSON?: (cssFileName: string, json: Record<string, string>, outputFileName: string) => void;
3181
+ scopeBehaviour?: "global" | "local";
3182
+ globalModulePaths?: RegExp[];
3183
+ exportGlobals?: boolean;
3184
+ generateScopedName?: string | ((name: string, filename: string, css: string) => string);
3185
+ hashPrefix?: string;
3186
+ /**
3187
+ * default: undefined
3188
+ */
3189
+ localsConvention?: "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly" | ((originalClassName: string, generatedClassName: string, inputFile: string) => string);
3190
+ }
3191
+ type ResolvedCSSOptions = Omit<CSSOptions, "lightningcss"> & Required<Pick<CSSOptions, "transformer" | "devSourcemap">> & {
3192
+ lightningcss?: lightningcssOptions_LightningCSSOptions;
3193
+ };
3194
+ interface PreprocessCSSResult {
3195
+ code: string;
3196
+ map?: SourceMapInput;
3197
+ modules?: Record<string, string>;
3198
+ deps?: Set<string>;
3199
+ }
3200
+ /**
3201
+ * @experimental
3202
+ */
3203
+ export declare function preprocessCSS(code: string, filename: string, config: ResolvedConfig): Promise<PreprocessCSSResult>;
3204
+ export declare function formatPostcssSourceMap(rawMap: ExistingRawSourceMap, file: string): Promise<ExistingRawSourceMap>;
3205
+ type PreprocessorAdditionalDataResult = string | {
3206
+ content: string;
3207
+ map?: ExistingRawSourceMap;
3208
+ };
3209
+ type PreprocessorAdditionalData = string | ((source: string, filename: string) => PreprocessorAdditionalDataResult | Promise<PreprocessorAdditionalDataResult>);
3210
+ type SassPreprocessorOptions = {
3211
+ additionalData?: PreprocessorAdditionalData;
3212
+ } & SassModernPreprocessBaseOptions;
3213
+ type LessPreprocessorOptions = {
3214
+ additionalData?: PreprocessorAdditionalData;
3215
+ } & LessPreprocessorBaseOptions;
3216
+ type StylusPreprocessorOptions = {
3217
+ additionalData?: PreprocessorAdditionalData;
3218
+ } & StylusPreprocessorBaseOptions;
3219
+ //#endregion
3220
+ //#region src/node/plugins/esbuild.d.ts
3221
+ interface ESBuildOptions extends esbuildOptions_EsbuildTransformOptions {
3222
+ include?: string | RegExp | ReadonlyArray<string | RegExp>;
3223
+ exclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3224
+ jsxInject?: string;
3225
+ /**
3226
+ * This option is not respected. Use `build.minify` instead.
3227
+ */
3228
+ minify?: never;
3229
+ }
3230
+ type ESBuildTransformResult = Omit<EsbuildTransformResult, "map"> & {
3231
+ map: SourceMap;
3232
+ };
3233
+ export declare function transformWithEsbuild(code: string, filename: string, options?: esbuildOptions_EsbuildTransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher, ignoreEsbuildWarning?: boolean): Promise<ESBuildTransformResult>;
3234
+ //#endregion
3235
+ //#region src/node/plugins/json.d.ts
3236
+ interface JsonOptions {
3237
+ /**
3238
+ * Generate a named export for every property of the JSON object
3239
+ * @default true
3240
+ */
3241
+ namedExports?: boolean;
3242
+ /**
3243
+ * Generate performant output as JSON.parse("stringified").
3244
+ *
3245
+ * When set to 'auto', the data will be stringified only if the data is bigger than 10kB.
3246
+ * @default 'auto'
3247
+ */
3248
+ stringify?: boolean | "auto";
3249
+ }
3250
+ //#endregion
3251
+ //#region src/node/assetSource.d.ts
3252
+ /**
3253
+ * Defines which attributes of an HTML element should be treated as asset sources.
3254
+ * Used in `html.additionalAssetSources` configuration.
3255
+ */
3256
+ interface HtmlAssetSource {
3257
+ /**
3258
+ * Attributes that contain a single asset URL.
3259
+ * @example ['src', 'data-src-dark']
3260
+ */
3261
+ srcAttributes?: string[];
3262
+ /**
3263
+ * Attributes that contain srcset-format URLs.
3264
+ * @example ['srcset', 'imagesrcset']
3265
+ */
3266
+ srcsetAttributes?: string[];
3267
+ /**
3268
+ * Called before handling an attribute to determine if it should be processed.
3269
+ */
3270
+ filter?: (data: HtmlAssetSourceFilterData) => boolean;
3271
+ }
3272
+ interface HtmlAssetSourceFilterData {
3273
+ key: string;
3274
+ value: string;
3275
+ attributes: Record<string, string>;
3276
+ }
3277
+ //#endregion
3278
+ //#region src/node/ssr/index.d.ts
3279
+ type SSRTarget = "node" | "webworker";
3280
+ type SsrDepOptimizationConfig = DepOptimizationConfig;
3281
+ interface SSROptions {
3282
+ noExternal?: string | RegExp | (string | RegExp)[] | true;
3283
+ external?: string[] | true;
3284
+ /**
3285
+ * Define the target for the ssr build. The browser field in package.json
3286
+ * is ignored for node but used if webworker is the target
3287
+ * This option will be removed in a future major version
3288
+ * @default 'node'
3289
+ */
3290
+ target?: SSRTarget;
3291
+ /**
3292
+ * Control over which dependencies are optimized during SSR and esbuild options
3293
+ * During build:
3294
+ * no external CJS dependencies are optimized by default
3295
+ * During dev:
3296
+ * explicit no external CJS dependencies are optimized by default
3297
+ * @experimental
3298
+ */
3299
+ optimizeDeps?: SsrDepOptimizationConfig;
3300
+ resolve?: {
3301
+ /**
3302
+ * Conditions that are used in the plugin pipeline. The default value is the root config's `resolve.conditions`.
3303
+ *
3304
+ * Use this to override the default ssr conditions for the ssr build.
3305
+ *
3306
+ * @default rootConfig.resolve.conditions
3307
+ */
3308
+ conditions?: string[];
3309
+ /**
3310
+ * Conditions that are used during ssr import (including `ssrLoadModule`) of externalized dependencies.
3311
+ *
3312
+ * @default ['node', 'module-sync']
3313
+ */
3314
+ externalConditions?: string[];
3315
+ mainFields?: string[];
3316
+ };
3317
+ }
3318
+ interface ResolvedSSROptions extends SSROptions {
3319
+ target: SSRTarget;
3320
+ optimizeDeps: SsrDepOptimizationConfig;
3321
+ }
3322
+ //#endregion
3323
+ //#region src/node/plugins/oxc.d.ts
3324
+ interface OxcOptions extends Omit<rolldown_utils_TransformOptions, "cwd" | "sourceType" | "lang" | "sourcemap" | "helpers" | "inject" | "tsconfig" | "inputMap"> {
3325
+ include?: string | RegExp | ReadonlyArray<string | RegExp>;
3326
+ exclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3327
+ jsxInject?: string;
3328
+ jsxRefreshInclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3329
+ jsxRefreshExclude?: string | RegExp | ReadonlyArray<string | RegExp>;
3330
+ }
3331
+ export declare function transformWithOxc(code: string, filename: string, options?: rolldown_utils_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<Omit<rolldown_utils_TransformResult, "errors">>;
3332
+ //#endregion
3333
+ //#region src/node/config.d.ts
3334
+ interface ConfigEnv {
3335
+ /**
3336
+ * 'serve': during dev (`vite` command)
3337
+ * 'build': when building for production (`vite build` command)
3338
+ */
3339
+ command: "build" | "serve";
3340
+ mode: string;
3341
+ isSsrBuild?: boolean;
3342
+ isPreview?: boolean;
3343
+ }
3344
+ /**
3345
+ * spa: include SPA fallback middleware and configure sirv with `single: true` in preview
3346
+ *
3347
+ * mpa: only include non-SPA HTML middlewares
3348
+ *
3349
+ * custom: don't include HTML middlewares
3350
+ */
3351
+ type AppType = "spa" | "mpa" | "custom";
3352
+ type UserConfigFnObject = (env: ConfigEnv) => UserConfig;
3353
+ type UserConfigFnPromise = (env: ConfigEnv) => Promise<UserConfig>;
3354
+ type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<UserConfig>;
3355
+ type UserConfigExport = UserConfig | Promise<UserConfig> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
3356
+ /**
3357
+ * Type helper to make it easier to use vite.config.ts
3358
+ * accepts a direct {@link UserConfig} object, or a function that returns it.
3359
+ * The function receives a {@link ConfigEnv} object.
3360
+ */
3361
+ export declare function defineConfig(config: UserConfig): UserConfig;
3362
+ export declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;
3363
+ export declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
3364
+ export declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise;
3365
+ export declare function defineConfig(config: UserConfigFn): UserConfigFn;
3366
+ export declare function defineConfig(config: UserConfigExport): UserConfigExport;
3367
+ interface CreateDevEnvironmentContext {
3368
+ ws: WebSocketServer;
3369
+ }
3370
+ interface DevEnvironmentOptions {
3371
+ /**
3372
+ * Files to be pre-transformed. Supports glob patterns.
3373
+ */
3374
+ warmup?: string[];
3375
+ /**
3376
+ * Pre-transform known direct imports
3377
+ * defaults to true for the client environment, false for the rest
3378
+ */
3379
+ preTransformRequests?: boolean;
3380
+ /**
3381
+ * Enables sourcemaps during dev
3382
+ * @default { js: true }
3383
+ * @experimental
3384
+ */
3385
+ sourcemap?: boolean | {
3386
+ js?: boolean;
3387
+ css?: boolean;
3388
+ };
3389
+ /**
3390
+ * Whether or not to ignore-list source files in the dev server sourcemap, used to populate
3391
+ * the [`x_google_ignoreList` source map extension](https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension).
3392
+ *
3393
+ * By default, it excludes all paths containing `node_modules`. You can pass `false` to
3394
+ * disable this behavior, or, for full control, a function that takes the source path and
3395
+ * sourcemap path and returns whether to ignore the source path.
3396
+ */
3397
+ sourcemapIgnoreList?: false | ((sourcePath: string, sourcemapPath: string) => boolean);
3398
+ /**
3399
+ * create the Dev Environment instance
3400
+ */
3401
+ createEnvironment?: (name: string, config: ResolvedConfig, context: CreateDevEnvironmentContext) => Promise<DevEnvironment> | DevEnvironment;
3402
+ /**
3403
+ * For environments that support a full-reload, like the client, we can short-circuit when
3404
+ * restarting the server throwing early to stop processing current files. We avoided this for
3405
+ * SSR requests. Maybe this is no longer needed.
3406
+ * @experimental
3407
+ */
3408
+ recoverable?: boolean;
3409
+ /**
3410
+ * For environments associated with a module runner.
3411
+ * By default, it is false for the client environment and true for non-client environments.
3412
+ * This option can also be used instead of the removed config.experimental.skipSsrTransform.
3413
+ */
3414
+ moduleRunnerTransform?: boolean;
3415
+ }
3416
+ type ResolvedDevEnvironmentOptions = Omit<Required<DevEnvironmentOptions>, "sourcemapIgnoreList"> & {
3417
+ sourcemapIgnoreList: Exclude<DevEnvironmentOptions["sourcemapIgnoreList"], false | undefined>;
3418
+ };
3419
+ type AllResolveOptions = ResolveOptions & {
3420
+ alias?: AliasOptions;
3421
+ };
3422
+ interface SharedEnvironmentOptions {
3423
+ /**
3424
+ * Entry points of the application.
3425
+ *
3426
+ * Paths are resolved relative to the project root.
3427
+ */
3428
+ input?: InputOption;
3429
+ /**
3430
+ * Define global variable replacements.
3431
+ * Entries will be defined on `window` during dev and replaced during build.
3432
+ */
3433
+ define?: Record<string, any>;
3434
+ /**
3435
+ * Configure resolver
3436
+ */
3437
+ resolve?: EnvironmentResolveOptions;
3438
+ /**
3439
+ * Define if this environment is used for Server-Side Rendering
3440
+ * @default 'server' if it isn't the client environment
3441
+ */
3442
+ consumer?: "client" | "server";
3443
+ /**
3444
+ * If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime.
3445
+ * Otherwise, it is statically replaced as an empty object.
3446
+ */
3447
+ keepProcessEnv?: boolean;
3448
+ /**
3449
+ * Optimize deps config
3450
+ */
3451
+ optimizeDeps?: DepOptimizationOptions;
3452
+ /**
3453
+ * Whether this environment produces a bundled output.
3454
+ *
3455
+ * During `build`, this defaults to `true` for every environment.
3456
+ * During `serve`, this defaults to `true` only for the client environment
3457
+ * when `experimental.bundledDev` is enabled, and `false` otherwise.
3458
+ * Setting this explicitly on an environment always overrides the default.
3459
+ *
3460
+ * @experimental
3461
+ */
3462
+ isBundled?: boolean;
3463
+ }
3464
+ interface EnvironmentOptions extends SharedEnvironmentOptions {
3465
+ /**
3466
+ * Dev specific options
3467
+ */
3468
+ dev?: DevEnvironmentOptions;
3469
+ /**
3470
+ * Build specific options
3471
+ */
3472
+ build?: BuildEnvironmentOptions;
3473
+ }
3474
+ type ResolvedResolveOptions = Required<ResolveOptions>;
3475
+ type ResolvedEnvironmentOptions = {
3476
+ input?: InputOption;
3477
+ define?: Record<string, any>;
3478
+ resolve: ResolvedResolveOptions;
3479
+ consumer: "client" | "server";
3480
+ keepProcessEnv?: boolean;
3481
+ optimizeDeps: DepOptimizationOptions;
3482
+ dev: ResolvedDevEnvironmentOptions;
3483
+ build: ResolvedBuildEnvironmentOptions;
3484
+ isBundled: boolean;
3485
+ plugins: readonly Plugin[];
3486
+ };
3487
+ type DefaultEnvironmentOptions = Omit<EnvironmentOptions, "consumer" | "resolve" | "keepProcessEnv"> & {
3488
+ resolve?: AllResolveOptions;
3489
+ };
3490
+ interface UserConfig extends DefaultEnvironmentOptions {
3491
+ /**
3492
+ * Project root directory. Can be an absolute path, or a path relative from
3493
+ * the location of the config file itself.
3494
+ * @default process.cwd()
3495
+ */
3496
+ root?: string;
3497
+ /**
3498
+ * Base public path when served in development or production.
3499
+ * @default '/'
3500
+ */
3501
+ base?: string;
3502
+ /**
3503
+ * Directory to serve as plain static assets. Files in this directory are
3504
+ * served and copied to build dist dir as-is without transform. The value
3505
+ * can be either an absolute file system path or a path relative to project root.
3506
+ *
3507
+ * Set to `false` or an empty string to disable copied static assets to build dist dir.
3508
+ * @default 'public'
3509
+ */
3510
+ publicDir?: string | false;
3511
+ /**
3512
+ * Directory to save cache files. Files in this directory are pre-bundled
3513
+ * deps or some other cache files that generated by vite, which can improve
3514
+ * the performance. You can use `--force` flag or manually delete the directory
3515
+ * to regenerate the cache files. The value can be either an absolute file
3516
+ * system path or a path relative to project root.
3517
+ * Default to `.vite` when neither a `package.json` nor a `node_modules` directory is detected.
3518
+ * @default 'node_modules/.vite'
3519
+ */
3520
+ cacheDir?: string;
3521
+ /**
3522
+ * Explicitly set a mode to run in. This will override the default mode for
3523
+ * each command, and can be overridden by the command line --mode option.
3524
+ */
3525
+ mode?: string;
3526
+ /**
3527
+ * Array of vite plugins to use.
3528
+ */
3529
+ plugins?: PluginOption[];
3530
+ /**
3531
+ * HTML related options
3532
+ */
3533
+ html?: HTMLOptions;
3534
+ /**
3535
+ * CSS related options (preprocessors and CSS modules)
3536
+ */
3537
+ css?: CSSOptions;
3538
+ /**
3539
+ * JSON loading options
3540
+ */
3541
+ json?: JsonOptions;
3542
+ /**
3543
+ * Transform options to pass to esbuild.
3544
+ * Or set to `false` to disable esbuild.
3545
+ *
3546
+ * @deprecated Use `oxc` option instead.
3547
+ */
3548
+ esbuild?: ESBuildOptions | false;
3549
+ /**
3550
+ * Transform options to pass to Oxc.
3551
+ * Or set to `false` to disable Oxc.
3552
+ */
3553
+ oxc?: OxcOptions | false;
3554
+ /**
3555
+ * Specify additional picomatch patterns to be treated as static assets.
3556
+ */
3557
+ assetsInclude?: string | RegExp | (string | RegExp)[];
3558
+ /**
3559
+ * Builder specific options
3560
+ * @experimental
3561
+ */
3562
+ builder?: BuilderOptions;
3563
+ /**
3564
+ * Server specific options, e.g. host, port, https...
3565
+ */
3566
+ server?: ServerOptions$1;
3567
+ /**
3568
+ * Preview specific options, e.g. host, port, https...
3569
+ */
3570
+ preview?: PreviewOptions;
3571
+ /**
3572
+ * Experimental features
3573
+ *
3574
+ * Features under this field could change in the future and might NOT follow semver.
3575
+ * Please be careful and always pin Vite's version when using them.
3576
+ * @experimental
3577
+ */
3578
+ experimental?: ExperimentalOptions;
3579
+ /**
3580
+ * Options to opt-in to future behavior
3581
+ */
3582
+ future?: FutureOptions | "warn";
3583
+ /**
3584
+ * Legacy options
3585
+ *
3586
+ * Features under this field only follow semver for patches, they could be removed in a
3587
+ * future minor version. Please always pin Vite's version to a minor when using them.
3588
+ */
3589
+ legacy?: LegacyOptions;
3590
+ /**
3591
+ * Log level.
3592
+ * @default 'info'
3593
+ */
3594
+ logLevel?: LogLevel;
3595
+ /**
3596
+ * Custom logger.
3597
+ */
3598
+ customLogger?: Logger;
3599
+ /**
3600
+ * @default true
3601
+ */
3602
+ clearScreen?: boolean;
3603
+ /**
3604
+ * Environment files directory. Can be an absolute path, or a path relative from
3605
+ * root.
3606
+ * @default root
3607
+ */
3608
+ envDir?: string | false;
3609
+ /**
3610
+ * Env variables starts with `envPrefix` will be exposed to your client source code via import.meta.env.
3611
+ * @default 'VITE_'
3612
+ */
3613
+ envPrefix?: string | string[];
3614
+ /**
3615
+ * Worker bundle options
3616
+ */
3617
+ worker?: {
3618
+ /**
3619
+ * Output format for worker bundle
3620
+ * @default 'iife'
3621
+ */
3622
+ format?: "es" | "iife";
3623
+ /**
3624
+ * Vite plugins that apply to worker bundle. The plugins returned by this function
3625
+ * should be new instances every time it is called, because they are used for each
3626
+ * rolldown worker bundling process.
3627
+ */
3628
+ plugins?: () => PluginOption[];
3629
+ /**
3630
+ * Alias to `rolldownOptions`.
3631
+ * @deprecated Use `rolldownOptions` instead.
3632
+ */
3633
+ rollupOptions?: Omit<RolldownOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3634
+ /**
3635
+ * Rolldown options to build worker bundle
3636
+ */
3637
+ rolldownOptions?: Omit<RolldownOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
3638
+ };
3639
+ /**
3640
+ * Dep optimization options
3641
+ */
3642
+ optimizeDeps?: DepOptimizationOptions;
3643
+ /**
3644
+ * SSR specific options
3645
+ * We could make SSROptions be a EnvironmentOptions if we can abstract
3646
+ * external/noExternal for environments in general.
3647
+ */
3648
+ ssr?: SSROptions;
3649
+ /**
3650
+ * Environment overrides
3651
+ */
3652
+ environments?: Record<string, EnvironmentOptions>;
3653
+ /**
3654
+ * Whether your application is a Single Page Application (SPA),
3655
+ * a Multi-Page Application (MPA), or Custom Application (SSR
3656
+ * and frameworks with custom HTML handling)
3657
+ * @default 'spa'
3658
+ */
3659
+ appType?: AppType;
3660
+ /**
3661
+ * Enable devtools integration. Ensure that `@vitejs/devtools` is installed as a dependency.
3662
+ * This feature is currently supported only in build mode.
3663
+ * @experimental
3664
+ * @default false
3665
+ */
3666
+ devtools?: boolean | DevToolsConfig;
3667
+ }
3668
+ interface HTMLOptions {
3669
+ /**
3670
+ * A nonce value placeholder that will be used when generating script/style tags.
3671
+ *
3672
+ * Make sure that this placeholder will be replaced with a unique value for each request by the server.
3673
+ */
3674
+ cspNonce?: string;
3675
+ /**
3676
+ * Define additional HTML elements and attributes to be treated as asset sources.
3677
+ * This extends the built-in list that includes standard elements like `<img src>`, `<video src>`, etc.
3678
+ *
3679
+ * @example
3680
+ * ```ts
3681
+ * html: {
3682
+ * additionalAssetSources: {
3683
+ * // Custom web component
3684
+ * 'html-import': { srcAttributes: ['src'] },
3685
+ * // Add data-* attributes to existing element
3686
+ * 'img': { srcAttributes: ['data-src-dark', 'data-src-light'] }
3687
+ * }
3688
+ * }
3689
+ * ```
3690
+ */
3691
+ additionalAssetSources?: Record<string, HtmlAssetSource>;
3692
+ }
3693
+ interface FutureOptions {
3694
+ removePluginHookHandleHotUpdate?: "warn";
3695
+ removePluginHookSsrArgument?: "warn";
3696
+ removeServerModuleGraph?: "warn";
3697
+ removeServerReloadModule?: "warn";
3698
+ removeServerPluginContainer?: "warn";
3699
+ removeServerHot?: "warn";
3700
+ removeServerTransformRequest?: "warn";
3701
+ removeServerWarmupRequest?: "warn";
3702
+ removeSsrLoadModule?: "warn";
3703
+ }
3704
+ interface ExperimentalOptions {
3705
+ /**
3706
+ * Append fake `&lang.(ext)` when queries are specified, to preserve the file extension for following plugins to process.
3707
+ *
3708
+ * @experimental
3709
+ * @default false
3710
+ */
3711
+ importGlobRestoreExtension?: boolean;
3712
+ /**
3713
+ * Allow finegrain control over assets and public files paths
3714
+ *
3715
+ * @experimental
3716
+ */
3717
+ renderBuiltUrl?: RenderBuiltAssetUrl;
3718
+ /**
3719
+ * Enables support of HMR partial accept via `import.meta.hot.acceptExports`.
3720
+ *
3721
+ * @experimental
3722
+ * @default false
3723
+ */
3724
+ hmrPartialAccept?: boolean;
3725
+ /**
3726
+ * Enable full bundle mode during `serve`.
3727
+ *
3728
+ * This seeds the default for the client environment's `isBundled` option.
3729
+ * Other environments default to `false` during `serve`. Any environment
3730
+ * can override its `isBundled` value via `environments[name].isBundled`.
3731
+ *
3732
+ * This is highly experimental.
3733
+ *
3734
+ * HMR semantics under full bundle mode differ from the middleware-based dev server
3735
+ * in two ways (boundaries are computed in the browser from runtime state, not
3736
+ * statically on the server):
3737
+ *
3738
+ * - Acceptance counts only when it executed: an `import.meta.hot.accept()` that
3739
+ * is in a dead branch does not suppress the update and falls back to a full reload.
3740
+ * - `hot.invalidate()` is handled fully client-side.
3741
+ *
3742
+ * @experimental
3743
+ * @default false
3744
+ */
3745
+ bundledDev?: boolean;
3746
+ }
3747
+ interface LegacyOptions {
3748
+ /**
3749
+ * In Vite 6.0.8 and below, WebSocket server was able to connect from any web pages. However,
3750
+ * that could be exploited by a malicious web page.
3751
+ *
3752
+ * In Vite 6.0.9+, the WebSocket server now requires a token to connect from a web page.
3753
+ * But this may break some plugins and frameworks that connects to the WebSocket server
3754
+ * on their own. Enabling this option will make Vite skip the token check.
3755
+ *
3756
+ * **We do not recommend enabling this option unless you are sure that you are fine with
3757
+ * that security weakness.**
3758
+ */
3759
+ skipWebSocketTokenCheck?: boolean;
3760
+ /**
3761
+ * Opt-in to the pre-Vite 8 CJS interop behavior, which was inconsistent.
3762
+ *
3763
+ * In pre-Vite 8 versions, Vite had inconsistent CJS interop behavior. This was due to
3764
+ * the different behavior of esbuild and the Rollup commonjs plugin.
3765
+ * Vite 8+ uses Rolldown for both the dependency optimization in dev and the production build,
3766
+ * which aligns the behavior to esbuild.
3767
+ *
3768
+ * See the Vite 8 migration guide for more details.
3769
+ */
3770
+ inconsistentCjsInterop?: boolean;
3771
+ }
3772
+ interface ResolvedWorkerOptions {
3773
+ format: "es" | "iife";
3774
+ plugins: (bundleChain: string[]) => Promise<ResolvedConfig>;
3775
+ /**
3776
+ * @deprecated Use `rolldownOptions` instead.
3777
+ */
3778
+ rollupOptions: RolldownOptions;
3779
+ rolldownOptions: RolldownOptions;
3780
+ }
3781
+ interface InlineConfig extends UserConfig {
3782
+ configFile?: string | false;
3783
+ /** @experimental */
3784
+ configLoader?: "bundle" | "runner" | "native";
3785
+ /** @deprecated */
3786
+ envFile?: false;
3787
+ forceOptimizeDeps?: boolean;
3788
+ }
3789
+ interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "json" | "assetsInclude" | "optimizeDeps" | "worker" | "build" | "dev" | "environments" | "experimental" | "future" | "server" | "preview" | "devtools"> & {
3790
+ configFile: string | undefined;
3791
+ configFileDependencies: string[];
3792
+ inlineConfig: InlineConfig;
3793
+ root: string;
3794
+ base: string;
3795
+ publicDir: string;
3796
+ cacheDir: string;
3797
+ command: "build" | "serve";
3798
+ mode: string;
3799
+ isWorker: boolean;
3800
+ isProduction: boolean;
3801
+ envDir: string | false;
3802
+ env: Record<string, any>;
3803
+ resolve: Required<ResolveOptions> & {
3804
+ alias: Alias[];
3805
+ };
3806
+ plugins: readonly Plugin[];
3807
+ css: ResolvedCSSOptions;
3808
+ json: Required<JsonOptions>;
3809
+ /** @deprecated Use `oxc` option instead. */
3810
+ esbuild: ESBuildOptions | false;
3811
+ oxc: OxcOptions | false;
3812
+ server: ResolvedServerOptions;
3813
+ dev: ResolvedDevEnvironmentOptions;
3814
+ /** @experimental */
3815
+ builder: ResolvedBuilderOptions | undefined;
3816
+ build: ResolvedBuildOptions;
3817
+ devtools: ResolvedDevToolsConfig;
3818
+ preview: ResolvedPreviewOptions;
3819
+ ssr: ResolvedSSROptions;
3820
+ assetsInclude: (file: string) => boolean;
3821
+ rawAssetsInclude: (string | RegExp)[];
3822
+ logger: Logger;
3823
+ /**
3824
+ * Create an internal resolver to be used in special scenarios, e.g.
3825
+ * optimizer & handling css `@imports`.
3826
+ *
3827
+ * This API is deprecated. It only works for the client and ssr
3828
+ * environments. The `aliasOnly` option is also not being used anymore.
3829
+ * Plugins should move to `createIdResolver(environment.config)` instead.
3830
+ *
3831
+ * @deprecated Use `createIdResolver` from `vite` instead.
3832
+ */
3833
+ createResolver: (options?: Partial<InternalResolveOptions>) => ResolveFn;
3834
+ optimizeDeps: DepOptimizationOptions;
3835
+ worker: ResolvedWorkerOptions;
3836
+ appType: AppType;
3837
+ experimental: RequiredExceptFor<ExperimentalOptions, "renderBuiltUrl">;
3838
+ future: FutureOptions | undefined;
3839
+ environments: Record<string, ResolvedEnvironmentOptions>;
3840
+ /**
3841
+ * The token to connect to the WebSocket server from browsers.
3842
+ *
3843
+ * We recommend using `import.meta.hot` rather than connecting
3844
+ * to the WebSocket server directly.
3845
+ * If you have a usecase that requires connecting to the WebSocket
3846
+ * server, please create an issue so that we can discuss.
3847
+ *
3848
+ * @deprecated
3849
+ */
3850
+ webSocketToken: string;
3851
+ } & PluginHookUtils> {}
3852
+ interface PluginHookUtils {
3853
+ getSortedPlugins: <K extends keyof Plugin>(hookName: K) => PluginWithRequiredHook<K>[];
3854
+ getSortedPluginHooks: <K extends keyof Plugin>(hookName: K) => NonNullable<HookHandler<Plugin[K]>>[];
3855
+ }
3856
+ type ResolveFn = (id: string, importer?: string, aliasOnly?: boolean, ssr?: boolean) => Promise<string | undefined>;
3857
+ export declare function resolveConfig(inlineConfig: InlineConfig, command: "build" | "serve", defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((resolvedPlugins: Plugin[]) => void) | undefined): Promise<ResolvedConfig>;
3858
+ export declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
3859
+ export declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger, configLoader?: "bundle" | "runner" | "native"): Promise<{
3860
+ path: string;
3861
+ config: UserConfig;
3862
+ dependencies: string[];
3863
+ } | null>;
3864
+ //#endregion
3865
+ //#region src/node/server/middlewares/error.d.ts
3866
+ export declare function buildErrorMessage(err: RollupError, args?: string[], includeStack?: boolean): string;
3867
+ //#endregion
3868
+ //#region src/node/ssr/runtime/serverModuleRunner.d.ts
3869
+ /**
3870
+ * @experimental
3871
+ */
3872
+ interface ServerModuleRunnerOptions extends Omit<ModuleRunnerOptions, "root" | "fetchModule" | "hmr" | "transport"> {
3873
+ /**
3874
+ * Disable HMR or configure HMR logger.
3875
+ */
3876
+ hmr?: false | {
3877
+ logger?: ModuleRunnerHmr["logger"];
3878
+ };
3879
+ /**
3880
+ * Provide a custom module evaluator. This controls how the code is executed.
3881
+ */
3882
+ evaluator?: ModuleEvaluator;
3883
+ }
3884
+ export declare const createServerModuleRunnerTransport: (options: {
3885
+ channel: NormalizedServerHotChannel;
3886
+ }) => ModuleRunnerTransport;
3887
+ /**
3888
+ * Create an instance of the Vite SSR runtime that support HMR.
3889
+ * @experimental
3890
+ */
3891
+ export declare function createServerModuleRunner(environment: DevEnvironment, options?: ServerModuleRunnerOptions): ModuleRunner;
3892
+ //#endregion
3893
+ //#region src/node/server/environments/runnableEnvironment.d.ts
3894
+ export declare function createRunnableDevEnvironment(name: string, config: ResolvedConfig, context?: RunnableDevEnvironmentContext): RunnableDevEnvironment;
3895
+ interface RunnableDevEnvironmentContext extends Omit<DevEnvironmentContext, "hot"> {
3896
+ runner?: (environment: RunnableDevEnvironment, options?: ServerModuleRunnerOptions) => ModuleRunner;
3897
+ runnerOptions?: ServerModuleRunnerOptions;
3898
+ hot?: boolean;
3899
+ }
3900
+ export declare function isRunnableDevEnvironment(environment: Environment): environment is RunnableDevEnvironment;
3901
+ declare class RunnableDevEnvironment extends DevEnvironment {
3902
+ private _runner;
3903
+ private _runnerFactory;
3904
+ private _runnerOptions;
3905
+ constructor(name: string, config: ResolvedConfig, context: RunnableDevEnvironmentContext);
3906
+ get runner(): ModuleRunner;
3907
+ override close(): Promise<void>;
3908
+ }
3909
+ //#endregion
3910
+ //#region src/node/server/environments/fetchableEnvironments.d.ts
3911
+ interface FetchableDevEnvironmentContext extends DevEnvironmentContext {
3912
+ handleRequest(request: Request): Promise<Response> | Response;
3913
+ }
3914
+ export declare function createFetchableDevEnvironment(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext): FetchableDevEnvironment;
3915
+ export declare function isFetchableDevEnvironment(environment: Environment): environment is FetchableDevEnvironment;
3916
+ declare class FetchableDevEnvironment extends DevEnvironment {
3917
+ private _handleRequest;
3918
+ constructor(name: string, config: ResolvedConfig, context: FetchableDevEnvironmentContext);
3919
+ dispatchFetch(request: Request): Promise<Response>;
3920
+ }
3921
+ //#endregion
3922
+ //#region src/node/ssr/runnerImport.d.ts
3923
+ interface RunnerImportResult<T> {
3924
+ module: T;
3925
+ dependencies: string[];
3926
+ }
3927
+ /**
3928
+ * Import any file using the default Vite environment.
3929
+ * @experimental
3930
+ */
3931
+ export declare function runnerImport<T>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T>>;
3932
+ //#endregion
3933
+ //#region src/node/ssr/fetchModule.d.ts
3934
+ interface FetchModuleOptions {
3935
+ cached?: boolean;
3936
+ inlineSourceMap?: boolean;
3937
+ startOffset?: number;
3938
+ }
3939
+ /**
3940
+ * Fetch module information for Vite module runner.
3941
+ * @experimental
3942
+ */
3943
+ export declare function fetchModule(environment: DevEnvironment, url: string, importer?: string, options?: FetchModuleOptions): Promise<moduleRunner_FetchResult>;
3944
+ //#endregion
3945
+ //#region src/node/ssr/ssrTransform.d.ts
3946
+ interface ModuleRunnerTransformOptions {
3947
+ json?: {
3948
+ stringify?: boolean;
3949
+ };
3950
+ }
3951
+ declare function ssrTransform(code: string, inMap: SourceMap | {
3952
+ mappings: "";
3953
+ } | null, url: string, originalCode: string, options?: ModuleRunnerTransformOptions): Promise<TransformResult | null>;
3954
+ //#endregion
3955
+ //#region src/node/constants.d.ts
3956
+ declare const VERSION: string;
3957
+ declare const DEFAULT_CLIENT_MAIN_FIELDS: readonly string[];
3958
+ declare const DEFAULT_SERVER_MAIN_FIELDS: readonly string[];
3959
+ declare const DEFAULT_CLIENT_CONDITIONS: readonly string[];
3960
+ declare const DEFAULT_SERVER_CONDITIONS: readonly string[];
3961
+ declare const DEFAULT_EXTERNAL_CONDITIONS: readonly string[];
3962
+ export declare const defaultAllowedOrigins: RegExp;
3963
+ //#endregion
3964
+ //#region src/node/utils.d.ts
3965
+ /**
3966
+ * Inlined to keep `@rollup/pluginutils` in devDependencies
3967
+ */
3968
+ type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
3969
+ export declare const createFilter: (include?: FilterPattern, exclude?: FilterPattern, options?: {
3970
+ resolve?: string | false | null;
3971
+ }) => (id: unknown) => boolean;
3972
+ export declare const rollupVersion = "4.23.0";
3973
+ export declare function normalizePath(id: string): string;
3974
+ export declare const isCSSRequest: (request: string) => boolean;
3975
+ export declare function mergeConfig<D extends Record<string, any>, O extends Record<string, any>>(defaults: D extends Function ? never : D, overrides: O extends Function ? never : O, isRoot?: boolean): Record<string, any>;
3976
+ export declare function mergeAlias(a?: AliasOptions, b?: AliasOptions): AliasOptions | undefined;
3977
+ //#endregion
3978
+ //#region src/node/server/send.d.ts
3979
+ interface SendOptions {
3980
+ etag?: string;
3981
+ cacheControl?: string;
3982
+ headers?: OutgoingHttpHeaders;
3983
+ map?: SourceMap | {
3984
+ mappings: "";
3985
+ } | null;
3986
+ }
3987
+ export declare function send(req: http.IncomingMessage, res: ServerResponse, content: string | Buffer, type: string, options: SendOptions): void;
3988
+ //#endregion
3989
+ //#region src/node/server/searchRoot.d.ts
3990
+ /**
3991
+ * Search up for the nearest workspace root
3992
+ */
3993
+ export declare function searchForWorkspaceRoot(current: string, root?: string): string;
3994
+ //#endregion
3995
+ //#region src/node/server/middlewares/static.d.ts
3996
+ /**
3997
+ * Check if the url is allowed to be served, via the `server.fs` config.
3998
+ * @deprecated Use the `isFileLoadingAllowed` function instead.
3999
+ */
4000
+ export declare function isFileServingAllowed(config: ResolvedConfig, url: string): boolean;
4001
+ export declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
4002
+ /**
4003
+ * Warning: parameters are not validated, only works with normalized absolute paths
4004
+ */
4005
+ export declare function isFileLoadingAllowed(config: ResolvedConfig, filePath: string): boolean;
4006
+ //#endregion
4007
+ //#region src/node/env.d.ts
4008
+ /**
4009
+ * Load `.env` files within the `envDir` and merge them with the matching
4010
+ * variables already present in `process.env`.
4011
+ */
4012
+ export declare function loadEnv(mode: string, envDir: string | false, prefixes?: string | string[]): Record<string, string>;
4013
+ export declare function resolveEnvPrefix({ envPrefix }: UserConfig): string[];
4014
+ //#endregion
4015
+ //#region src/node/plugins/manifest.d.ts
4016
+ type Manifest = Record<string, ManifestChunk>;
4017
+ interface ManifestChunk {
4018
+ /**
4019
+ * The input file name of this chunk / asset if known
4020
+ */
4021
+ src?: string;
4022
+ /**
4023
+ * The output file name of this chunk / asset
4024
+ */
4025
+ file: string;
4026
+ /**
4027
+ * The list of CSS files imported by this chunk
4028
+ */
4029
+ css?: string[];
4030
+ /**
4031
+ * The list of asset files imported by this chunk, excluding CSS files
4032
+ */
4033
+ assets?: string[];
4034
+ /**
4035
+ * Whether this chunk or asset is an entry point
4036
+ */
4037
+ isEntry?: boolean;
4038
+ /**
4039
+ * The name of this chunk / asset if known
4040
+ */
4041
+ name?: string;
4042
+ /**
4043
+ * Whether this chunk is a dynamic entry point
4044
+ *
4045
+ * This field is only present in JS chunks.
4046
+ */
4047
+ isDynamicEntry?: boolean;
4048
+ /**
4049
+ * The list of statically imported chunks by this chunk
4050
+ *
4051
+ * The values are the keys of the manifest. This field is only present in JS chunks.
4052
+ */
4053
+ imports?: string[];
4054
+ /**
4055
+ * The list of dynamically imported chunks by this chunk
4056
+ *
4057
+ * The values are the keys of the manifest. This field is only present in JS chunks.
4058
+ */
4059
+ dynamicImports?: string[];
4060
+ }
4061
+ //#endregion
4062
+ //#region src/node/index.d.ts
4063
+ /** @deprecated - use `parseSync` instead */
4064
+ export declare const parseAst: typeof parseAst$1;
4065
+ /** @deprecated - use `parse` instead */
4066
+ export declare const parseAstAsync: typeof parseAstAsync$1;
4067
+ export declare const esbuildVersion = "0.25.0";
4068
+ //#endregion
4069
+ export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type ESTree, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlAssetSource, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type KnownQueryTypeMap, type LegacyOptions, type LessPreprocessorOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, type MinifyOptions, type MinifyResult, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type OxcOptions, type ParseResult, type ParserOptions, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type Config as PostcssUserConfig, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type Rolldown, type Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, Visitor, type VisitorObject, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, type WsOptions, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_EXTERNAL_CONDITIONS as defaultExternalConditions, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, esmExternalRequirePlugin, minify, minifySync, ssrTransform as moduleRunnerTransform, parse, parseSync, rolldownVersion, VERSION as version, withFilter };