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,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/checkPatches.ts"],
4
- "mappings": "AAAA,OAAOA,qBAAqB;AAC5B,SAASC,YAAY;AACrB,OAAOC,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGpB,IAAMC,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,eAYFC,SAEC,2BAAA,mBAAA,gBAAA,WAAA,OAAMC,OACHC,MAIEC,KAAAA;;;;AA3BV,iBAAIN,QAAQO,MAAMC,iBAAiB,KACjC;;eAGIP,kBAAkBR,gBAAgB;YACtCgB,KAAKT,QAAQU;UACf,CAAA,EAAGC,IAAI,SAACC,cAAAA;mBAAiBlB,KAAKM,QAAQU,MAAME,YAAAA;cAEtCV,gBAAgB,oBAAIW,IAAAA,GAE1B;;YAAMC,QAAQC,IACZnB,QAAQoB,QAAQ,SAACZ,QAAAA;AACf,qBAAOH,gBAAgBe,QAAO,WAAA;2BAAC,oBAAA,SAAOC,KAAAA;;;;AAChC,+BAAA;;0BAAMtB,QAAQuB,WAAWxB,KAAKuB,KAAKb,OAAMP,MAAM,CAAA;;;AAAnD,+BAAIsB,QAAA,KAAA,KACFjB,cAAckB,IAAIhB,MAAAA;;;;;gBAEtB,CAAA;gCAJsCa,KAAAA;;;;YAKxC,CAAA,CAAA;;;AAPF,iBAAA,KAAA,GAUId,UAAU,IAET,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;;;;;;cAAA,YAAgB,qBAAGD,aAAAA,EAAAA,OAAAA,QAAAA,EAAAA;;kBAAnB,6BAAA,QAAA,UAAA,KAAA,GAAA,QAAA;;;eAAME,QAAN,MAAA,OACGC,OAAOX,KAAKM,QAAQqB,gBAAgBjB,MAAMN,SAAS,GACnD;;YAAMoB,WAAWb,IAAAA;;;iBAAjB,OAAA,KAAA,IAAF;;;eACFF,UAAU,IACVmB,QAAQC,KAAM,iBAA6B,OAAbnB,MAAMP,MAAM,CAAA,GACpCS,MAAMZ,KAAKM,QAAQwB,oBAAoBpB,MAAMN,SAAS,GAC5D;;YAAMH,QAAQ8B,KAAKnB,KAAKD,IAAAA;;;AAAxB,iBAAA,KAAA;;AANC,6CAAA;;;;;;;;;;sCAAA,oBAAA,IAAA,iBAAA;;;;;;aAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;gBAAA;oBAAA;;;;;;AAUL,iBAAIF,YACFmB,QAAQC,KACL;;;CAAA,GAGHG,QAAQC,KAAK,CAAA;;;;;EAEjB,CAAA,GAxCsB5B,cAAAA,MAAAA,MAAAA,SAAAA;;",
5
- "names": ["findNodeModules", "join", "FSExtra", "patches", "module", "patchFile", "checkPatches", "options", "nodeModulesDirs", "patchesToCopy", "didCopy", "patch", "dest", "src", "state", "applyPatches", "cwd", "root", "map", "relativePath", "Set", "Promise", "all", "flatMap", "dir", "pathExists", "_state", "add", "userPatchesDir", "console", "info", "internalPatchesDir", "copy", "process", "exit"]
6
- }
@@ -1,5 +0,0 @@
1
- const DEFAULT_PORT = 8081;
2
- export {
3
- DEFAULT_PORT
4
- };
5
- //# sourceMappingURL=constants.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/utils/constants.ts"],
4
- "mappings": "AAAO,MAAM,eAAe;",
5
- "names": []
6
- }
@@ -1,2 +0,0 @@
1
- const DEFAULT_PORT = 8081;
2
- export { DEFAULT_PORT };
@@ -1,5 +0,0 @@
1
- var DEFAULT_PORT = 8081;
2
- export {
3
- DEFAULT_PORT
4
- };
5
- //# sourceMappingURL=constants.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/constants.ts"],
4
- "mappings": "AAAO,IAAMA,eAAe;",
5
- "names": ["DEFAULT_PORT"]
6
- }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=prerender.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "mappings": "",
5
- "names": []
6
- }
File without changes
@@ -1 +0,0 @@
1
- //# sourceMappingURL=prerender.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "mappings": "",
5
- "names": []
6
- }
package/dist/esm/utils.js DELETED
@@ -1,12 +0,0 @@
1
- const disposers = /* @__PURE__ */ new Set();
2
- function registerDispose(cb) {
3
- disposers.add(cb);
4
- }
5
- function disposeAll() {
6
- disposers.forEach((cb) => cb());
7
- }
8
- export {
9
- disposeAll,
10
- registerDispose
11
- };
12
- //# sourceMappingURL=utils.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utils.ts"],
4
- "mappings": "AAAA,MAAM,YAAY,oBAAI,IAAc;AAE7B,SAAS,gBAAgB,IAAgB;AAC9C,YAAU,IAAI,EAAE;AAClB;AAEO,SAAS,aAAa;AAC3B,YAAU,QAAQ,CAAC,OAAO,GAAG,CAAC;AAChC;",
5
- "names": []
6
- }
@@ -1,8 +0,0 @@
1
- const disposers = /* @__PURE__ */new Set();
2
- function registerDispose(cb) {
3
- disposers.add(cb);
4
- }
5
- function disposeAll() {
6
- disposers.forEach(cb => cb());
7
- }
8
- export { disposeAll, registerDispose };
@@ -1,14 +0,0 @@
1
- var disposers = /* @__PURE__ */ new Set();
2
- function registerDispose(cb) {
3
- disposers.add(cb);
4
- }
5
- function disposeAll() {
6
- disposers.forEach(function(cb) {
7
- return cb();
8
- });
9
- }
10
- export {
11
- disposeAll,
12
- registerDispose
13
- };
14
- //# sourceMappingURL=utils.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/vxrn/packages/vxrn/src/utils.ts"],
4
- "mappings": "AAAA,IAAMA,YAAY,oBAAIC,IAAAA;AAEf,SAASC,gBAAgBC,IAAc;AAC5CH,YAAUI,IAAID,EAAAA;AAChB;AAEO,SAASE,aAAAA;AACdL,YAAUM,QAAQ,SAACH,IAAAA;WAAOA,GAAAA;;AAC5B;",
5
- "names": ["disposers", "Set", "registerDispose", "cb", "add", "disposeAll", "forEach"]
6
- }
@@ -1,105 +0,0 @@
1
- import type { Node, Program } from 'estree'
2
- import { walk } from 'estree-walker'
3
- import MagicString from 'magic-string'
4
- import type { Plugin } from 'vite'
5
-
6
- interface TreeShakeTemplatePluginOptions {
7
- sourcemap?: boolean
8
- }
9
-
10
- type AcornNode<N extends Node> = N & { start: number; end: number }
11
-
12
- export const clientBundleTreeShakePlugin = (options: TreeShakeTemplatePluginOptions) => {
13
- return {
14
- name: 'vxrn:client-tree-shake',
15
- enforce: 'post',
16
- transform(code, id) {
17
- if (id.includes('node_modules')) {
18
- return
19
- }
20
- if (!code.includes(`generateStaticParams`)) {
21
- return
22
- }
23
-
24
- const s = new MagicString(code)
25
- const codeAst = this.parse(code) as AcornNode<Program>
26
-
27
- walk(codeAst, {
28
- enter: (node) => {
29
- if (node.type === 'ExportNamedDeclaration' || node.type === 'VariableDeclaration') {
30
- let declarators = (
31
- 'declarations' in node
32
- ? node.declarations
33
- : 'declaration' in node
34
- ? [node.declaration]
35
- : []
36
- ) as any[]
37
-
38
- let shouldRemove = false
39
-
40
- declarators.forEach((declarator) => {
41
- if (
42
- declarator.id.type === 'Identifier' &&
43
- declarator.id.name === 'generateStaticParams'
44
- ) {
45
- shouldRemove = true
46
- }
47
- })
48
-
49
- const replaceStr = `function generateStaticParams() {};`
50
- const length = node['end'] - node['start']
51
-
52
- if (shouldRemove) {
53
- // @ts-ignore
54
- // s.remove(node.start, node.end + 1)
55
- s.update(node.start, node.end + 1, replaceStr.padEnd(length - replaceStr.length))
56
- // make sure it doesnt error with forceExports
57
- // s.append(`function generateStaticParams {}`)
58
-
59
- if (node.type === 'ExportNamedDeclaration') {
60
- // remove import declaration if it exists
61
- // @ts-ignore
62
- removeImportDeclaration(codeAst, node, s)
63
- }
64
- }
65
- }
66
- },
67
- })
68
-
69
- if (s.hasChanged()) {
70
- return {
71
- code: s.toString(),
72
- map: options.sourcemap ? s.generateMap({ hires: true }) : undefined,
73
- }
74
- }
75
- },
76
- } satisfies Plugin
77
- }
78
-
79
- function removeImportDeclaration(
80
- ast: Program,
81
- importName: string,
82
- magicString: MagicString
83
- ): boolean {
84
- for (const node of ast.body) {
85
- if (node.type === 'ImportDeclaration') {
86
- const specifier = node.specifiers.find((s) => s.local.name === importName)
87
- if (specifier) {
88
- if (node.specifiers.length > 1) {
89
- const specifierIndex = node.specifiers.findIndex((s) => s.local.name === importName)
90
- if (specifierIndex > -1) {
91
- magicString.remove(
92
- (node.specifiers[specifierIndex] as AcornNode<Node>).start,
93
- (node.specifiers[specifierIndex] as AcornNode<Node>).end + 1
94
- )
95
- node.specifiers.splice(specifierIndex, 1)
96
- }
97
- } else {
98
- magicString.remove((node as AcornNode<Node>).start, (node as AcornNode<Node>).end)
99
- }
100
- return true
101
- }
102
- }
103
- }
104
- return false
105
- }
@@ -1,43 +0,0 @@
1
- import { sync as globSync } from 'glob'
2
- import { defineEventHandler, type App } from 'h3'
3
- import { join } from 'node:path'
4
-
5
- // @ts-ignore
6
- import { createRoutesManifest } from '@vxrn/expo-router/routes-manifest'
7
- import type { ViteDevServer } from 'vite'
8
-
9
- // TODO move out
10
-
11
- export function createExpoServer(root: string, app: App, vite: ViteDevServer) {
12
- const routePaths = getRoutePaths(join(root, 'app'))
13
- const manifest = createRoutesManifest(routePaths)
14
-
15
- const apiRoutesMap = manifest.apiRoutes.reduce((acc, cur) => {
16
- acc[cur.page] = cur
17
- return acc
18
- }, {})
19
-
20
- app.use(
21
- defineEventHandler(async ({ node: { req } }) => {
22
- const matched = apiRoutesMap[req.url]
23
- if (!matched) return
24
- const loaded = await vite.ssrLoadModule(join(root, 'app', matched.file))
25
- if (!loaded) return
26
- const requestType = req.method || 'GET'
27
- const method = loaded[requestType]
28
- if (!method) return
29
- return method(req)
30
- })
31
- )
32
- }
33
-
34
- // Used to emulate a context module, but way faster. TODO: May need to adjust the extensions to stay in sync with Metro.
35
- export function getRoutePaths(cwd: string) {
36
- return globSync('**/*.@(ts|tsx|js|jsx)', {
37
- cwd,
38
- }).map((p) => './' + normalizePaths(p))
39
- }
40
-
41
- function normalizePaths(p: string) {
42
- return p.replace(/\\/g, '/')
43
- }
@@ -1,128 +0,0 @@
1
- // import { Writable } from 'stream'
2
-
3
- // import fastifySensible from '@fastify/sensible'
4
- // import fastifyStatic from '@fastify/static'
5
- // import Fastify from 'fastify'
6
-
7
- // import apiPlugin from './plugins/api'
8
- // import compilerPlugin from './plugins/compiler'
9
- // import devtoolsPlugin from './plugins/devtools'
10
- // // import faviconPlugin from './plugins/favicon'
11
- // import multipartPlugin from './plugins/multipart'
12
- // import symbolicatePlugin from './plugins/symbolicate'
13
- // import wssPlugin from './plugins/wss'
14
- // import { Internal, type Server } from './types'
15
-
16
- // /**
17
- // * Create instance of development server, powered by Fastify.
18
- // *
19
- // * @param config Server configuration.
20
- // * @returns `start` and `stop` functions as well as an underlying Fastify `instance`.
21
- // */
22
- // export async function createServer(config: Server.Config) {
23
- // let delegate: Server.Delegate
24
-
25
- // /** Fastify instance powering the development server. */
26
- // const instance = Fastify({
27
- // logger: {
28
- // level: 'trace',
29
- // stream: new Writable({
30
- // write: (chunk, _encoding, callback) => {
31
- // const log = JSON.parse(chunk.toString())
32
- // delegate?.logger.onMessage(log)
33
- // instance.wss?.apiServer.send(log)
34
- // callback()
35
- // },
36
- // }),
37
- // },
38
- // ...(config.options.https ? { https: config.options.https } : undefined),
39
- // })
40
-
41
- // delegate = config.delegate({
42
- // log: instance.log,
43
- // notifyBuildStart: (platform) => {
44
- // instance.wss.apiServer.send({
45
- // event: Internal.EventTypes.BuildStart,
46
- // platform,
47
- // })
48
- // },
49
- // notifyBuildEnd: (platform) => {
50
- // instance.wss.apiServer.send({
51
- // event: Internal.EventTypes.BuildEnd,
52
- // platform,
53
- // })
54
- // },
55
- // broadcastToHmrClients: (event, platform, clientIds) => {
56
- // instance.wss.hmrServer.send(event, platform, clientIds)
57
- // },
58
- // broadcastToMessageClients: ({ method, params }) => {
59
- // instance.wss.messageServer.broadcast(method, params)
60
- // },
61
- // })
62
-
63
- // // fuck delegates
64
- // instance.register(async (inst) => {
65
- // inst.get('/file', async (req, reply) => {
66
- // const query = req.query as Record<string, string>
67
- // const source = delegate.hotFiles.getSource(query.file)
68
- // reply.send(source)
69
- // })
70
- // })
71
-
72
- // // Register plugins
73
- // await instance.register(fastifySensible)
74
- // await instance.register(wssPlugin, {
75
- // options: config.options,
76
- // delegate,
77
- // })
78
- // await instance.register(multipartPlugin)
79
- // await instance.register(apiPlugin, {
80
- // delegate,
81
- // prefix: '/api',
82
- // })
83
- // await instance.register(compilerPlugin, {
84
- // delegate,
85
- // })
86
- // await instance.register(symbolicatePlugin, {
87
- // delegate,
88
- // })
89
- // await instance.register(devtoolsPlugin, {
90
- // options: config.options,
91
- // })
92
-
93
- // // below is to prevent showing `GET 400 /favicon.ico`
94
- // // errors in console when requesting the bundle via browser
95
- // // await instance.register(faviconPlugin)
96
-
97
- // instance.addHook('onSend', async (request, reply, payload) => {
98
- // reply.header('X-Content-Type-Options', 'nosniff')
99
- // reply.header('X-React-Native-Project-Root', config.options.rootDir)
100
-
101
- // const [pathname] = request.url.split('?')
102
- // if (pathname.endsWith('.map')) {
103
- // reply.header('Access-Control-Allow-Origin', 'devtools://devtools')
104
- // }
105
-
106
- // return payload
107
- // })
108
-
109
- // // Register routes
110
-
111
- // instance.get('/status', async () => delegate.messages.getStatus())
112
-
113
- // /** Start the development server. */
114
- // async function start() {
115
- // await instance.listen(config.options.port, config.options.host)
116
- // }
117
-
118
- // /** Stop the development server. */
119
- // async function stop() {
120
- // await instance.close()
121
- // }
122
-
123
- // return {
124
- // start,
125
- // stop,
126
- // instance,
127
- // }
128
- // }
@@ -1,2 +0,0 @@
1
- // export * from './createServer'
2
- // export * from './types'
@@ -1,50 +0,0 @@
1
- // import type { FastifyInstance } from 'fastify'
2
-
3
- // import type { Server } from '../../types'
4
-
5
- // const paramsSchema = {
6
- // type: 'object',
7
- // properties: {
8
- // platform: {
9
- // type: 'string',
10
- // },
11
- // },
12
- // required: ['platform'],
13
- // }
14
-
15
- // type Params = { platform: string }
16
-
17
- // async function apiPlugin(
18
- // instance: FastifyInstance,
19
- // { delegate }: { delegate: Server.Delegate }
20
- // ) {
21
- // instance.get('/platforms', async (_request, reply) =>
22
- // delegate.api
23
- // ? reply.send({ data: await delegate.api.getPlatforms() })
24
- // : reply.notImplemented('Missing API delegate implementation')
25
- // )
26
-
27
- // instance.get<{ Params: Params }>(
28
- // '/:platform/assets',
29
- // { schema: { params: paramsSchema } },
30
- // async (request, reply) =>
31
- // delegate.api
32
- // ? reply.send({
33
- // data: await delegate.api.getAssets(request.params.platform),
34
- // })
35
- // : reply.notImplemented('Missing API delegate implementation')
36
- // )
37
-
38
- // instance.get<{ Params: Params }>(
39
- // '/:platform/stats',
40
- // { schema: { params: paramsSchema } },
41
- // async (request, reply) =>
42
- // delegate.api
43
- // ? reply.send({
44
- // data: await delegate.api?.getCompilationStats(request.params.platform),
45
- // })
46
- // : reply.notImplemented('Missing API delegate implementation')
47
- // )
48
- // }
49
-
50
- // export default apiPlugin
@@ -1 +0,0 @@
1
- // export { default } from './apiPlugin'
@@ -1,84 +0,0 @@
1
- // import type { FastifyInstance } from 'fastify'
2
- // import fastifyPlugin from 'fastify-plugin'
3
-
4
- // import type { Server } from '../../types'
5
- // import type { SendProgress } from '../../types'
6
-
7
- // async function compilerPlugin(
8
- // instance: FastifyInstance,
9
- // { delegate }: { delegate: Server.Delegate }
10
- // ) {
11
- // instance.route({
12
- // method: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'HEAD'],
13
- // url: '/*',
14
- // schema: {
15
- // querystring: {
16
- // type: 'object',
17
- // properties: {
18
- // platform: {
19
- // type: 'string',
20
- // },
21
- // },
22
- // },
23
- // },
24
-
25
- // handler: async (request, reply) => {
26
- // let file = (request.params as { '*'?: string })['*']
27
- // let { platform } = request.query as { platform?: string }
28
-
29
- // if (!file) {
30
- // // This technically should never happen - this route should not be called if file is missing.
31
- // request.log.error(`File was not provided`)
32
- // return reply.notFound()
33
- // }
34
-
35
- // // Let consumer infer the platform. If function is not provided fallback
36
- // // to platform query param.
37
- // platform = delegate.compiler.inferPlatform?.(request.url) ?? platform
38
-
39
- // if (!platform) {
40
- // request.log.error('Cannot detect platform')
41
- // return reply.badRequest('Cannot detect platform')
42
- // }
43
-
44
- // // If platform happens to be in front of an asset remove it.
45
- // if (file.startsWith(`${platform}/`)) {
46
- // file = file.replace(`${platform}/`, '')
47
- // }
48
-
49
- // const multipart = reply.asMultipart()
50
-
51
- // const sendProgress: SendProgress = ({ completed, total }) => {
52
- // multipart?.writeChunk(
53
- // { 'Content-Type': 'application/json' },
54
- // JSON.stringify({
55
- // done: completed,
56
- // total,
57
- // })
58
- // )
59
- // }
60
-
61
- // try {
62
- // const asset = await delegate.compiler.getAsset(file, platform, sendProgress)
63
- // const mimeType = delegate.compiler.getMimeType(file, platform, asset)
64
-
65
- // if (multipart) {
66
- // const buffer = Buffer.isBuffer(asset) ? asset : Buffer.from(asset)
67
- // multipart.setHeader('Content-Type', `${mimeType}; charset=UTF-8`)
68
- // multipart.setHeader('Content-Length', String(Buffer.byteLength(buffer)))
69
- // multipart.end(buffer)
70
- // } else {
71
- // return reply.code(200).type(mimeType).send(asset)
72
- // }
73
- // } catch (error) {
74
- // request.log.error(error)
75
- // return reply.notFound((error as Error).message)
76
- // }
77
- // },
78
- // })
79
- // }
80
-
81
- // export default fastifyPlugin(compilerPlugin, {
82
- // name: 'compiler-plugin',
83
- // dependencies: ['fastify-sensible', 'multipart-plugin'],
84
- // })
@@ -1,2 +0,0 @@
1
- // export { default } from './compilerPlugin'
2
- // export * from './types'
@@ -1,37 +0,0 @@
1
- // import type { SendProgress } from '../../types'
2
-
3
- // /**
4
- // * Delegate with implementation for compiler-specific functions.
5
- // */
6
- // export interface CompilerDelegate {
7
- // /**
8
- // * Get compiled asset content.
9
- // *
10
- // * If the compilation is in progress, it should wait until compilation finishes and then return the asset.
11
- // *
12
- // * @param filename Filename of the asset to get.
13
- // * @param platform Platform of the asset to get.
14
- // * @param sendProgress Function to notify the client who requested the asset about compilation progress.
15
- // */
16
- // getAsset: (
17
- // filename: string,
18
- // platform: string,
19
- // sendProgress?: SendProgress
20
- // ) => Promise<string | Buffer>
21
-
22
- // /**
23
- // * Detect MIME type of the asset from `filename`, `platform` or `data` (or from combination of either).
24
- // *
25
- // * @param filename Filename of the asset.
26
- // * @param platform Platform of the asset.
27
- // * @param data Asset's content.
28
- // */
29
- // getMimeType: (filename: string, platform: string, data: string | Buffer) => string
30
-
31
- // /**
32
- // * Detect the platform from the URI - either from filename, query params or both.
33
- // *
34
- // * @param uri URI string.
35
- // */
36
- // inferPlatform?: (uri: string) => string | undefined
37
- // }