mockaton 13.9.9 → 13.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/package.json +3 -2
  2. package/src/client/app-header.js +62 -42
  3. package/src/client/app.css +22 -4
  4. package/src/client/dir/dittoSplitPaths.js +1 -1
  5. package/src/client/dir/dittoSplitPaths.test.js +9 -7
  6. package/src/server/MockBroker.js +1 -1
  7. package/src/server/cli.test.js +1 -1
  8. package/src/server/mockBrokersCollection.js +4 -2
  9. package/vite-plugin/README.md +0 -29
  10. package/vite-plugin/node_modules/.package-lock.json +0 -356
  11. package/vite-plugin/node_modules/@oxc-project/types/LICENSE +0 -22
  12. package/vite-plugin/node_modules/@oxc-project/types/README.md +0 -3
  13. package/vite-plugin/node_modules/@oxc-project/types/package.json +0 -26
  14. package/vite-plugin/node_modules/@oxc-project/types/types.d.ts +0 -1912
  15. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/README.md +0 -3
  16. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/package.json +0 -37
  17. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  18. package/vite-plugin/node_modules/@rolldown/pluginutils/LICENSE +0 -25
  19. package/vite-plugin/node_modules/@rolldown/pluginutils/README.md +0 -83
  20. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +0 -90
  21. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +0 -256
  22. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +0 -28
  23. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +0 -75
  24. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +0 -3
  25. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.js +0 -3
  26. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +0 -71
  27. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +0 -70
  28. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.d.ts +0 -1
  29. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.js +0 -1
  30. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.d.ts +0 -2
  31. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.js +0 -17
  32. package/vite-plugin/node_modules/@rolldown/pluginutils/package.json +0 -37
  33. package/vite-plugin/node_modules/detect-libc/LICENSE +0 -201
  34. package/vite-plugin/node_modules/detect-libc/README.md +0 -163
  35. package/vite-plugin/node_modules/detect-libc/index.d.ts +0 -14
  36. package/vite-plugin/node_modules/detect-libc/lib/detect-libc.js +0 -313
  37. package/vite-plugin/node_modules/detect-libc/lib/elf.js +0 -39
  38. package/vite-plugin/node_modules/detect-libc/lib/filesystem.js +0 -51
  39. package/vite-plugin/node_modules/detect-libc/lib/process.js +0 -24
  40. package/vite-plugin/node_modules/detect-libc/package.json +0 -44
  41. package/vite-plugin/node_modules/fdir/LICENSE +0 -7
  42. package/vite-plugin/node_modules/fdir/README.md +0 -91
  43. package/vite-plugin/node_modules/fdir/dist/index.cjs +0 -588
  44. package/vite-plugin/node_modules/fdir/dist/index.d.cts +0 -155
  45. package/vite-plugin/node_modules/fdir/dist/index.d.mts +0 -155
  46. package/vite-plugin/node_modules/fdir/dist/index.mjs +0 -570
  47. package/vite-plugin/node_modules/fdir/package.json +0 -103
  48. package/vite-plugin/node_modules/fsevents/LICENSE +0 -22
  49. package/vite-plugin/node_modules/fsevents/README.md +0 -89
  50. package/vite-plugin/node_modules/fsevents/fsevents.d.ts +0 -46
  51. package/vite-plugin/node_modules/fsevents/fsevents.js +0 -83
  52. package/vite-plugin/node_modules/fsevents/fsevents.node +0 -0
  53. package/vite-plugin/node_modules/fsevents/package.json +0 -62
  54. package/vite-plugin/node_modules/lightningcss/LICENSE +0 -373
  55. package/vite-plugin/node_modules/lightningcss/README.md +0 -105
  56. package/vite-plugin/node_modules/lightningcss/node/ast.d.ts +0 -9892
  57. package/vite-plugin/node_modules/lightningcss/node/ast.js.flow +0 -10539
  58. package/vite-plugin/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  59. package/vite-plugin/node_modules/lightningcss/node/composeVisitors.js +0 -450
  60. package/vite-plugin/node_modules/lightningcss/node/flags.js +0 -28
  61. package/vite-plugin/node_modules/lightningcss/node/index.d.ts +0 -494
  62. package/vite-plugin/node_modules/lightningcss/node/index.js +0 -59
  63. package/vite-plugin/node_modules/lightningcss/node/index.js.flow +0 -843
  64. package/vite-plugin/node_modules/lightningcss/node/index.mjs +0 -4
  65. package/vite-plugin/node_modules/lightningcss/node/targets.d.ts +0 -40
  66. package/vite-plugin/node_modules/lightningcss/node/targets.js.flow +0 -39
  67. package/vite-plugin/node_modules/lightningcss/package.json +0 -110
  68. package/vite-plugin/node_modules/lightningcss-darwin-arm64/LICENSE +0 -373
  69. package/vite-plugin/node_modules/lightningcss-darwin-arm64/README.md +0 -1
  70. package/vite-plugin/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  71. package/vite-plugin/node_modules/lightningcss-darwin-arm64/package.json +0 -34
  72. package/vite-plugin/node_modules/nanoid/LICENSE +0 -20
  73. package/vite-plugin/node_modules/nanoid/README.md +0 -39
  74. package/vite-plugin/node_modules/nanoid/async/index.browser.cjs +0 -69
  75. package/vite-plugin/node_modules/nanoid/async/index.browser.js +0 -34
  76. package/vite-plugin/node_modules/nanoid/async/index.cjs +0 -71
  77. package/vite-plugin/node_modules/nanoid/async/index.d.ts +0 -56
  78. package/vite-plugin/node_modules/nanoid/async/index.js +0 -35
  79. package/vite-plugin/node_modules/nanoid/async/index.native.js +0 -26
  80. package/vite-plugin/node_modules/nanoid/async/package.json +0 -12
  81. package/vite-plugin/node_modules/nanoid/bin/nanoid.cjs +0 -55
  82. package/vite-plugin/node_modules/nanoid/index.browser.cjs +0 -72
  83. package/vite-plugin/node_modules/nanoid/index.browser.js +0 -34
  84. package/vite-plugin/node_modules/nanoid/index.cjs +0 -85
  85. package/vite-plugin/node_modules/nanoid/index.d.cts +0 -91
  86. package/vite-plugin/node_modules/nanoid/index.d.ts +0 -91
  87. package/vite-plugin/node_modules/nanoid/index.js +0 -45
  88. package/vite-plugin/node_modules/nanoid/nanoid.js +0 -1
  89. package/vite-plugin/node_modules/nanoid/non-secure/index.cjs +0 -34
  90. package/vite-plugin/node_modules/nanoid/non-secure/index.d.ts +0 -33
  91. package/vite-plugin/node_modules/nanoid/non-secure/index.js +0 -21
  92. package/vite-plugin/node_modules/nanoid/non-secure/package.json +0 -6
  93. package/vite-plugin/node_modules/nanoid/package.json +0 -89
  94. package/vite-plugin/node_modules/nanoid/url-alphabet/index.cjs +0 -7
  95. package/vite-plugin/node_modules/nanoid/url-alphabet/index.js +0 -3
  96. package/vite-plugin/node_modules/nanoid/url-alphabet/package.json +0 -6
  97. package/vite-plugin/node_modules/picocolors/LICENSE +0 -15
  98. package/vite-plugin/node_modules/picocolors/README.md +0 -21
  99. package/vite-plugin/node_modules/picocolors/package.json +0 -25
  100. package/vite-plugin/node_modules/picocolors/picocolors.browser.js +0 -4
  101. package/vite-plugin/node_modules/picocolors/picocolors.d.ts +0 -5
  102. package/vite-plugin/node_modules/picocolors/picocolors.js +0 -75
  103. package/vite-plugin/node_modules/picocolors/types.d.ts +0 -51
  104. package/vite-plugin/node_modules/picomatch/LICENSE +0 -21
  105. package/vite-plugin/node_modules/picomatch/README.md +0 -749
  106. package/vite-plugin/node_modules/picomatch/index.js +0 -17
  107. package/vite-plugin/node_modules/picomatch/lib/constants.js +0 -184
  108. package/vite-plugin/node_modules/picomatch/lib/parse.js +0 -1386
  109. package/vite-plugin/node_modules/picomatch/lib/picomatch.js +0 -349
  110. package/vite-plugin/node_modules/picomatch/lib/scan.js +0 -391
  111. package/vite-plugin/node_modules/picomatch/lib/utils.js +0 -72
  112. package/vite-plugin/node_modules/picomatch/package.json +0 -82
  113. package/vite-plugin/node_modules/picomatch/posix.js +0 -3
  114. package/vite-plugin/node_modules/postcss/LICENSE +0 -20
  115. package/vite-plugin/node_modules/postcss/README.md +0 -28
  116. package/vite-plugin/node_modules/postcss/lib/at-rule.d.ts +0 -139
  117. package/vite-plugin/node_modules/postcss/lib/at-rule.js +0 -25
  118. package/vite-plugin/node_modules/postcss/lib/comment.d.ts +0 -67
  119. package/vite-plugin/node_modules/postcss/lib/comment.js +0 -13
  120. package/vite-plugin/node_modules/postcss/lib/container.d.ts +0 -478
  121. package/vite-plugin/node_modules/postcss/lib/container.js +0 -447
  122. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  123. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.js +0 -133
  124. package/vite-plugin/node_modules/postcss/lib/declaration.d.ts +0 -150
  125. package/vite-plugin/node_modules/postcss/lib/declaration.js +0 -24
  126. package/vite-plugin/node_modules/postcss/lib/document.d.ts +0 -68
  127. package/vite-plugin/node_modules/postcss/lib/document.js +0 -33
  128. package/vite-plugin/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  129. package/vite-plugin/node_modules/postcss/lib/fromJSON.js +0 -54
  130. package/vite-plugin/node_modules/postcss/lib/input.d.ts +0 -226
  131. package/vite-plugin/node_modules/postcss/lib/input.js +0 -273
  132. package/vite-plugin/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  133. package/vite-plugin/node_modules/postcss/lib/lazy-result.js +0 -550
  134. package/vite-plugin/node_modules/postcss/lib/list.d.ts +0 -60
  135. package/vite-plugin/node_modules/postcss/lib/list.js +0 -58
  136. package/vite-plugin/node_modules/postcss/lib/map-generator.js +0 -376
  137. package/vite-plugin/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  138. package/vite-plugin/node_modules/postcss/lib/no-work-result.js +0 -137
  139. package/vite-plugin/node_modules/postcss/lib/node.d.ts +0 -555
  140. package/vite-plugin/node_modules/postcss/lib/node.js +0 -449
  141. package/vite-plugin/node_modules/postcss/lib/parse.d.ts +0 -9
  142. package/vite-plugin/node_modules/postcss/lib/parse.js +0 -42
  143. package/vite-plugin/node_modules/postcss/lib/parser.js +0 -611
  144. package/vite-plugin/node_modules/postcss/lib/postcss.d.mts +0 -66
  145. package/vite-plugin/node_modules/postcss/lib/postcss.d.ts +0 -456
  146. package/vite-plugin/node_modules/postcss/lib/postcss.js +0 -101
  147. package/vite-plugin/node_modules/postcss/lib/postcss.mjs +0 -30
  148. package/vite-plugin/node_modules/postcss/lib/previous-map.d.ts +0 -80
  149. package/vite-plugin/node_modules/postcss/lib/previous-map.js +0 -145
  150. package/vite-plugin/node_modules/postcss/lib/processor.d.ts +0 -114
  151. package/vite-plugin/node_modules/postcss/lib/processor.js +0 -67
  152. package/vite-plugin/node_modules/postcss/lib/result.d.ts +0 -204
  153. package/vite-plugin/node_modules/postcss/lib/result.js +0 -42
  154. package/vite-plugin/node_modules/postcss/lib/root.d.ts +0 -86
  155. package/vite-plugin/node_modules/postcss/lib/root.js +0 -61
  156. package/vite-plugin/node_modules/postcss/lib/rule.d.ts +0 -126
  157. package/vite-plugin/node_modules/postcss/lib/rule.js +0 -27
  158. package/vite-plugin/node_modules/postcss/lib/stringifier.d.ts +0 -45
  159. package/vite-plugin/node_modules/postcss/lib/stringifier.js +0 -370
  160. package/vite-plugin/node_modules/postcss/lib/stringify.d.ts +0 -9
  161. package/vite-plugin/node_modules/postcss/lib/stringify.js +0 -11
  162. package/vite-plugin/node_modules/postcss/lib/symbols.js +0 -5
  163. package/vite-plugin/node_modules/postcss/lib/terminal-highlight.js +0 -70
  164. package/vite-plugin/node_modules/postcss/lib/tokenize.js +0 -266
  165. package/vite-plugin/node_modules/postcss/lib/warn-once.js +0 -13
  166. package/vite-plugin/node_modules/postcss/lib/warning.d.ts +0 -146
  167. package/vite-plugin/node_modules/postcss/lib/warning.js +0 -37
  168. package/vite-plugin/node_modules/postcss/package.json +0 -88
  169. package/vite-plugin/node_modules/rolldown/LICENSE +0 -25
  170. package/vite-plugin/node_modules/rolldown/README.md +0 -11
  171. package/vite-plugin/node_modules/rolldown/bin/cli.mjs +0 -2
  172. package/vite-plugin/node_modules/rolldown/dist/cli.d.mts +0 -1
  173. package/vite-plugin/node_modules/rolldown/dist/cli.mjs +0 -1191
  174. package/vite-plugin/node_modules/rolldown/dist/config.d.mts +0 -14
  175. package/vite-plugin/node_modules/rolldown/dist/config.mjs +0 -4
  176. package/vite-plugin/node_modules/rolldown/dist/experimental-index.d.mts +0 -253
  177. package/vite-plugin/node_modules/rolldown/dist/experimental-index.mjs +0 -320
  178. package/vite-plugin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -98
  179. package/vite-plugin/node_modules/rolldown/dist/filter-index.d.mts +0 -196
  180. package/vite-plugin/node_modules/rolldown/dist/filter-index.mjs +0 -386
  181. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  182. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  183. package/vite-plugin/node_modules/rolldown/dist/index.d.mts +0 -4
  184. package/vite-plugin/node_modules/rolldown/dist/index.mjs +0 -50
  185. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  186. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -28
  187. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -13
  188. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  189. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -32
  190. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  191. package/vite-plugin/node_modules/rolldown/dist/plugins-index.d.mts +0 -33
  192. package/vite-plugin/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  193. package/vite-plugin/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +0 -582
  194. package/vite-plugin/node_modules/rolldown/dist/shared/binding-zH1vcmbM.d.mts +0 -1899
  195. package/vite-plugin/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +0 -2211
  196. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-C2EWPKW3.mjs +0 -68
  197. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-D0W3rNfA.d.mts +0 -37
  198. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-5HJ1b9vG.d.mts +0 -3829
  199. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +0 -6
  200. package/vite-plugin/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +0 -85
  201. package/vite-plugin/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +0 -35
  202. package/vite-plugin/node_modules/rolldown/dist/shared/load-config-BoVO31Un.mjs +0 -120
  203. package/vite-plugin/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +0 -50
  204. package/vite-plugin/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +0 -180
  205. package/vite-plugin/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +0 -21
  206. package/vite-plugin/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +0 -66
  207. package/vite-plugin/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +0 -74
  208. package/vite-plugin/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +0 -847
  209. package/vite-plugin/node_modules/rolldown/dist/shared/resolve-tsconfig-CfYpGzid.mjs +0 -113
  210. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +0 -40
  211. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +0 -3325
  212. package/vite-plugin/node_modules/rolldown/dist/shared/transform-DgZ3paSD.d.mts +0 -149
  213. package/vite-plugin/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +0 -374
  214. package/vite-plugin/node_modules/rolldown/dist/utils-index.d.mts +0 -376
  215. package/vite-plugin/node_modules/rolldown/dist/utils-index.mjs +0 -2414
  216. package/vite-plugin/node_modules/rolldown/package.json +0 -153
  217. package/vite-plugin/node_modules/source-map-js/LICENSE +0 -28
  218. package/vite-plugin/node_modules/source-map-js/README.md +0 -765
  219. package/vite-plugin/node_modules/source-map-js/lib/array-set.js +0 -121
  220. package/vite-plugin/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  221. package/vite-plugin/node_modules/source-map-js/lib/base64.js +0 -67
  222. package/vite-plugin/node_modules/source-map-js/lib/binary-search.js +0 -111
  223. package/vite-plugin/node_modules/source-map-js/lib/mapping-list.js +0 -79
  224. package/vite-plugin/node_modules/source-map-js/lib/quick-sort.js +0 -132
  225. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  226. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  227. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  228. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  229. package/vite-plugin/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  230. package/vite-plugin/node_modules/source-map-js/lib/source-node.js +0 -413
  231. package/vite-plugin/node_modules/source-map-js/lib/util.js +0 -594
  232. package/vite-plugin/node_modules/source-map-js/package.json +0 -71
  233. package/vite-plugin/node_modules/source-map-js/source-map.d.ts +0 -104
  234. package/vite-plugin/node_modules/source-map-js/source-map.js +0 -8
  235. package/vite-plugin/node_modules/tinyglobby/LICENSE +0 -21
  236. package/vite-plugin/node_modules/tinyglobby/README.md +0 -25
  237. package/vite-plugin/node_modules/tinyglobby/dist/index.cjs +0 -334
  238. package/vite-plugin/node_modules/tinyglobby/dist/index.d.cts +0 -148
  239. package/vite-plugin/node_modules/tinyglobby/dist/index.d.mts +0 -148
  240. package/vite-plugin/node_modules/tinyglobby/dist/index.mjs +0 -306
  241. package/vite-plugin/node_modules/tinyglobby/package.json +0 -73
  242. package/vite-plugin/node_modules/vite/LICENSE.md +0 -2230
  243. package/vite-plugin/node_modules/vite/README.md +0 -20
  244. package/vite-plugin/node_modules/vite/bin/openChrome.js +0 -68
  245. package/vite-plugin/node_modules/vite/bin/vite.js +0 -79
  246. package/vite-plugin/node_modules/vite/client.d.ts +0 -282
  247. package/vite-plugin/node_modules/vite/dist/client/client.mjs +0 -1237
  248. package/vite-plugin/node_modules/vite/dist/client/env.mjs +0 -18
  249. package/vite-plugin/node_modules/vite/dist/node/chunks/build.js +0 -5381
  250. package/vite-plugin/node_modules/vite/dist/node/chunks/chunk.js +0 -37
  251. package/vite-plugin/node_modules/vite/dist/node/chunks/dist.js +0 -6784
  252. package/vite-plugin/node_modules/vite/dist/node/chunks/lib.js +0 -371
  253. package/vite-plugin/node_modules/vite/dist/node/chunks/logger.js +0 -322
  254. package/vite-plugin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -96
  255. package/vite-plugin/node_modules/vite/dist/node/chunks/node.js +0 -34874
  256. package/vite-plugin/node_modules/vite/dist/node/chunks/postcss-import.js +0 -467
  257. package/vite-plugin/node_modules/vite/dist/node/cli.js +0 -837
  258. package/vite-plugin/node_modules/vite/dist/node/index.d.ts +0 -3867
  259. package/vite-plugin/node_modules/vite/dist/node/index.js +0 -3
  260. package/vite-plugin/node_modules/vite/dist/node/internal.d.ts +0 -2
  261. package/vite-plugin/node_modules/vite/dist/node/internal.js +0 -2
  262. package/vite-plugin/node_modules/vite/dist/node/module-runner.d.ts +0 -315
  263. package/vite-plugin/node_modules/vite/dist/node/module-runner.js +0 -1262
  264. package/vite-plugin/node_modules/vite/misc/false.js +0 -1
  265. package/vite-plugin/node_modules/vite/misc/true.js +0 -1
  266. package/vite-plugin/node_modules/vite/package.json +0 -192
  267. package/vite-plugin/node_modules/vite/types/customEvent.d.ts +0 -79
  268. package/vite-plugin/node_modules/vite/types/hmrPayload.d.ts +0 -80
  269. package/vite-plugin/node_modules/vite/types/hot.d.ts +0 -39
  270. package/vite-plugin/node_modules/vite/types/import-meta.d.ts +0 -5
  271. package/vite-plugin/node_modules/vite/types/importGlob.d.ts +0 -89
  272. package/vite-plugin/node_modules/vite/types/importMeta.d.ts +0 -30
  273. package/vite-plugin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  274. package/vite-plugin/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  275. package/vite-plugin/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  276. package/vite-plugin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  277. package/vite-plugin/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  278. package/vite-plugin/node_modules/vite/types/metadata.d.ts +0 -47
  279. package/vite-plugin/package.json +0 -17
@@ -1,582 +0,0 @@
1
- import { createRequire } from "node:module";
2
- //#region \0rolldown/runtime.js
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
- key = keys[i];
13
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
21
- value: mod,
22
- enumerable: true
23
- }) : target, mod));
24
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
25
- //#endregion
26
- //#region src/webcontainer-fallback.cjs
27
- var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
28
- const fs = __require("node:fs");
29
- const childProcess = __require("node:child_process");
30
- const version = JSON.parse(fs.readFileSync(__require.resolve("rolldown/package.json"), "utf-8")).version;
31
- const baseDir = `/tmp/rolldown-${version}`;
32
- const bindingEntry = `${baseDir}/node_modules/@rolldown/binding-wasm32-wasi/rolldown-binding.wasi.cjs`;
33
- if (!fs.existsSync(bindingEntry)) {
34
- const bindingPkg = `@rolldown/binding-wasm32-wasi@${version}`;
35
- fs.rmSync(baseDir, {
36
- recursive: true,
37
- force: true
38
- });
39
- fs.mkdirSync(baseDir, { recursive: true });
40
- console.log(`[rolldown] Downloading ${bindingPkg} on WebContainer...`);
41
- childProcess.execFileSync("pnpm", ["i", bindingPkg], {
42
- cwd: baseDir,
43
- stdio: "inherit"
44
- });
45
- }
46
- module.exports = __require(bindingEntry);
47
- }));
48
- //#endregion
49
- //#region src/binding.cjs
50
- var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51
- const { readFileSync } = __require("node:fs");
52
- let nativeBinding = null;
53
- const loadErrors = [];
54
- const isMusl = () => {
55
- let musl = false;
56
- if (process.platform === "linux") {
57
- musl = isMuslFromFilesystem();
58
- if (musl === null) musl = isMuslFromReport();
59
- if (musl === null) musl = isMuslFromChildProcess();
60
- }
61
- return musl;
62
- };
63
- const isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
64
- const isMuslFromFilesystem = () => {
65
- try {
66
- return readFileSync("/usr/bin/ldd", "utf-8").includes("musl");
67
- } catch {
68
- return null;
69
- }
70
- };
71
- const isMuslFromReport = () => {
72
- let report = null;
73
- if (typeof process.report?.getReport === "function") {
74
- process.report.excludeNetwork = true;
75
- report = process.report.getReport();
76
- }
77
- if (!report) return null;
78
- if (report.header && report.header.glibcVersionRuntime) return false;
79
- if (Array.isArray(report.sharedObjects)) {
80
- if (report.sharedObjects.some(isFileMusl)) return true;
81
- }
82
- return false;
83
- };
84
- const isMuslFromChildProcess = () => {
85
- try {
86
- return __require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
87
- } catch (e) {
88
- return false;
89
- }
90
- };
91
- function requireNative() {
92
- if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
93
- return __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
94
- } catch (err) {
95
- loadErrors.push(err);
96
- }
97
- else if (process.platform === "android") if (process.arch === "arm64") {
98
- try {
99
- return __require("./rolldown-binding.android-arm64.node");
100
- } catch (e) {
101
- loadErrors.push(e);
102
- }
103
- try {
104
- const binding = __require("@rolldown/binding-android-arm64");
105
- const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
106
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
- return binding;
108
- } catch (e) {
109
- loadErrors.push(e);
110
- }
111
- } else if (process.arch === "arm") {
112
- try {
113
- return __require("./rolldown-binding.android-arm-eabi.node");
114
- } catch (e) {
115
- loadErrors.push(e);
116
- }
117
- try {
118
- const binding = __require("@rolldown/binding-android-arm-eabi");
119
- const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
120
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
- return binding;
122
- } catch (e) {
123
- loadErrors.push(e);
124
- }
125
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
126
- else if (process.platform === "win32") if (process.arch === "x64") if (process.config?.variables?.shlib_suffix === "dll.a" || process.config?.variables?.node_target_type === "shared_library") {
127
- try {
128
- return __require("./rolldown-binding.win32-x64-gnu.node");
129
- } catch (e) {
130
- loadErrors.push(e);
131
- }
132
- try {
133
- const binding = __require("@rolldown/binding-win32-x64-gnu");
134
- const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
135
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
- return binding;
137
- } catch (e) {
138
- loadErrors.push(e);
139
- }
140
- } else {
141
- try {
142
- return __require("./rolldown-binding.win32-x64-msvc.node");
143
- } catch (e) {
144
- loadErrors.push(e);
145
- }
146
- try {
147
- const binding = __require("@rolldown/binding-win32-x64-msvc");
148
- const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
149
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
- return binding;
151
- } catch (e) {
152
- loadErrors.push(e);
153
- }
154
- }
155
- else if (process.arch === "ia32") {
156
- try {
157
- return __require("./rolldown-binding.win32-ia32-msvc.node");
158
- } catch (e) {
159
- loadErrors.push(e);
160
- }
161
- try {
162
- const binding = __require("@rolldown/binding-win32-ia32-msvc");
163
- const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
164
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
- return binding;
166
- } catch (e) {
167
- loadErrors.push(e);
168
- }
169
- } else if (process.arch === "arm64") {
170
- try {
171
- return __require("./rolldown-binding.win32-arm64-msvc.node");
172
- } catch (e) {
173
- loadErrors.push(e);
174
- }
175
- try {
176
- const binding = __require("@rolldown/binding-win32-arm64-msvc");
177
- const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
178
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
- return binding;
180
- } catch (e) {
181
- loadErrors.push(e);
182
- }
183
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));
184
- else if (process.platform === "darwin") {
185
- try {
186
- return __require("./rolldown-binding.darwin-universal.node");
187
- } catch (e) {
188
- loadErrors.push(e);
189
- }
190
- try {
191
- const binding = __require("@rolldown/binding-darwin-universal");
192
- const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
193
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
- return binding;
195
- } catch (e) {
196
- loadErrors.push(e);
197
- }
198
- if (process.arch === "x64") {
199
- try {
200
- return __require("./rolldown-binding.darwin-x64.node");
201
- } catch (e) {
202
- loadErrors.push(e);
203
- }
204
- try {
205
- const binding = __require("@rolldown/binding-darwin-x64");
206
- const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
207
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
- return binding;
209
- } catch (e) {
210
- loadErrors.push(e);
211
- }
212
- } else if (process.arch === "arm64") {
213
- try {
214
- return __require("./rolldown-binding.darwin-arm64.node");
215
- } catch (e) {
216
- loadErrors.push(e);
217
- }
218
- try {
219
- const binding = __require("@rolldown/binding-darwin-arm64");
220
- const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
221
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
- return binding;
223
- } catch (e) {
224
- loadErrors.push(e);
225
- }
226
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on macOS: ${process.arch}`));
227
- } else if (process.platform === "freebsd") if (process.arch === "x64") {
228
- try {
229
- return __require("./rolldown-binding.freebsd-x64.node");
230
- } catch (e) {
231
- loadErrors.push(e);
232
- }
233
- try {
234
- const binding = __require("@rolldown/binding-freebsd-x64");
235
- const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
236
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
237
- return binding;
238
- } catch (e) {
239
- loadErrors.push(e);
240
- }
241
- } else if (process.arch === "arm64") {
242
- try {
243
- return __require("./rolldown-binding.freebsd-arm64.node");
244
- } catch (e) {
245
- loadErrors.push(e);
246
- }
247
- try {
248
- const binding = __require("@rolldown/binding-freebsd-arm64");
249
- const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
250
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
251
- return binding;
252
- } catch (e) {
253
- loadErrors.push(e);
254
- }
255
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
256
- else if (process.platform === "linux") if (process.arch === "x64") if (isMusl()) {
257
- try {
258
- return __require("./rolldown-binding.linux-x64-musl.node");
259
- } catch (e) {
260
- loadErrors.push(e);
261
- }
262
- try {
263
- const binding = __require("@rolldown/binding-linux-x64-musl");
264
- const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
265
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
266
- return binding;
267
- } catch (e) {
268
- loadErrors.push(e);
269
- }
270
- } else {
271
- try {
272
- return __require("../rolldown-binding.linux-x64-gnu.node");
273
- } catch (e) {
274
- loadErrors.push(e);
275
- }
276
- try {
277
- const binding = __require("@rolldown/binding-linux-x64-gnu");
278
- const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
279
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
280
- return binding;
281
- } catch (e) {
282
- loadErrors.push(e);
283
- }
284
- }
285
- else if (process.arch === "arm64") if (isMusl()) {
286
- try {
287
- return __require("./rolldown-binding.linux-arm64-musl.node");
288
- } catch (e) {
289
- loadErrors.push(e);
290
- }
291
- try {
292
- const binding = __require("@rolldown/binding-linux-arm64-musl");
293
- const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
294
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
- return binding;
296
- } catch (e) {
297
- loadErrors.push(e);
298
- }
299
- } else {
300
- try {
301
- return __require("./rolldown-binding.linux-arm64-gnu.node");
302
- } catch (e) {
303
- loadErrors.push(e);
304
- }
305
- try {
306
- const binding = __require("@rolldown/binding-linux-arm64-gnu");
307
- const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
308
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
- return binding;
310
- } catch (e) {
311
- loadErrors.push(e);
312
- }
313
- }
314
- else if (process.arch === "arm") if (isMusl()) {
315
- try {
316
- return __require("./rolldown-binding.linux-arm-musleabihf.node");
317
- } catch (e) {
318
- loadErrors.push(e);
319
- }
320
- try {
321
- const binding = __require("@rolldown/binding-linux-arm-musleabihf");
322
- const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
323
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
- return binding;
325
- } catch (e) {
326
- loadErrors.push(e);
327
- }
328
- } else {
329
- try {
330
- return __require("./rolldown-binding.linux-arm-gnueabihf.node");
331
- } catch (e) {
332
- loadErrors.push(e);
333
- }
334
- try {
335
- const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
336
- const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
337
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
338
- return binding;
339
- } catch (e) {
340
- loadErrors.push(e);
341
- }
342
- }
343
- else if (process.arch === "loong64") if (isMusl()) {
344
- try {
345
- return __require("./rolldown-binding.linux-loong64-musl.node");
346
- } catch (e) {
347
- loadErrors.push(e);
348
- }
349
- try {
350
- const binding = __require("@rolldown/binding-linux-loong64-musl");
351
- const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
352
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
353
- return binding;
354
- } catch (e) {
355
- loadErrors.push(e);
356
- }
357
- } else {
358
- try {
359
- return __require("./rolldown-binding.linux-loong64-gnu.node");
360
- } catch (e) {
361
- loadErrors.push(e);
362
- }
363
- try {
364
- const binding = __require("@rolldown/binding-linux-loong64-gnu");
365
- const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
366
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
367
- return binding;
368
- } catch (e) {
369
- loadErrors.push(e);
370
- }
371
- }
372
- else if (process.arch === "riscv64") if (isMusl()) {
373
- try {
374
- return __require("./rolldown-binding.linux-riscv64-musl.node");
375
- } catch (e) {
376
- loadErrors.push(e);
377
- }
378
- try {
379
- const binding = __require("@rolldown/binding-linux-riscv64-musl");
380
- const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
381
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
382
- return binding;
383
- } catch (e) {
384
- loadErrors.push(e);
385
- }
386
- } else {
387
- try {
388
- return __require("./rolldown-binding.linux-riscv64-gnu.node");
389
- } catch (e) {
390
- loadErrors.push(e);
391
- }
392
- try {
393
- const binding = __require("@rolldown/binding-linux-riscv64-gnu");
394
- const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
395
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
396
- return binding;
397
- } catch (e) {
398
- loadErrors.push(e);
399
- }
400
- }
401
- else if (process.arch === "ppc64") {
402
- try {
403
- return __require("./rolldown-binding.linux-ppc64-gnu.node");
404
- } catch (e) {
405
- loadErrors.push(e);
406
- }
407
- try {
408
- const binding = __require("@rolldown/binding-linux-ppc64-gnu");
409
- const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
410
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
411
- return binding;
412
- } catch (e) {
413
- loadErrors.push(e);
414
- }
415
- } else if (process.arch === "s390x") {
416
- try {
417
- return __require("./rolldown-binding.linux-s390x-gnu.node");
418
- } catch (e) {
419
- loadErrors.push(e);
420
- }
421
- try {
422
- const binding = __require("@rolldown/binding-linux-s390x-gnu");
423
- const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
424
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
- return binding;
426
- } catch (e) {
427
- loadErrors.push(e);
428
- }
429
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));
430
- else if (process.platform === "openharmony") if (process.arch === "arm64") {
431
- try {
432
- return __require("./rolldown-binding.openharmony-arm64.node");
433
- } catch (e) {
434
- loadErrors.push(e);
435
- }
436
- try {
437
- const binding = __require("@rolldown/binding-openharmony-arm64");
438
- const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
439
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
440
- return binding;
441
- } catch (e) {
442
- loadErrors.push(e);
443
- }
444
- } else if (process.arch === "x64") {
445
- try {
446
- return __require("./rolldown-binding.openharmony-x64.node");
447
- } catch (e) {
448
- loadErrors.push(e);
449
- }
450
- try {
451
- const binding = __require("@rolldown/binding-openharmony-x64");
452
- const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
453
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
454
- return binding;
455
- } catch (e) {
456
- loadErrors.push(e);
457
- }
458
- } else if (process.arch === "arm") {
459
- try {
460
- return __require("./rolldown-binding.openharmony-arm.node");
461
- } catch (e) {
462
- loadErrors.push(e);
463
- }
464
- try {
465
- const binding = __require("@rolldown/binding-openharmony-arm");
466
- const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
467
- if (bindingPackageVersion !== "1.0.0-rc.17" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.17 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
468
- return binding;
469
- } catch (e) {
470
- loadErrors.push(e);
471
- }
472
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
473
- else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
474
- }
475
- nativeBinding = requireNative();
476
- if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
477
- let wasiBinding = null;
478
- let wasiBindingError = null;
479
- try {
480
- wasiBinding = __require("../rolldown-binding.wasi.cjs");
481
- nativeBinding = wasiBinding;
482
- } catch (err) {
483
- if (process.env.NAPI_RS_FORCE_WASI) wasiBindingError = err;
484
- }
485
- if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) try {
486
- wasiBinding = __require("@rolldown/binding-wasm32-wasi");
487
- nativeBinding = wasiBinding;
488
- } catch (err) {
489
- if (process.env.NAPI_RS_FORCE_WASI) {
490
- if (!wasiBindingError) wasiBindingError = err;
491
- else wasiBindingError.cause = err;
492
- loadErrors.push(err);
493
- }
494
- }
495
- if (process.env.NAPI_RS_FORCE_WASI === "error" && !wasiBinding) {
496
- const error = /* @__PURE__ */ new Error("WASI binding not found and NAPI_RS_FORCE_WASI is set to error");
497
- error.cause = wasiBindingError;
498
- throw error;
499
- }
500
- }
501
- if (!nativeBinding && globalThis.process?.versions?.["webcontainer"]) try {
502
- nativeBinding = require_webcontainer_fallback();
503
- } catch (err) {
504
- loadErrors.push(err);
505
- }
506
- if (!nativeBinding) {
507
- if (loadErrors.length > 0) throw new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors.reduce((err, cur) => {
508
- cur.cause = err;
509
- return cur;
510
- }) });
511
- throw new Error(`Failed to load native binding`);
512
- }
513
- module.exports = nativeBinding;
514
- module.exports.minify = nativeBinding.minify;
515
- module.exports.minifySync = nativeBinding.minifySync;
516
- module.exports.Severity = nativeBinding.Severity;
517
- module.exports.ParseResult = nativeBinding.ParseResult;
518
- module.exports.ExportExportNameKind = nativeBinding.ExportExportNameKind;
519
- module.exports.ExportImportNameKind = nativeBinding.ExportImportNameKind;
520
- module.exports.ExportLocalNameKind = nativeBinding.ExportLocalNameKind;
521
- module.exports.ImportNameKind = nativeBinding.ImportNameKind;
522
- module.exports.parse = nativeBinding.parse;
523
- module.exports.parseSync = nativeBinding.parseSync;
524
- module.exports.rawTransferSupported = nativeBinding.rawTransferSupported;
525
- module.exports.ResolverFactory = nativeBinding.ResolverFactory;
526
- module.exports.EnforceExtension = nativeBinding.EnforceExtension;
527
- module.exports.ModuleType = nativeBinding.ModuleType;
528
- module.exports.sync = nativeBinding.sync;
529
- module.exports.HelperMode = nativeBinding.HelperMode;
530
- module.exports.isolatedDeclaration = nativeBinding.isolatedDeclaration;
531
- module.exports.isolatedDeclarationSync = nativeBinding.isolatedDeclarationSync;
532
- module.exports.moduleRunnerTransform = nativeBinding.moduleRunnerTransform;
533
- module.exports.moduleRunnerTransformSync = nativeBinding.moduleRunnerTransformSync;
534
- module.exports.transform = nativeBinding.transform;
535
- module.exports.transformSync = nativeBinding.transformSync;
536
- module.exports.BindingBundleEndEventData = nativeBinding.BindingBundleEndEventData;
537
- module.exports.BindingBundleErrorEventData = nativeBinding.BindingBundleErrorEventData;
538
- module.exports.BindingBundler = nativeBinding.BindingBundler;
539
- module.exports.BindingCallableBuiltinPlugin = nativeBinding.BindingCallableBuiltinPlugin;
540
- module.exports.BindingChunkingContext = nativeBinding.BindingChunkingContext;
541
- module.exports.BindingDecodedMap = nativeBinding.BindingDecodedMap;
542
- module.exports.BindingDevEngine = nativeBinding.BindingDevEngine;
543
- module.exports.BindingLoadPluginContext = nativeBinding.BindingLoadPluginContext;
544
- module.exports.BindingMagicString = nativeBinding.BindingMagicString;
545
- module.exports.BindingModuleInfo = nativeBinding.BindingModuleInfo;
546
- module.exports.BindingNormalizedOptions = nativeBinding.BindingNormalizedOptions;
547
- module.exports.BindingOutputAsset = nativeBinding.BindingOutputAsset;
548
- module.exports.BindingOutputChunk = nativeBinding.BindingOutputChunk;
549
- module.exports.BindingPluginContext = nativeBinding.BindingPluginContext;
550
- module.exports.BindingRenderedChunk = nativeBinding.BindingRenderedChunk;
551
- module.exports.BindingRenderedChunkMeta = nativeBinding.BindingRenderedChunkMeta;
552
- module.exports.BindingRenderedModule = nativeBinding.BindingRenderedModule;
553
- module.exports.BindingSourceMap = nativeBinding.BindingSourceMap;
554
- module.exports.BindingTransformPluginContext = nativeBinding.BindingTransformPluginContext;
555
- module.exports.BindingWatcher = nativeBinding.BindingWatcher;
556
- module.exports.BindingWatcherBundler = nativeBinding.BindingWatcherBundler;
557
- module.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;
558
- module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
559
- module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
560
- module.exports.ScheduledBuild = nativeBinding.ScheduledBuild;
561
- module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
562
- module.exports.TsconfigCache = nativeBinding.TsconfigCache;
563
- module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
564
- module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
565
- module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
566
- module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
567
- module.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;
568
- module.exports.BindingPropertyReadSideEffects = nativeBinding.BindingPropertyReadSideEffects;
569
- module.exports.BindingPropertyWriteSideEffects = nativeBinding.BindingPropertyWriteSideEffects;
570
- module.exports.BindingRebuildStrategy = nativeBinding.BindingRebuildStrategy;
571
- module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
572
- module.exports.enhancedTransform = nativeBinding.enhancedTransform;
573
- module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
574
- module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
575
- module.exports.initTraceSubscriber = nativeBinding.initTraceSubscriber;
576
- module.exports.registerPlugins = nativeBinding.registerPlugins;
577
- module.exports.resolveTsconfig = nativeBinding.resolveTsconfig;
578
- module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
579
- module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
580
- }));
581
- //#endregion
582
- export { __toESM as n, require_binding as t };