vxrn 0.1.30 → 0.1.32

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 (340) hide show
  1. package/dist/cjs/cli.js +20 -1
  2. package/dist/cjs/cli.js.map +2 -2
  3. package/dist/cjs/cli.native.js +43 -1
  4. package/dist/cjs/cli.native.js.map +2 -2
  5. package/dist/cjs/constants.js +65 -2
  6. package/dist/cjs/constants.js.map +1 -1
  7. package/dist/cjs/constants.native.js +103 -3
  8. package/dist/cjs/constants.native.js.map +2 -2
  9. package/dist/cjs/exports/build.js +66 -50
  10. package/dist/cjs/exports/build.js.map +2 -2
  11. package/dist/cjs/exports/build.native.js +182 -83
  12. package/dist/cjs/exports/build.native.js.map +2 -2
  13. package/dist/cjs/exports/dev.js +292 -293
  14. package/dist/cjs/exports/dev.js.map +2 -2
  15. package/dist/cjs/exports/dev.native.js +575 -561
  16. package/dist/cjs/exports/dev.native.js.map +2 -2
  17. package/dist/cjs/exports/serve.js +7 -1
  18. package/dist/cjs/exports/serve.js.map +1 -1
  19. package/dist/cjs/exports/serve.native.js +76 -81
  20. package/dist/cjs/exports/serve.native.js.map +2 -2
  21. package/dist/cjs/plugins/clientBundleTreeShakePlugin.js +25 -11
  22. package/dist/cjs/plugins/clientBundleTreeShakePlugin.js.map +1 -1
  23. package/dist/cjs/plugins/clientBundleTreeShakePlugin.native.js +38 -22
  24. package/dist/cjs/plugins/clientBundleTreeShakePlugin.native.js.map +2 -2
  25. package/dist/cjs/utils/getBaseViteConfig.js +14 -4
  26. package/dist/cjs/utils/getBaseViteConfig.js.map +2 -2
  27. package/dist/cjs/utils/getBaseViteConfig.native.js +16 -4
  28. package/dist/cjs/utils/getBaseViteConfig.native.js.map +2 -2
  29. package/dist/cjs/{utils.js → utils/getHtml.js} +16 -12
  30. package/dist/cjs/utils/getHtml.js.map +6 -0
  31. package/dist/cjs/{utils.native.js → utils/getHtml.native.js} +11 -16
  32. package/dist/cjs/utils/getHtml.native.js.map +6 -0
  33. package/dist/cjs/utils/getVitePath.js.map +1 -1
  34. package/dist/cjs/utils/getVitePath.native.js.map +1 -1
  35. package/dist/cjs/utils/readVXRNConfig.js +2 -2
  36. package/dist/cjs/utils/readVXRNConfig.js.map +1 -1
  37. package/dist/cjs/utils/readVXRNConfig.native.js +1 -1
  38. package/dist/cjs/utils/readVXRNConfig.native.js.map +2 -2
  39. package/dist/esm/cli.js +20 -1
  40. package/dist/esm/cli.js.map +2 -2
  41. package/dist/esm/cli.mjs +25 -1
  42. package/dist/esm/cli.native.js +43 -1
  43. package/dist/esm/cli.native.js.map +2 -2
  44. package/dist/esm/constants.js +65 -2
  45. package/dist/esm/constants.js.map +1 -1
  46. package/dist/esm/constants.mjs +30 -2
  47. package/dist/esm/constants.native.js +96 -2
  48. package/dist/esm/constants.native.js.map +2 -2
  49. package/dist/esm/exports/build.js +70 -51
  50. package/dist/esm/exports/build.js.map +1 -1
  51. package/dist/esm/exports/build.mjs +79 -29
  52. package/dist/esm/exports/build.native.js +186 -84
  53. package/dist/esm/exports/build.native.js.map +2 -2
  54. package/dist/esm/exports/dev.js +291 -295
  55. package/dist/esm/exports/dev.js.map +1 -1
  56. package/dist/esm/exports/dev.mjs +298 -283
  57. package/dist/esm/exports/dev.native.js +575 -561
  58. package/dist/esm/exports/dev.native.js.map +2 -2
  59. package/dist/esm/exports/serve.js +8 -1
  60. package/dist/esm/exports/serve.js.map +1 -1
  61. package/dist/esm/exports/serve.mjs +8 -1
  62. package/dist/esm/exports/serve.native.js +77 -81
  63. package/dist/esm/exports/serve.native.js.map +2 -2
  64. package/dist/esm/plugins/clientBundleTreeShakePlugin.js +25 -11
  65. package/dist/esm/plugins/clientBundleTreeShakePlugin.js.map +1 -1
  66. package/dist/esm/plugins/clientBundleTreeShakePlugin.mjs +29 -13
  67. package/dist/esm/plugins/clientBundleTreeShakePlugin.native.js +38 -22
  68. package/dist/esm/plugins/clientBundleTreeShakePlugin.native.js.map +2 -2
  69. package/dist/esm/utils/getBaseViteConfig.js +4 -2
  70. package/dist/esm/utils/getBaseViteConfig.js.map +1 -1
  71. package/dist/esm/utils/getBaseViteConfig.mjs +4 -2
  72. package/dist/esm/utils/getBaseViteConfig.native.js +6 -2
  73. package/dist/esm/utils/getBaseViteConfig.native.js.map +2 -2
  74. package/dist/esm/utils/getHtml.js +16 -0
  75. package/dist/esm/utils/getHtml.js.map +6 -0
  76. package/dist/esm/utils/getHtml.mjs +13 -0
  77. package/dist/esm/utils/getHtml.native.js +10 -0
  78. package/dist/esm/utils/getHtml.native.js.map +6 -0
  79. package/dist/esm/utils/getVitePath.js.map +1 -1
  80. package/dist/esm/utils/getVitePath.native.js.map +1 -1
  81. package/dist/esm/utils/readVXRNConfig.js +2 -2
  82. package/dist/esm/utils/readVXRNConfig.js.map +1 -1
  83. package/dist/esm/utils/readVXRNConfig.mjs +2 -2
  84. package/dist/esm/utils/readVXRNConfig.native.js +1 -1
  85. package/dist/esm/utils/readVXRNConfig.native.js.map +2 -2
  86. package/package.json +10 -8
  87. package/src/cli.ts +27 -0
  88. package/src/constants.ts +71 -0
  89. package/src/exports/build.ts +93 -59
  90. package/src/exports/dev.ts +408 -398
  91. package/src/exports/serve.ts +12 -14
  92. package/src/types.ts +1 -1
  93. package/src/utils/getBaseViteConfig.ts +8 -2
  94. package/src/utils/getHtml.ts +12 -0
  95. package/src/utils/getVitePath.ts +1 -0
  96. package/src/utils/readVXRNConfig.ts +5 -0
  97. package/types/constants.d.ts +13 -0
  98. package/types/exports/dev.d.ts +0 -6
  99. package/types/types.d.ts +1 -1
  100. package/types/utils/getHtml.d.ts +8 -0
  101. package/types/utils/getOptionsFilled.d.ts +1 -1
  102. package/types/vendor/createExpoServer.d.ts +3 -1
  103. package/dist/cjs/build.js +0 -145
  104. package/dist/cjs/build.js.map +0 -6
  105. package/dist/cjs/build.native.js +0 -409
  106. package/dist/cjs/build.native.js.map +0 -6
  107. package/dist/cjs/commands/cli-build.js +0 -36
  108. package/dist/cjs/commands/cli-build.js.map +0 -6
  109. package/dist/cjs/commands/cli-build.native.js +0 -171
  110. package/dist/cjs/commands/cli-build.native.js.map +0 -6
  111. package/dist/cjs/commands/cli-dev.js +0 -52
  112. package/dist/cjs/commands/cli-dev.js.map +0 -6
  113. package/dist/cjs/commands/cli-dev.native.js +0 -217
  114. package/dist/cjs/commands/cli-dev.native.js.map +0 -6
  115. package/dist/cjs/commands/index.js +0 -34
  116. package/dist/cjs/commands/index.js.map +0 -6
  117. package/dist/cjs/commands/index.native.js +0 -45
  118. package/dist/cjs/commands/index.native.js.map +0 -6
  119. package/dist/cjs/create.js +0 -643
  120. package/dist/cjs/create.js.map +0 -6
  121. package/dist/cjs/create.native.js +0 -1318
  122. package/dist/cjs/create.native.js.map +0 -6
  123. package/dist/cjs/createDevServer.js +0 -601
  124. package/dist/cjs/createDevServer.js.map +0 -6
  125. package/dist/cjs/createDevServer.native.js +0 -1220
  126. package/dist/cjs/createDevServer.native.js.map +0 -6
  127. package/dist/cjs/createExpoServer.js +0 -34
  128. package/dist/cjs/createExpoServer.js.map +0 -6
  129. package/dist/cjs/createExpoServer.native.js +0 -42
  130. package/dist/cjs/createExpoServer.native.js.map +0 -6
  131. package/dist/cjs/dev/clientInjectPlugin.js +0 -67
  132. package/dist/cjs/dev/clientInjectPlugin.js.map +0 -6
  133. package/dist/cjs/dev/clientInjectPlugin.native.js +0 -191
  134. package/dist/cjs/dev/clientInjectPlugin.native.js.map +0 -6
  135. package/dist/cjs/dev/createDevServer.js +0 -1
  136. package/dist/cjs/dev/createDevServer.js.map +0 -6
  137. package/dist/cjs/dev/createDevServer.native.js +0 -2
  138. package/dist/cjs/dev/createDevServer.native.js.map +0 -6
  139. package/dist/cjs/dispose.js +0 -28
  140. package/dist/cjs/dispose.js.map +0 -6
  141. package/dist/cjs/dispose.native.js +0 -36
  142. package/dist/cjs/dispose.native.js.map +0 -6
  143. package/dist/cjs/exports/checkPatches.js +0 -62
  144. package/dist/cjs/exports/checkPatches.js.map +0 -6
  145. package/dist/cjs/exports/checkPatches.native.js +0 -289
  146. package/dist/cjs/exports/checkPatches.native.js.map +0 -6
  147. package/dist/cjs/getVitePath.js +0 -50
  148. package/dist/cjs/getVitePath.js.map +0 -6
  149. package/dist/cjs/getVitePath.native.js +0 -197
  150. package/dist/cjs/getVitePath.native.js.map +0 -6
  151. package/dist/cjs/nativePlugin.js +0 -89
  152. package/dist/cjs/nativePlugin.js.map +0 -6
  153. package/dist/cjs/nativePlugin.native.js +0 -346
  154. package/dist/cjs/nativePlugin.native.js.map +0 -6
  155. package/dist/cjs/utils/checkPatches.js +0 -62
  156. package/dist/cjs/utils/checkPatches.js.map +0 -6
  157. package/dist/cjs/utils/checkPatches.native.js +0 -289
  158. package/dist/cjs/utils/checkPatches.native.js.map +0 -6
  159. package/dist/cjs/utils/constants.js +0 -21
  160. package/dist/cjs/utils/constants.js.map +0 -6
  161. package/dist/cjs/utils/constants.native.js +0 -26
  162. package/dist/cjs/utils/constants.native.js.map +0 -6
  163. package/dist/cjs/utils/prerender.js +0 -1
  164. package/dist/cjs/utils/prerender.js.map +0 -6
  165. package/dist/cjs/utils/prerender.native.js +0 -2
  166. package/dist/cjs/utils/prerender.native.js.map +0 -6
  167. package/dist/cjs/utils.js.map +0 -6
  168. package/dist/cjs/utils.native.js.map +0 -6
  169. package/dist/esm/build.js +0 -128
  170. package/dist/esm/build.js.map +0 -6
  171. package/dist/esm/build.mjs +0 -119
  172. package/dist/esm/build.native.js +0 -385
  173. package/dist/esm/build.native.js.map +0 -6
  174. package/dist/esm/commands/cli-build.js +0 -23
  175. package/dist/esm/commands/cli-build.js.map +0 -6
  176. package/dist/esm/commands/cli-build.mjs +0 -22
  177. package/dist/esm/commands/cli-build.native.js +0 -156
  178. package/dist/esm/commands/cli-build.native.js.map +0 -6
  179. package/dist/esm/commands/cli-dev.js +0 -39
  180. package/dist/esm/commands/cli-dev.js.map +0 -6
  181. package/dist/esm/commands/cli-dev.mjs +0 -45
  182. package/dist/esm/commands/cli-dev.native.js +0 -202
  183. package/dist/esm/commands/cli-dev.native.js.map +0 -6
  184. package/dist/esm/commands/index.js +0 -10
  185. package/dist/esm/commands/index.js.map +0 -6
  186. package/dist/esm/commands/index.mjs +0 -8
  187. package/dist/esm/commands/index.native.js +0 -16
  188. package/dist/esm/commands/index.native.js.map +0 -6
  189. package/dist/esm/create.js +0 -655
  190. package/dist/esm/create.js.map +0 -6
  191. package/dist/esm/create.mjs +0 -622
  192. package/dist/esm/create.native.js +0 -1309
  193. package/dist/esm/create.native.js.map +0 -6
  194. package/dist/esm/createDevServer.js +0 -614
  195. package/dist/esm/createDevServer.js.map +0 -6
  196. package/dist/esm/createDevServer.mjs +0 -570
  197. package/dist/esm/createDevServer.native.js +0 -1211
  198. package/dist/esm/createDevServer.native.js.map +0 -6
  199. package/dist/esm/createExpoServer.js +0 -20
  200. package/dist/esm/createExpoServer.js.map +0 -6
  201. package/dist/esm/createExpoServer.mjs +0 -17
  202. package/dist/esm/createExpoServer.native.js +0 -22
  203. package/dist/esm/createExpoServer.native.js.map +0 -6
  204. package/dist/esm/dev/clientInjectPlugin.js +0 -43
  205. package/dist/esm/dev/clientInjectPlugin.js.map +0 -6
  206. package/dist/esm/dev/clientInjectPlugin.mjs +0 -57
  207. package/dist/esm/dev/clientInjectPlugin.native.js +0 -162
  208. package/dist/esm/dev/clientInjectPlugin.native.js.map +0 -6
  209. package/dist/esm/dev/createDevServer.js +0 -1
  210. package/dist/esm/dev/createDevServer.js.map +0 -6
  211. package/dist/esm/dev/createDevServer.mjs +0 -0
  212. package/dist/esm/dev/createDevServer.native.js +0 -1
  213. package/dist/esm/dev/createDevServer.native.js.map +0 -6
  214. package/dist/esm/dispose.js +0 -12
  215. package/dist/esm/dispose.js.map +0 -6
  216. package/dist/esm/dispose.mjs +0 -8
  217. package/dist/esm/dispose.native.js +0 -14
  218. package/dist/esm/dispose.native.js.map +0 -6
  219. package/dist/esm/exports/checkPatches.js +0 -40
  220. package/dist/esm/exports/checkPatches.js.map +0 -6
  221. package/dist/esm/exports/checkPatches.mjs +0 -31
  222. package/dist/esm/exports/checkPatches.native.js +0 -262
  223. package/dist/esm/exports/checkPatches.native.js.map +0 -6
  224. package/dist/esm/getVitePath.js +0 -28
  225. package/dist/esm/getVitePath.js.map +0 -6
  226. package/dist/esm/getVitePath.mjs +0 -21
  227. package/dist/esm/getVitePath.native.js +0 -170
  228. package/dist/esm/getVitePath.native.js.map +0 -6
  229. package/dist/esm/nativePlugin.js +0 -75
  230. package/dist/esm/nativePlugin.js.map +0 -6
  231. package/dist/esm/nativePlugin.mjs +0 -55
  232. package/dist/esm/nativePlugin.native.js +0 -327
  233. package/dist/esm/nativePlugin.native.js.map +0 -6
  234. package/dist/esm/utils/checkPatches.js +0 -40
  235. package/dist/esm/utils/checkPatches.js.map +0 -6
  236. package/dist/esm/utils/checkPatches.mjs +0 -31
  237. package/dist/esm/utils/checkPatches.native.js +0 -262
  238. package/dist/esm/utils/checkPatches.native.js.map +0 -6
  239. package/dist/esm/utils/constants.js +0 -5
  240. package/dist/esm/utils/constants.js.map +0 -6
  241. package/dist/esm/utils/constants.mjs +0 -2
  242. package/dist/esm/utils/constants.native.js +0 -5
  243. package/dist/esm/utils/constants.native.js.map +0 -6
  244. package/dist/esm/utils/prerender.js +0 -1
  245. package/dist/esm/utils/prerender.js.map +0 -6
  246. package/dist/esm/utils/prerender.mjs +0 -0
  247. package/dist/esm/utils/prerender.native.js +0 -1
  248. package/dist/esm/utils/prerender.native.js.map +0 -6
  249. package/dist/esm/utils.js +0 -12
  250. package/dist/esm/utils.js.map +0 -6
  251. package/dist/esm/utils.mjs +0 -8
  252. package/dist/esm/utils.native.js +0 -14
  253. package/dist/esm/utils.native.js.map +0 -6
  254. package/src/plugins/clientBundleTreeShakePlugin.tsx +0 -105
  255. package/src/vendor/createExpoServer.ts +0 -43
  256. package/src/vendor/repack/dev-server/src/createServer.ts +0 -128
  257. package/src/vendor/repack/dev-server/src/img/favicon.ico +0 -0
  258. package/src/vendor/repack/dev-server/src/index.ts +0 -2
  259. package/src/vendor/repack/dev-server/src/plugins/api/apiPlugin.ts +0 -50
  260. package/src/vendor/repack/dev-server/src/plugins/api/index.ts +0 -1
  261. package/src/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.ts +0 -84
  262. package/src/vendor/repack/dev-server/src/plugins/compiler/index.ts +0 -2
  263. package/src/vendor/repack/dev-server/src/plugins/compiler/types.ts +0 -37
  264. package/src/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.ts +0 -107
  265. package/src/vendor/repack/dev-server/src/plugins/devtools/index.ts +0 -1
  266. package/src/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.ts +0 -14
  267. package/src/vendor/repack/dev-server/src/plugins/favicon/index.ts +0 -1
  268. package/src/vendor/repack/dev-server/src/plugins/multipart/index.ts +0 -2
  269. package/src/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.ts +0 -77
  270. package/src/vendor/repack/dev-server/src/plugins/multipart/types.ts +0 -13
  271. package/src/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.ts +0 -233
  272. package/src/vendor/repack/dev-server/src/plugins/symbolicate/index.ts +0 -3
  273. package/src/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.ts +0 -48
  274. package/src/vendor/repack/dev-server/src/plugins/symbolicate/types.ts +0 -71
  275. package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts +0 -74
  276. package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.ts +0 -60
  277. package/src/vendor/repack/dev-server/src/plugins/wss/index.ts +0 -3
  278. package/src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts +0 -158
  279. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts +0 -69
  280. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.ts +0 -134
  281. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.ts +0 -74
  282. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts +0 -205
  283. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.ts +0 -97
  284. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts +0 -401
  285. package/src/vendor/repack/dev-server/src/plugins/wss/types.ts +0 -17
  286. package/src/vendor/repack/dev-server/src/plugins/wss/wssPlugin.ts +0 -73
  287. package/src/vendor/repack/dev-server/src/types.ts +0 -197
  288. package/types/VXRNConfigFilled.d.ts +0 -21
  289. package/types/build.d.ts +0 -4
  290. package/types/commands/cli-build.d.ts +0 -3
  291. package/types/commands/cli-dev.d.ts +0 -3
  292. package/types/commands/index.d.ts +0 -6
  293. package/types/create.d.ts +0 -13
  294. package/types/createDevServer.d.ts +0 -13
  295. package/types/createExpoServer.d.ts +0 -4
  296. package/types/dev/bindKeypressInput.d.ts +0 -3
  297. package/types/dev/clientInjectPlugin.d.ts +0 -7
  298. package/types/dev/createDevServer.d.ts +0 -1
  299. package/types/dispose.d.ts +0 -3
  300. package/types/getBaseViteConfig.d.ts +0 -5
  301. package/types/getOptionsFIlled.d.ts +0 -21
  302. package/types/getVitePath.d.ts +0 -2
  303. package/types/nativePlugin.d.ts +0 -7
  304. package/types/plugins/clientBundleTreeShakePlugni.d.ts +0 -13
  305. package/types/plugins/server-tree-shake.d.ts +0 -13
  306. package/types/utils/checkPatches.d.ts +0 -3
  307. package/types/utils/constants.d.ts +0 -2
  308. package/types/utils/prerender.d.ts +0 -1
  309. package/types/utils.d.ts +0 -3
  310. package/types/vendor/repack/dev-server/src/createServer.d.ts +0 -1
  311. package/types/vendor/repack/dev-server/src/index.d.ts +0 -1
  312. package/types/vendor/repack/dev-server/src/plugins/api/apiPlugin.d.ts +0 -1
  313. package/types/vendor/repack/dev-server/src/plugins/api/index.d.ts +0 -1
  314. package/types/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.d.ts +0 -1
  315. package/types/vendor/repack/dev-server/src/plugins/compiler/index.d.ts +0 -1
  316. package/types/vendor/repack/dev-server/src/plugins/compiler/types.d.ts +0 -1
  317. package/types/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.d.ts +0 -1
  318. package/types/vendor/repack/dev-server/src/plugins/devtools/index.d.ts +0 -1
  319. package/types/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.d.ts +0 -1
  320. package/types/vendor/repack/dev-server/src/plugins/favicon/index.d.ts +0 -1
  321. package/types/vendor/repack/dev-server/src/plugins/multipart/index.d.ts +0 -1
  322. package/types/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.d.ts +0 -1
  323. package/types/vendor/repack/dev-server/src/plugins/multipart/types.d.ts +0 -1
  324. package/types/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.d.ts +0 -1
  325. package/types/vendor/repack/dev-server/src/plugins/symbolicate/index.d.ts +0 -1
  326. package/types/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.d.ts +0 -1
  327. package/types/vendor/repack/dev-server/src/plugins/symbolicate/types.d.ts +0 -1
  328. package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.d.ts +0 -1
  329. package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.d.ts +0 -1
  330. package/types/vendor/repack/dev-server/src/plugins/wss/index.d.ts +0 -1
  331. package/types/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.d.ts +0 -1
  332. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.d.ts +0 -1
  333. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.d.ts +0 -1
  334. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.d.ts +0 -1
  335. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.d.ts +0 -1
  336. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.d.ts +0 -1
  337. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.d.ts +0 -1
  338. package/types/vendor/repack/dev-server/src/plugins/wss/types.d.ts +0 -1
  339. package/types/vendor/repack/dev-server/src/plugins/wss/wssPlugin.d.ts +0 -1
  340. package/types/vendor/repack/dev-server/src/types.d.ts +0 -1
@@ -1,289 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var checkPatches_exports = {};
25
- __export(checkPatches_exports, {
26
- checkPatches: () => checkPatches
27
- });
28
- module.exports = __toCommonJS(checkPatches_exports);
29
- var import_find_node_modules = __toESM(require("find-node-modules"), 1), import_node_path = require("node:path"), import_fs_extra = __toESM(require("fs-extra"), 1);
30
- function _array_like_to_array(arr, len) {
31
- (len == null || len > arr.length) && (len = arr.length);
32
- for (var i = 0, arr2 = new Array(len); i < len; i++)
33
- arr2[i] = arr[i];
34
- return arr2;
35
- }
36
- function _array_without_holes(arr) {
37
- if (Array.isArray(arr))
38
- return _array_like_to_array(arr);
39
- }
40
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
41
- try {
42
- var info = gen[key](arg), value = info.value;
43
- } catch (error) {
44
- reject(error);
45
- return;
46
- }
47
- info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
48
- }
49
- function _async_to_generator(fn) {
50
- return function() {
51
- var self = this, args = arguments;
52
- return new Promise(function(resolve, reject) {
53
- var gen = fn.apply(self, args);
54
- function _next(value) {
55
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
56
- }
57
- function _throw(err) {
58
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
59
- }
60
- _next(void 0);
61
- });
62
- };
63
- }
64
- function _iterable_to_array(iter) {
65
- if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
66
- return Array.from(iter);
67
- }
68
- function _non_iterable_spread() {
69
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
70
- }
71
- function _to_consumable_array(arr) {
72
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
73
- }
74
- function _unsupported_iterable_to_array(o, minLen) {
75
- if (o) {
76
- if (typeof o == "string")
77
- return _array_like_to_array(o, minLen);
78
- var n = Object.prototype.toString.call(o).slice(8, -1);
79
- if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
80
- return Array.from(n);
81
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
82
- return _array_like_to_array(o, minLen);
83
- }
84
- }
85
- function _ts_generator(thisArg, body) {
86
- var f, y, t, g, _ = {
87
- label: 0,
88
- sent: function() {
89
- if (t[0] & 1)
90
- throw t[1];
91
- return t[1];
92
- },
93
- trys: [],
94
- ops: []
95
- };
96
- return g = {
97
- next: verb(0),
98
- throw: verb(1),
99
- return: verb(2)
100
- }, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
101
- return this;
102
- }), g;
103
- function verb(n) {
104
- return function(v) {
105
- return step([
106
- n,
107
- v
108
- ]);
109
- };
110
- }
111
- function step(op) {
112
- if (f)
113
- throw new TypeError("Generator is already executing.");
114
- for (; _; )
115
- try {
116
- if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
117
- return t;
118
- switch (y = 0, t && (op = [
119
- op[0] & 2,
120
- t.value
121
- ]), op[0]) {
122
- case 0:
123
- case 1:
124
- t = op;
125
- break;
126
- case 4:
127
- return _.label++, {
128
- value: op[1],
129
- done: !1
130
- };
131
- case 5:
132
- _.label++, y = op[1], op = [
133
- 0
134
- ];
135
- continue;
136
- case 7:
137
- op = _.ops.pop(), _.trys.pop();
138
- continue;
139
- default:
140
- if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
141
- _ = 0;
142
- continue;
143
- }
144
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
145
- _.label = op[1];
146
- break;
147
- }
148
- if (op[0] === 6 && _.label < t[1]) {
149
- _.label = t[1], t = op;
150
- break;
151
- }
152
- if (t && _.label < t[2]) {
153
- _.label = t[2], _.ops.push(op);
154
- break;
155
- }
156
- t[2] && _.ops.pop(), _.trys.pop();
157
- continue;
158
- }
159
- op = body.call(thisArg, _);
160
- } catch (e) {
161
- op = [
162
- 6,
163
- e
164
- ], y = 0;
165
- } finally {
166
- f = t = 0;
167
- }
168
- if (op[0] & 5)
169
- throw op[1];
170
- return {
171
- value: op[0] ? op[1] : void 0,
172
- done: !0
173
- };
174
- }
175
- }
176
- var patches = [
177
- {
178
- module: "react-native-screens",
179
- patchFile: "react-native-screens+3.22.1.patch"
180
- }
181
- ];
182
- function checkPatches(options) {
183
- return _checkPatches.apply(this, arguments);
184
- }
185
- function _checkPatches() {
186
- return _checkPatches = _async_to_generator(function(options) {
187
- var nodeModulesDirs, patchesToCopy, didCopy, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, patch, dest, src, err;
188
- return _ts_generator(this, function(_state) {
189
- switch (_state.label) {
190
- case 0:
191
- return options.state.applyPatches === !1 ? [
192
- 2
193
- ] : (nodeModulesDirs = (0, import_find_node_modules.default)({
194
- cwd: options.root
195
- }).map(function(relativePath) {
196
- return (0, import_node_path.join)(options.root, relativePath);
197
- }), patchesToCopy = /* @__PURE__ */ new Set(), [
198
- 4,
199
- Promise.all(patches.flatMap(function(patch2) {
200
- return nodeModulesDirs.flatMap(function() {
201
- var _ref = _async_to_generator(function(dir) {
202
- return _ts_generator(this, function(_state2) {
203
- switch (_state2.label) {
204
- case 0:
205
- return [
206
- 4,
207
- import_fs_extra.default.pathExists((0, import_node_path.join)(dir, patch2.module))
208
- ];
209
- case 1:
210
- return _state2.sent() && patchesToCopy.add(patch2), [
211
- 2
212
- ];
213
- }
214
- });
215
- });
216
- return function(dir) {
217
- return _ref.apply(this, arguments);
218
- };
219
- }());
220
- }))
221
- ]);
222
- case 1:
223
- _state.sent(), didCopy = !1, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0, _state.label = 2;
224
- case 2:
225
- _state.trys.push([
226
- 2,
227
- 8,
228
- 9,
229
- 10
230
- ]), _iterator = _to_consumable_array(patchesToCopy)[Symbol.iterator](), _state.label = 3;
231
- case 3:
232
- return (_iteratorNormalCompletion = (_step = _iterator.next()).done) ? [
233
- 3,
234
- 7
235
- ] : (patch = _step.value, dest = (0, import_node_path.join)(options.userPatchesDir, patch.patchFile), [
236
- 4,
237
- pathExists(dest)
238
- ]);
239
- case 4:
240
- return _state.sent() ? [
241
- 3,
242
- 6
243
- ] : (didCopy = !0, console.info("Copying patch ".concat(patch.module)), src = (0, import_node_path.join)(options.internalPatchesDir, patch.patchFile), [
244
- 4,
245
- import_fs_extra.default.copy(src, dest)
246
- ]);
247
- case 5:
248
- _state.sent(), _state.label = 6;
249
- case 6:
250
- return _iteratorNormalCompletion = !0, [
251
- 3,
252
- 3
253
- ];
254
- case 7:
255
- return [
256
- 3,
257
- 10
258
- ];
259
- case 8:
260
- return err = _state.sent(), _didIteratorError = !0, _iteratorError = err, [
261
- 3,
262
- 10
263
- ];
264
- case 9:
265
- try {
266
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
267
- } finally {
268
- if (_didIteratorError)
269
- throw _iteratorError;
270
- }
271
- return [
272
- 7
273
- ];
274
- case 10:
275
- return didCopy && (console.info(`
276
- Please restart after applying the patch by running "npx patch-package".
277
- Ideally add it to your devDependencies and as a postinstall script.
278
- `), process.exit(0)), [
279
- 2
280
- ];
281
- }
282
- });
283
- }), _checkPatches.apply(this, arguments);
284
- }
285
- // Annotate the CommonJS export names for ESM import in node:
286
- 0 && (module.exports = {
287
- checkPatches
288
- });
289
- //# sourceMappingURL=checkPatches.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/exports/Users/n8/vxrn/packages/vxrn/src/exports/checkPatches.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4B,0CAC5B,mBAAqB,sBACrB,kBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGpB,IAAMA,UAAU;EACd;IACEC,QAAQ;IACRC,WAAW;EACb;;AAGF,SAAsBC,aAAaC,SAAyB;SAAtCD,cAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,gBAAAA;AAAAA,yBAAf,oBAAA,SAA4BC,SAAyB;QAKpDC,iBAIAC,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A,OAAA;;gBAAA;oBAAA;;;;;;AAUL,iBAAIF,YACFsB,QAAQC,KACL;;;CAAA,GAGHG,QAAQC,KAAK,CAAA;;;;;EAEjB,CAAA,GAxCsB/B,cAAAA,MAAAA,MAAAA,SAAAA;;",
5
- "names": ["patches", "module", "patchFile", "checkPatches", "options", "nodeModulesDirs", "patchesToCopy", "didCopy", "patch", "dest", "src", "state", "applyPatches", "findNodeModules", "cwd", "root", "map", "relativePath", "join", "Set", "Promise", "all", "flatMap", "dir", "FSExtra", "pathExists", "_state", "add", "userPatchesDir", "console", "info", "internalPatchesDir", "copy", "process", "exit"]
6
- }
@@ -1,50 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
- var getVitePath_exports = {};
24
- __export(getVitePath_exports, {
25
- getVitePath: () => getVitePath
26
- });
27
- module.exports = __toCommonJS(getVitePath_exports);
28
- var import_path = require("path"), import_esm_resolve = __toESM(require("esm-resolve"), 1), import_fs_extra = __toESM(require("fs-extra"), 1);
29
- async function getVitePath(rootPath, importer, moduleName, absolute = !1) {
30
- if (moduleName === "react-native")
31
- return "react-native";
32
- if (moduleName === "react")
33
- return "react";
34
- if (moduleName === "react/jsx-runtime")
35
- return "react/jsx-runtime";
36
- if (moduleName === "react/jsx-dev-runtime")
37
- return "react/jsx-dev-runtime";
38
- if (moduleName[0] === ".") {
39
- const rootAt = importer.indexOf(rootPath);
40
- return (0, import_path.join)((0, import_path.dirname)(importer.slice(rootAt)), moduleName) + ".js";
41
- } else {
42
- const sourceFile = (0, import_path.join)(process.cwd(), "index.js"), resolved = (0, import_esm_resolve.default)(sourceFile)(moduleName);
43
- if (!resolved)
44
- throw new Error("\u274C cant find");
45
- const real = await import_fs_extra.default.realpath(resolved);
46
- let id = real;
47
- return absolute || (id = (0, import_path.relative)(importer, real)), id.endsWith("/react/jsx-dev-runtime.js") && (id = "react/jsx-runtime"), id;
48
- }
49
- }
50
- //# sourceMappingURL=getVitePath.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/getVitePath.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwC,iBAExC,qBAAoB,oCACpB,kBAAoB;AAEpB,eAAsB,YACpB,UACA,UACA,YACA,WAAW,IACX;AAEA,MAAI,eAAe;AACjB,WAAO;AAET,MAAI,eAAe;AACjB,WAAO;AAET,MAAI,eAAe;AACjB,WAAO;AAET,MAAI,eAAe;AACjB,WAAO;AAGT,MAAI,WAAW,CAAC,MAAM,KAAK;AACzB,UAAM,SAAS,SAAS,QAAQ,QAAQ;AAExC,eADa,sBAAK,qBAAQ,SAAS,MAAM,MAAM,CAAC,GAAG,UAAU,IAC/C;AAAA,EAChB,OAAO;AACL,UAAM,iBAAa,kBAAK,QAAQ,IAAI,GAAG,UAAU,GAC3C,eAAW,mBAAAA,SAAQ,UAAU,EAAE,UAAU;AAE/C,QAAI,CAAC;AACH,YAAM,IAAI,MAAM,kBAAa;AAE/B,UAAM,OAAO,MAAM,gBAAAC,QAAQ,SAAS,QAAQ;AAC5C,QAAI,KAAK;AACT,WAAK,aACH,SAAK,sBAAS,UAAU,IAAI,IAE1B,GAAG,SAAS,2BAA2B,MACzC,KAAK,sBAEA;AAAA,EACT;AACF;",
5
- "names": ["resolve", "FSExtra"]
6
- }
@@ -1,197 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var getVitePath_exports = {};
25
- __export(getVitePath_exports, {
26
- getVitePath: () => getVitePath
27
- });
28
- module.exports = __toCommonJS(getVitePath_exports);
29
- var import_path = require("path"), import_esm_resolve = __toESM(require("esm-resolve"), 1), import_fs_extra = __toESM(require("fs-extra"), 1);
30
- function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
31
- try {
32
- var info = gen[key](arg), value = info.value;
33
- } catch (error) {
34
- reject(error);
35
- return;
36
- }
37
- info.done ? resolve2(value) : Promise.resolve(value).then(_next, _throw);
38
- }
39
- function _async_to_generator(fn) {
40
- return function() {
41
- var self = this, args = arguments;
42
- return new Promise(function(resolve2, reject) {
43
- var gen = fn.apply(self, args);
44
- function _next(value) {
45
- asyncGeneratorStep(gen, resolve2, reject, _next, _throw, "next", value);
46
- }
47
- function _throw(err) {
48
- asyncGeneratorStep(gen, resolve2, reject, _next, _throw, "throw", err);
49
- }
50
- _next(void 0);
51
- });
52
- };
53
- }
54
- function _ts_generator(thisArg, body) {
55
- var f, y, t, g, _ = {
56
- label: 0,
57
- sent: function() {
58
- if (t[0] & 1)
59
- throw t[1];
60
- return t[1];
61
- },
62
- trys: [],
63
- ops: []
64
- };
65
- return g = {
66
- next: verb(0),
67
- throw: verb(1),
68
- return: verb(2)
69
- }, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
70
- return this;
71
- }), g;
72
- function verb(n) {
73
- return function(v) {
74
- return step([
75
- n,
76
- v
77
- ]);
78
- };
79
- }
80
- function step(op) {
81
- if (f)
82
- throw new TypeError("Generator is already executing.");
83
- for (; _; )
84
- try {
85
- if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
86
- return t;
87
- switch (y = 0, t && (op = [
88
- op[0] & 2,
89
- t.value
90
- ]), op[0]) {
91
- case 0:
92
- case 1:
93
- t = op;
94
- break;
95
- case 4:
96
- return _.label++, {
97
- value: op[1],
98
- done: !1
99
- };
100
- case 5:
101
- _.label++, y = op[1], op = [
102
- 0
103
- ];
104
- continue;
105
- case 7:
106
- op = _.ops.pop(), _.trys.pop();
107
- continue;
108
- default:
109
- if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
110
- _ = 0;
111
- continue;
112
- }
113
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
114
- _.label = op[1];
115
- break;
116
- }
117
- if (op[0] === 6 && _.label < t[1]) {
118
- _.label = t[1], t = op;
119
- break;
120
- }
121
- if (t && _.label < t[2]) {
122
- _.label = t[2], _.ops.push(op);
123
- break;
124
- }
125
- t[2] && _.ops.pop(), _.trys.pop();
126
- continue;
127
- }
128
- op = body.call(thisArg, _);
129
- } catch (e) {
130
- op = [
131
- 6,
132
- e
133
- ], y = 0;
134
- } finally {
135
- f = t = 0;
136
- }
137
- if (op[0] & 5)
138
- throw op[1];
139
- return {
140
- value: op[0] ? op[1] : void 0,
141
- done: !0
142
- };
143
- }
144
- }
145
- function getVitePath(rootPath, importer, moduleName) {
146
- return _getVitePath.apply(this, arguments);
147
- }
148
- function _getVitePath() {
149
- return _getVitePath = _async_to_generator(function(rootPath, importer, moduleName) {
150
- var absolute, rootAt, base, sourceFile, resolved, real, id, _arguments = arguments;
151
- return _ts_generator(this, function(_state) {
152
- switch (_state.label) {
153
- case 0:
154
- return absolute = _arguments.length > 3 && _arguments[3] !== void 0 ? _arguments[3] : !1, moduleName === "react-native" ? [
155
- 2,
156
- "react-native"
157
- ] : moduleName === "react" ? [
158
- 2,
159
- "react"
160
- ] : moduleName === "react/jsx-runtime" ? [
161
- 2,
162
- "react/jsx-runtime"
163
- ] : moduleName === "react/jsx-dev-runtime" ? [
164
- 2,
165
- "react/jsx-dev-runtime"
166
- ] : moduleName[0] !== "." ? [
167
- 3,
168
- 1
169
- ] : (rootAt = importer.indexOf(rootPath), base = (0, import_path.join)((0, import_path.dirname)(importer.slice(rootAt)), moduleName), [
170
- 2,
171
- base + ".js"
172
- ]);
173
- case 1:
174
- if (sourceFile = (0, import_path.join)(process.cwd(), "index.js"), resolved = (0, import_esm_resolve.default)(sourceFile)(moduleName), !resolved)
175
- throw new Error("\u274C cant find");
176
- return [
177
- 4,
178
- import_fs_extra.default.realpath(resolved)
179
- ];
180
- case 2:
181
- return real = _state.sent(), id = real, absolute || (id = (0, import_path.relative)(importer, real)), id.endsWith("/react/jsx-dev-runtime.js") && (id = "react/jsx-runtime"), [
182
- 2,
183
- id
184
- ];
185
- case 3:
186
- return [
187
- 2
188
- ];
189
- }
190
- });
191
- }), _getVitePath.apply(this, arguments);
192
- }
193
- // Annotate the CommonJS export names for ESM import in node:
194
- 0 && (module.exports = {
195
- getVitePath
196
- });
197
- //# sourceMappingURL=getVitePath.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/vxrn/packages/vxrn/src/getVitePath.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAwC,iBAExC,qBAAoB,oCACpB,kBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpB,SAAsBA,YACpBC,UACAC,UACAC,YAAkB;SAHEH,aAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,eAAAA;AAAAA,wBAAf,oBAAA,SACLC,UACAC,UACAC,YAAkB;QAClBC,UAiBQC,QACAC,MAGAC,YACAC,UAKAC,MACFC;;;;AAzBN,iBAHAN,WAAAA,WAAAA,SAAAA,KAAAA,WAAAA,CAAAA,MAAAA,SAAAA,WAAAA,CAAAA,IAAW,IAGPD,eAAe,iBACjB;;YAAO;cAELA,eAAe,UACjB;;YAAO;cAELA,eAAe,sBACjB;;YAAO;cAELA,eAAe,0BACjB;;YAAO;cAGLA,WAAW,CAAA,MAAO,MAAlBA;;;eACIE,SAASH,SAASS,QAAQV,QAAAA,GAC1BK,WAAOM,sBAAKC,qBAAQX,SAASY,MAAMT,MAAAA,CAAAA,GAAUF,UAAAA,GACnD;;YAAOG,OAAO;;;AAKd,cAHMC,iBAAaK,kBAAKG,QAAQC,IAAG,GAAI,UAAA,GACjCR,eAAWS,mBAAAA,SAAQV,UAAAA,EAAYJ,UAAAA,GAEjC,CAACK;AACH,kBAAM,IAAIU,MAAO,kBAAA;AAEN,iBAAA;;YAAMC,gBAAAA,QAAQC,SAASZ,QAAAA;;;AAA9BC,wBAAO,OAAA,KAAA,GACTC,KAAKD,MACJL,aACHM,SAAKW,sBAASnB,UAAUO,IAAAA,IAEtBC,GAAGY,SAAU,2BAAA,MACfZ,KAAK,sBAEP;;YAAOA;;;;;;;;EAEX,CAAA,GAzCsBV,aAAAA,MAAAA,MAAAA,SAAAA;;",
5
- "names": ["getVitePath", "rootPath", "importer", "moduleName", "absolute", "rootAt", "base", "sourceFile", "resolved", "real", "id", "indexOf", "join", "dirname", "slice", "process", "cwd", "resolve", "Error", "FSExtra", "realpath", "relative", "endsWith"]
6
- }
@@ -1,89 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var nativePlugin_exports = {};
16
- __export(nativePlugin_exports, {
17
- nativePlugin: () => nativePlugin
18
- });
19
- module.exports = __toCommonJS(nativePlugin_exports);
20
- var import_path = require("path"), import_es_module_lexer = require("es-module-lexer"), import_getVitePath = require("./utils/getVitePath");
21
- const extensions = [
22
- ".ios.js",
23
- ".native.js",
24
- ".native.ts",
25
- ".native.tsx",
26
- ".js",
27
- ".jsx",
28
- ".json",
29
- ".ts",
30
- ".tsx",
31
- ".mjs"
32
- ];
33
- function nativePlugin(options) {
34
- return {
35
- name: "native",
36
- enforce: "pre",
37
- config: async (config) => {
38
- if (config.define ||= {}, config.define["process.env.REACT_NATIVE_SERVER_PUBLIC_PORT"] = JSON.stringify(
39
- `${options.port}`
40
- ), config.define["process.env.REACT_NATIVE_PLATFORM"] = JSON.stringify("ios"), config.build || (config.build = {}), config.build.modulePreload = { polyfill: !1 }, config.build.assetsInlineLimit = 1e8, config.build.chunkSizeWarningLimit = 1e8, config.build.cssCodeSplit = !1, config.build.reportCompressedSize = !1, config.base = void 0, config.resolve ??= {}, config.resolve.extensions = extensions, config.resolve.conditions = ["react-native", "require", "default", "import"], config.optimizeDeps ??= {}, config.optimizeDeps.noDiscovery = !0, config.optimizeDeps.include = void 0, config.optimizeDeps.esbuildOptions ??= {}, config.optimizeDeps.esbuildOptions.resolveExtensions = extensions, config.optimizeDeps.esbuildOptions.plugins ??= [], config.optimizeDeps.esbuildOptions.loader ??= {}, config.optimizeDeps.esbuildOptions.loader[".js"] = "jsx", config.optimizeDeps.esbuildOptions.plugins.push({
41
- name: "react-native-assets",
42
- setup(build) {
43
- build.onResolve(
44
- {
45
- filter: /\.(png|jpg|gif|webp)$/
46
- },
47
- async ({ path, namespace }) => ({
48
- path: "",
49
- external: !0
50
- })
51
- );
52
- }
53
- }), config.build.rollupOptions ??= {}, config.build.rollupOptions.input = config.root, config.build.rollupOptions.output ??= {}, config.build.rollupOptions.plugins ??= [], !Array.isArray(config.build.rollupOptions.plugins))
54
- throw "x";
55
- options.mode === "build" && (config.plugins ||= [], config.build.rollupOptions.plugins.push({
56
- name: "force-export-all",
57
- async transform(code, id) {
58
- try {
59
- const [imports, exports] = (0, import_es_module_lexer.parse)(code);
60
- let forceExports = "", counts = {};
61
- for (const imp of imports)
62
- if (imp.n && imp.n[0] !== "." && (counts[imp.n] ||= 0, counts[imp.n]++, counts[imp.n] == 2)) {
63
- const path = await (0, import_getVitePath.getVitePath)(options.root, (0, import_path.dirname)(id), imp.n);
64
- forceExports += `Object.assign(exports, require("${path}"));`;
65
- }
66
- return forceExports += exports.map((e) => {
67
- if (e.n === "default")
68
- return "";
69
- let out = "";
70
- return e.ln !== e.n && (out += `__ignore = typeof ${e.n} === 'undefined' ? 0 : 0;`), out += `globalThis.____forceExport = ${e.ln}`, out;
71
- }).join(";"), code + `
72
- ` + forceExports;
73
- } catch {
74
- console.warn("Error forcing exports, probably ok", id);
75
- }
76
- }
77
- })), process.env.DEBUG && console.info("config..", config);
78
- const updateOutputOptions = (out) => {
79
- out.preserveModules = !0, out.entryFileNames = (chunkInfo) => "[name].js", out.manualChunks = void 0;
80
- };
81
- if (Array.isArray(config.build.rollupOptions.output))
82
- for (const o in config.build.rollupOptions.output)
83
- updateOutputOptions(o);
84
- else
85
- updateOutputOptions(config.build.rollupOptions.output);
86
- }
87
- };
88
- }
89
- //# sourceMappingURL=nativePlugin.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/nativePlugin.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwB,iBAExB,yBAAsB,4BAItB,qBAA4B;AAE5B,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,SAAS,aAAa,SAIlB;AACT,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IAET,QAAQ,OAAO,WAAW;AAwExB,UAvEA,OAAO,WAAW,CAAC,GACnB,OAAO,OAAO,6CAA6C,IAAI,KAAK;AAAA,QAClE,GAAG,QAAQ,IAAI;AAAA,MACjB,GACA,OAAO,OAAO,mCAAm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