one 1.1.297 → 1.1.299

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. package/dist/cjs/Root.js.map +1 -1
  2. package/dist/cjs/Root.native.js.map +1 -1
  3. package/dist/cjs/cleanUrl.js +9 -2
  4. package/dist/cjs/cleanUrl.js.map +1 -1
  5. package/dist/cjs/cleanUrl.native.js +5 -2
  6. package/dist/cjs/cleanUrl.native.js.map +2 -2
  7. package/dist/cjs/vite/replaceLoader.js +7 -1
  8. package/dist/cjs/vite/replaceLoader.js.map +1 -1
  9. package/dist/cjs/vite/replaceLoader.native.js +7 -1
  10. package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
  11. package/dist/esm/Root.js.map +1 -1
  12. package/dist/esm/Root.mjs.map +1 -1
  13. package/dist/esm/Root.native.js +110 -104
  14. package/dist/esm/Root.native.js.map +6 -1
  15. package/dist/esm/Route.native.js +12 -10
  16. package/dist/esm/Route.native.js.map +6 -1
  17. package/dist/esm/cleanUrl.js +9 -2
  18. package/dist/esm/cleanUrl.js.map +1 -1
  19. package/dist/esm/cleanUrl.mjs +7 -2
  20. package/dist/esm/cleanUrl.mjs.map +1 -1
  21. package/dist/esm/cleanUrl.native.js +16 -13
  22. package/dist/esm/cleanUrl.native.js.map +6 -1
  23. package/dist/esm/cli/label-process.native.js +5 -4
  24. package/dist/esm/cli/label-process.native.js.map +6 -1
  25. package/dist/esm/cli/main.native.js +8 -13
  26. package/dist/esm/cli/main.native.js.map +6 -1
  27. package/dist/esm/cli/prebuild.native.js +5 -5
  28. package/dist/esm/cli/prebuild.native.js.map +6 -1
  29. package/dist/esm/cli/run.native.js +21 -28
  30. package/dist/esm/cli/run.native.js.map +6 -1
  31. package/dist/esm/cli.native.js +119 -148
  32. package/dist/esm/cli.native.js.map +6 -1
  33. package/dist/esm/clientLoaderResolver.native.js +9 -6
  34. package/dist/esm/clientLoaderResolver.native.js.map +6 -1
  35. package/dist/esm/config.native.js +12 -11
  36. package/dist/esm/config.native.js.map +6 -1
  37. package/dist/esm/constants.native.js +7 -5
  38. package/dist/esm/constants.native.js.map +6 -1
  39. package/dist/esm/createApp.native.js +13 -9
  40. package/dist/esm/createApp.native.js.map +6 -1
  41. package/dist/esm/createHandleRequest.native.js +55 -64
  42. package/dist/esm/createHandleRequest.native.js.map +6 -1
  43. package/dist/esm/createRoute.native.js +16 -16
  44. package/dist/esm/createRoute.native.js.map +6 -1
  45. package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
  46. package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
  47. package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
  48. package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
  49. package/dist/esm/fork/NavigationContainer.native.js +24 -31
  50. package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
  51. package/dist/esm/fork/createMemoryHistory.native.js +99 -115
  52. package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
  53. package/dist/esm/fork/extractPathFromURL.native.js +16 -15
  54. package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
  55. package/dist/esm/fork/findFocusedRoute.native.js +6 -5
  56. package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
  57. package/dist/esm/fork/getPathFromState.native.js +127 -140
  58. package/dist/esm/fork/getPathFromState.native.js.map +6 -1
  59. package/dist/esm/fork/getStateFromPath.native.js +292 -288
  60. package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
  61. package/dist/esm/fork/useLinking.native.js +70 -61
  62. package/dist/esm/fork/useLinking.native.js.map +6 -1
  63. package/dist/esm/fork/validatePathConfig.native.js +15 -9
  64. package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
  65. package/dist/esm/getLinkingConfig.native.js +11 -6
  66. package/dist/esm/getLinkingConfig.native.js.map +6 -1
  67. package/dist/esm/getReactNavigationConfig.native.js +28 -20
  68. package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
  69. package/dist/esm/getRoutes.native.js +249 -229
  70. package/dist/esm/getRoutes.native.js.map +6 -1
  71. package/dist/esm/getURL.native.js +4 -4
  72. package/dist/esm/getURL.native.js.map +6 -1
  73. package/dist/esm/head/Head.android.js +5 -3
  74. package/dist/esm/head/Head.android.js.map +6 -1
  75. package/dist/esm/head/Head.ios.js +144 -132
  76. package/dist/esm/head/Head.ios.js.map +6 -1
  77. package/dist/esm/head/Head.native.js +7 -7
  78. package/dist/esm/head/Head.native.js.map +6 -1
  79. package/dist/esm/head/HeadModule.native.js +6 -6
  80. package/dist/esm/head/HeadModule.native.js.map +6 -1
  81. package/dist/esm/head/index.native.js +2 -2
  82. package/dist/esm/head/index.native.js.map +6 -1
  83. package/dist/esm/head/types.native.js +1 -2
  84. package/dist/esm/head/types.native.js.map +6 -1
  85. package/dist/esm/head/url.native.js +10 -8
  86. package/dist/esm/head/url.native.js.map +6 -1
  87. package/dist/esm/hooks.native.js +53 -34
  88. package/dist/esm/hooks.native.js.map +6 -1
  89. package/dist/esm/imperative-api.native.js +9 -6
  90. package/dist/esm/imperative-api.native.js.map +6 -1
  91. package/dist/esm/import-mode/index.android.js +4 -3
  92. package/dist/esm/import-mode/index.android.js.map +6 -1
  93. package/dist/esm/import-mode/index.ios.js +4 -3
  94. package/dist/esm/import-mode/index.ios.js.map +6 -1
  95. package/dist/esm/import-mode/index.native.js +3 -1
  96. package/dist/esm/import-mode/index.native.js.map +6 -1
  97. package/dist/esm/index.native.js +65 -27
  98. package/dist/esm/index.native.js.map +6 -1
  99. package/dist/esm/interfaces/router.native.js +4 -2
  100. package/dist/esm/interfaces/router.native.js.map +6 -1
  101. package/dist/esm/layouts/Drawer.native.js +7 -6
  102. package/dist/esm/layouts/Drawer.native.js.map +6 -1
  103. package/dist/esm/layouts/Stack.native.js +7 -6
  104. package/dist/esm/layouts/Stack.native.js.map +6 -1
  105. package/dist/esm/layouts/Tabs.native.js +42 -39
  106. package/dist/esm/layouts/Tabs.native.js.map +6 -1
  107. package/dist/esm/layouts/withLayoutContext.native.js +51 -48
  108. package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
  109. package/dist/esm/link/Link.native.js +62 -53
  110. package/dist/esm/link/Link.native.js.map +6 -1
  111. package/dist/esm/link/Redirect.native.js +8 -9
  112. package/dist/esm/link/Redirect.native.js.map +6 -1
  113. package/dist/esm/link/href.native.js +28 -27
  114. package/dist/esm/link/href.native.js.map +6 -1
  115. package/dist/esm/link/linking.native.js +51 -40
  116. package/dist/esm/link/linking.native.js.map +6 -1
  117. package/dist/esm/link/path.native.js +28 -19
  118. package/dist/esm/link/path.native.js.map +6 -1
  119. package/dist/esm/link/useLinkTo.native.js +22 -20
  120. package/dist/esm/link/useLinkTo.native.js.map +6 -1
  121. package/dist/esm/link/useLoadedNavigation.native.js +30 -23
  122. package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
  123. package/dist/esm/matchers.native.js +16 -3
  124. package/dist/esm/matchers.native.js.map +6 -1
  125. package/dist/esm/platform.native.js +4 -2
  126. package/dist/esm/platform.native.js.map +6 -1
  127. package/dist/esm/polyfills-mobile.native.js +4 -5
  128. package/dist/esm/polyfills-mobile.native.js.map +6 -1
  129. package/dist/esm/polyfills-server.native.js +1 -1
  130. package/dist/esm/polyfills-server.native.js.map +6 -1
  131. package/dist/esm/render.native.js +3 -1
  132. package/dist/esm/render.native.js.map +6 -1
  133. package/dist/esm/router/RouterStore.native.js +1 -2
  134. package/dist/esm/router/RouterStore.native.js.map +6 -1
  135. package/dist/esm/router/constants.native.js +4 -2
  136. package/dist/esm/router/constants.native.js.map +6 -1
  137. package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
  138. package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
  139. package/dist/esm/router/lastAction.native.js +10 -9
  140. package/dist/esm/router/lastAction.native.js.map +6 -1
  141. package/dist/esm/router/router.native.js +135 -114
  142. package/dist/esm/router/router.native.js.map +6 -1
  143. package/dist/esm/router/serverLocationContext.native.js +4 -2
  144. package/dist/esm/router/serverLocationContext.native.js.map +6 -1
  145. package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
  146. package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
  147. package/dist/esm/serve.native.js +77 -104
  148. package/dist/esm/serve.native.js.map +6 -1
  149. package/dist/esm/server/createRoutesManifest.native.js +14 -11
  150. package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
  151. package/dist/esm/server/getServerManifest.native.js +61 -67
  152. package/dist/esm/server/getServerManifest.native.js.map +6 -1
  153. package/dist/esm/server-render.native.js +9 -10
  154. package/dist/esm/server-render.native.js.map +6 -1
  155. package/dist/esm/sortRoutes.native.js +27 -17
  156. package/dist/esm/sortRoutes.native.js.map +6 -1
  157. package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
  158. package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
  159. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
  160. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
  161. package/dist/esm/types.native.js +1 -2
  162. package/dist/esm/types.native.js.map +6 -1
  163. package/dist/esm/useFocusEffect.native.js +25 -22
  164. package/dist/esm/useFocusEffect.native.js.map +6 -1
  165. package/dist/esm/useLoader.native.js +50 -50
  166. package/dist/esm/useLoader.native.js.map +6 -1
  167. package/dist/esm/useNavigation.native.js +23 -19
  168. package/dist/esm/useNavigation.native.js.map +6 -1
  169. package/dist/esm/useScreens.native.js +143 -160
  170. package/dist/esm/useScreens.native.js.map +6 -1
  171. package/dist/esm/useViteRoutes.native.js +25 -28
  172. package/dist/esm/useViteRoutes.native.js.map +6 -1
  173. package/dist/esm/utils/assertIsReady.native.js +6 -3
  174. package/dist/esm/utils/assertIsReady.native.js.map +6 -1
  175. package/dist/esm/utils/dynamicImport.native.js +5 -3
  176. package/dist/esm/utils/dynamicImport.native.js.map +6 -1
  177. package/dist/esm/utils/existsAsync.native.js +6 -4
  178. package/dist/esm/utils/existsAsync.native.js.map +6 -1
  179. package/dist/esm/utils/getPageExport.native.js +12 -11
  180. package/dist/esm/utils/getPageExport.native.js.map +6 -1
  181. package/dist/esm/utils/globDir.native.js +5 -3
  182. package/dist/esm/utils/globDir.native.js.map +6 -1
  183. package/dist/esm/utils/hashString.native.js +4 -2
  184. package/dist/esm/utils/hashString.native.js.map +6 -1
  185. package/dist/esm/utils/isResponse.native.js +4 -2
  186. package/dist/esm/utils/isResponse.native.js.map +6 -1
  187. package/dist/esm/utils/isStatus.native.js +4 -2
  188. package/dist/esm/utils/isStatus.native.js.map +6 -1
  189. package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
  190. package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
  191. package/dist/esm/utils/rand.native.js +5 -3
  192. package/dist/esm/utils/rand.native.js.map +6 -1
  193. package/dist/esm/utils/redirect.native.js +7 -5
  194. package/dist/esm/utils/redirect.native.js.map +6 -1
  195. package/dist/esm/utils/removeSearch.native.js +4 -2
  196. package/dist/esm/utils/removeSearch.native.js.map +6 -1
  197. package/dist/esm/utils/removeUndefined.native.js +6 -3
  198. package/dist/esm/utils/removeUndefined.native.js.map +6 -1
  199. package/dist/esm/utils/requireResolve.native.js +4 -2
  200. package/dist/esm/utils/requireResolve.native.js.map +6 -1
  201. package/dist/esm/utils/url.native.js +6 -2
  202. package/dist/esm/utils/url.native.js.map +6 -1
  203. package/dist/esm/utils/weakKey.native.js +11 -10
  204. package/dist/esm/utils/weakKey.native.js.map +6 -1
  205. package/dist/esm/utils/weakMemo.native.js +8 -8
  206. package/dist/esm/utils/weakMemo.native.js.map +6 -1
  207. package/dist/esm/views/EmptyRoute.native.js +5 -3
  208. package/dist/esm/views/EmptyRoute.native.js.map +6 -1
  209. package/dist/esm/views/ErrorBoundary.native.js +5 -8
  210. package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
  211. package/dist/esm/views/LoadProgressBar.native.js +58 -57
  212. package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
  213. package/dist/esm/views/Navigator.native.js +54 -71
  214. package/dist/esm/views/Navigator.native.js.map +6 -1
  215. package/dist/esm/views/PreloadLinks.native.js +3 -1
  216. package/dist/esm/views/PreloadLinks.native.js.map +6 -1
  217. package/dist/esm/views/RootErrorBoundary.native.js +39 -29
  218. package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
  219. package/dist/esm/views/Screen.native.js +12 -12
  220. package/dist/esm/views/Screen.native.js.map +6 -1
  221. package/dist/esm/views/ScrollRestoration.native.js +27 -27
  222. package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
  223. package/dist/esm/views/Try.native.js +40 -37
  224. package/dist/esm/views/Try.native.js.map +6 -1
  225. package/dist/esm/vite/build.native.js +260 -295
  226. package/dist/esm/vite/build.native.js.map +6 -1
  227. package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
  228. package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
  229. package/dist/esm/vite/constants.native.js +6 -4
  230. package/dist/esm/vite/constants.native.js.map +6 -1
  231. package/dist/esm/vite/createFileSystemRouter.native.js +99 -130
  232. package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
  233. package/dist/esm/vite/customNodeExternals.native.js +9 -10
  234. package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
  235. package/dist/esm/vite/ensureTsConfig.native.js +7 -5
  236. package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
  237. package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
  238. package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
  239. package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
  240. package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
  241. package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
  242. package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
  243. package/dist/esm/vite/getManifest.native.js +6 -4
  244. package/dist/esm/vite/getManifest.native.js.map +6 -1
  245. package/dist/esm/vite/headers.native.js +11 -5
  246. package/dist/esm/vite/headers.native.js.map +6 -1
  247. package/dist/esm/vite/loadEnv.native.js +7 -6
  248. package/dist/esm/vite/loadEnv.native.js.map +6 -1
  249. package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
  250. package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
  251. package/dist/esm/vite/one.native.js +142 -127
  252. package/dist/esm/vite/one.native.js.map +6 -1
  253. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
  254. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
  255. package/dist/esm/vite/replaceLoader.js +7 -1
  256. package/dist/esm/vite/replaceLoader.js.map +1 -1
  257. package/dist/esm/vite/replaceLoader.mjs +5 -1
  258. package/dist/esm/vite/replaceLoader.mjs.map +1 -1
  259. package/dist/esm/vite/replaceLoader.native.js +13 -10
  260. package/dist/esm/vite/replaceLoader.native.js.map +6 -1
  261. package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
  262. package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
  263. package/dist/esm/vite/server.native.js +5 -4
  264. package/dist/esm/vite/server.native.js.map +6 -1
  265. package/dist/esm/vite/types.native.js +1 -2
  266. package/dist/esm/vite/types.native.js.map +6 -1
  267. package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
  268. package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
  269. package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
  270. package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
  271. package/dist/esm/vite.native.js +19 -10
  272. package/dist/esm/vite.native.js.map +6 -1
  273. package/dist/esm/zero/getQueryKey.native.js +5 -3
  274. package/dist/esm/zero/getQueryKey.native.js.map +6 -1
  275. package/dist/esm/zero/isZeroQuery.native.js +4 -2
  276. package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
  277. package/dist/esm/zero/resolveQuery.native.js +9 -8
  278. package/dist/esm/zero/resolveQuery.native.js.map +6 -1
  279. package/dist/esm/zero/subscribeToQuery.native.js +5 -3
  280. package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
  281. package/dist/esm/zero/types.native.js +1 -2
  282. package/dist/esm/zero/types.native.js.map +6 -1
  283. package/dist/esm/zero/useQuery.native.js +12 -12
  284. package/dist/esm/zero/useQuery.native.js.map +6 -1
  285. package/dist/esm/zero/useQueryZero.native.js +24 -20
  286. package/dist/esm/zero/useQueryZero.native.js.map +6 -1
  287. package/dist/esm/zero.native.js +9 -5
  288. package/dist/esm/zero.native.js.map +6 -1
  289. package/package.json +7 -7
  290. package/src/Root.tsx +20 -16
  291. package/src/cleanUrl.ts +15 -1
  292. package/src/vite/replaceLoader.ts +7 -1
  293. package/types/cleanUrl.d.ts.map +1 -1
  294. package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1 +1,6 @@
1
- {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","rollupRemoveUnusedImportsPlugin","vxrnBuild","getLoaderPath","getPreloadPath","getManifest","loadUserOneOptions","replaceLoader","labelProcess","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","_userOptions_build_api","_userOptions_build1","_userOptions_build_api1","_userOptions_build2","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","apiOutputFormat","api","treeshake","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","moduleSideEffects","filter","Boolean","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc","buildInfoForWriting","buildInfo"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAAAC,WAAA,EAAAC,eAAA,EAAAC,+BAAA,EAAAJ,KAAA,IAAAK,SAAA;AAAA,SACEC,aAAA,EAAAC,cAAA;AAA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KAAK;AACnB,YAAMzE,QAAQ6B,OAAO4C,MAAKzJ,MAAM,GAAGyJ,MAAK3K,SAAS,CAAA,CAAA;AACjD,YAAI,CAACkG,OAAO;AACV,cAAIuE;AACF,kBAAM,IAAIlD,MACR;;0BAEUN,IAAAA;0BACA0D,KAAAA;8BACIrD,QAAAA;;;IAG1B7G,KAAKC,UAAUqH,QAAQ,MAAM,CAAA,CAAA,EAAI;AAIzB,iBAAO,MAAM4C,MAAK9H,QAAQ,KAAK,EAAA,EAAIA,QAAQ,KAAK,EAAA;QAClD;AACA,eAAOqD;MACT;AACA,aAAOyE;IACT,CAAA,EACC3N,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGgG,OAAAA,GAAU0H,cAAAA,GAAiB7H,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASgI,YAAYC,QAAc;AACjC,SAAOA,OAAOjI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASjC,wBAAwBmK,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKzK,IAAI,SAAC2K,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAchO,KAAK,GAAA,GAEtCmO,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
5
+ "names": ["FSExtra", "MicroMatch", "createRequire", "Path", "join", "relative", "nodeExternals", "mergeConfig", "build", "viteBuild", "fillOptions", "getOptimizeDeps", "rollupRemoveUnusedImportsPlugin", "vxrnBuild", "getLoaderPath", "getPreloadPath", "getManifest", "loadUserOneOptions", "replaceLoader", "labelProcess", "ensureDir", "readFile", "outputFile", "process", "on", "err", "console", "error", "message", "args", "userOptions", "options", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "analyze", "toAbsolute", "p", "resolve", "root", "manifest", "optimizeDeps", "apiBuildConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "apiOutputFormat", "api", "treeshake", "plugins", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "cwd", "onlyBuild", "buildArgs", "only", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "loaderPartialPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
6
+ }
@@ -2,39 +2,39 @@ import BabelGenerate from "@babel/generator";
2
2
  import { parse } from "@babel/parser";
3
3
  import BabelTraverse from "@babel/traverse";
4
4
  import { deadCodeElimination, findReferencedIdentifiers } from "babel-dead-code-elimination";
5
- import { EMPTY_LOADER_STRING } from "./constants.native.js";
6
- var traverse = BabelTraverse.default,
7
- generate = BabelGenerate.default,
8
- clientTreeShakePlugin = function () {
9
- return {
10
- name: "one:client-tree-shake",
11
- enforce: "pre",
12
- applyToEnvironment(env) {
13
- return env.name === "client" || env.name === "ios" || env.name === "android";
14
- },
15
- async transform(code, id, settings) {
16
- if (this.environment.name !== "ssr") return await transformTreeShakeClient(code, id);
17
- }
18
- };
5
+ import { EMPTY_LOADER_STRING } from "./constants";
6
+ var traverse = BabelTraverse.default, generate = BabelGenerate.default, clientTreeShakePlugin = function() {
7
+ return {
8
+ name: "one:client-tree-shake",
9
+ enforce: "pre",
10
+ applyToEnvironment(env) {
11
+ return env.name === "client" || env.name === "ios" || env.name === "android";
12
+ },
13
+ async transform(code, id, settings) {
14
+ if (this.environment.name !== "ssr")
15
+ return await transformTreeShakeClient(code, id);
16
+ }
19
17
  };
18
+ };
20
19
  async function transformTreeShakeClient(code, id) {
21
20
  if (!id.includes("node_modules") && /generateStaticParams|loader/.test(code)) {
22
21
  var ast = parse(code, {
23
- sourceType: "module",
24
- plugins: ["typescript", "jsx"]
25
- }),
26
- referenced = findReferencedIdentifiers(ast),
27
- removed = {
28
- loader: !1,
29
- generateStaticParams: !1
30
- };
22
+ sourceType: "module",
23
+ plugins: [
24
+ "typescript",
25
+ "jsx"
26
+ ]
27
+ }), referenced = findReferencedIdentifiers(ast), removed = {
28
+ loader: !1,
29
+ generateStaticParams: !1
30
+ };
31
31
  traverse(ast, {
32
32
  ExportNamedDeclaration(path) {
33
33
  if (path.node.declaration && path.node.declaration.type === "FunctionDeclaration") {
34
34
  if (!path.node.declaration.id) return;
35
35
  var functionName = path.node.declaration.id.name;
36
36
  (functionName === "loader" || functionName === "generateStaticParams") && (path.remove(), removed[functionName] = !0);
37
- } else path.node.declaration && path.node.declaration.type === "VariableDeclaration" && path.node.declaration.declarations.forEach(function (declarator, index) {
37
+ } else path.node.declaration && path.node.declaration.type === "VariableDeclaration" && path.node.declaration.declarations.forEach(function(declarator, index) {
38
38
  if (declarator.id.type === "Identifier" && (declarator.id.name === "loader" || declarator.id.name === "generateStaticParams")) {
39
39
  var declaration = path.get("declaration.declarations." + index);
40
40
  Array.isArray(declaration) || (declaration.remove(), removed[declarator.id.name] = !0);
@@ -42,19 +42,17 @@ async function transformTreeShakeClient(code, id) {
42
42
  });
43
43
  }
44
44
  });
45
- var removedFunctions = Object.keys(removed).filter(function (key) {
45
+ var removedFunctions = Object.keys(removed).filter(function(key) {
46
46
  return removed[key];
47
47
  });
48
48
  if (removedFunctions.length) {
49
49
  deadCodeElimination(ast, referenced);
50
- var out = generate(ast),
51
- codeOut = out.code + `
50
+ var out = generate(ast), codeOut = out.code + `
52
51
 
53
- ` +
54
- // TODO ideally put it back in same place as it was
55
- removedFunctions.map(function (key) {
56
- return key === "loader" ? EMPTY_LOADER_STRING : "export function generateStaticParams() {};";
57
- }).join(`
52
+ ` + // TODO ideally put it back in same place as it was
53
+ removedFunctions.map(function(key) {
54
+ return key === "loader" ? EMPTY_LOADER_STRING : "export function generateStaticParams() {};";
55
+ }).join(`
58
56
  `);
59
57
  return {
60
58
  code: codeOut,
@@ -63,5 +61,8 @@ async function transformTreeShakeClient(code, id) {
63
61
  }
64
62
  }
65
63
  }
66
- export { clientTreeShakePlugin, transformTreeShakeClient };
67
- //# sourceMappingURL=clientTreeShakePlugin.native.js.map
64
+ export {
65
+ clientTreeShakePlugin,
66
+ transformTreeShakeClient
67
+ };
68
+ //# sourceMappingURL=clientTreeShakePlugin.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["BabelGenerate","parse","BabelTraverse","deadCodeElimination","findReferencedIdentifiers","EMPTY_LOADER_STRING","traverse","default","generate","clientTreeShakePlugin","name","enforce","applyToEnvironment","env","transform","code","id","settings","environment","transformTreeShakeClient","includes","test","ast","sourceType","plugins","referenced","removed","loader","generateStaticParams","ExportNamedDeclaration","path","node","declaration","type","functionName","remove","declarations","forEach","declarator","index","get","Array","isArray","removedFunctions","Object","keys","filter","key","length","out","codeOut"],"sources":["../../../src/vite/clientTreeShakePlugin.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,aAAA,MAAmB;AAC1B,SAASC,KAAA,QAAa;AACtB,OAAOC,aAAA,MAAmB;AAC1B,SAASC,mBAAA,EAAqBC,yBAAA,QAAiC;AAE/D,SAASC,mBAAA,QAA2B;AAEpC,IAAAC,QAAM,GAAAJ,aAAW,CAAAK,OAAc;EAAAC,QACzB,GAAAR,aAAW,CAAAO,OAAc;EAAAE,qBAElB,YAAAA,CAAA,EACJ;IACL,OAAM;MAENC,IAAA,yBAAS;MAETC,OAAA;MACEC,kBAAWA,CAAAC,GAAS;QACtB,OAAAA,GAAA,CAAAH,IAAA,iBAAAG,GAAA,CAAAH,IAAA,cAAAG,GAAA,CAAAH,IAAA;MAEA;MACE,MAAII,SAAKA,CAAAC,IAAA,EAAYC,EAAA,EAAAC,QAAS;QAG9B,QAAO,CAAAC,WAAM,CAAAR,IAAA,YACf,aAAAS,wBAAA,CAAAJ,IAAA,EAAAC,EAAA;MACF;IAGF;EAGE;AACE,eAAAG,yBAAAJ,IAAA,EAAAC,EAAA;EAGF,KAAAA,EAAM,CAAAI,QAAM,eAAc,kCAAgC,CAAAC,IAAA,CAAAN,IAAc,GAAK;IAI3E,IAAAO,GAAA,GAAQrB,KAAA,CAAAc,IAAA;QACRQ,UAAA,UAAsB;QACxBC,OAAA,GAEA,YAAc,EACZ;MAEI;MAAAC,UAAU,GAAArB,yBAAqB,CAAAkB,GAAA;MAAAI,OAAA;QAC/BC,MAAA,EAAM;QACNC,oBAAqB;MAEK;IAIxBtB,QACE,CAAAgB,GAAA;MAGAO,sBA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YAAYI,aAAaC,QAAQ,SAACC,YAAYC,OAAAA;AACtD,cACED,WAAWtB,GAAGiB,SAAS,iBACtBK,WAAWtB,GAAGN,SAAS,YAAY4B,WAAWtB,GAAGN,SAAS,yBAC3D;AACA,gBAAMsB,cAAcF,KAAKU,IAAI,8BAA8BD,KAAAA;AAC3D,YAAKE,MAAMC,QAAQV,WAAAA,MACjBA,YAAYG,OAAM,GAClBT,QAAQY,WAAWtB,GAAGN,IAAI,IAAI;UAElC;QACF,CAAA;MAEJ;IACF,CAAA;AAEA,QAAMiC,mBAAmBC,OAAOC,KAAKnB,OAAAA,EAASoB,OAAO,SAACC,KAAAA;aAAQrB,QAAQqB,GAAAA;;AAEtE,QAAIJ,iBAAiBK,QAAQ;AAC3B5C,0BAAoBkB,KAAKG,UAAAA;AAEzB,UAAMwB,MAAMzC,SAASc,GAAAA,GAGf4B,UACJD,IAAIlC,OACJ;;;MAEA4B,iBACGQ,IAAI,SAACJ,KAAAA;AACJ,eAAIA,QAAQ,WACHzC,sBAGF;MACT,CAAA,EACC8C,KAAK;CAAA;AAEV,aAAO;QACLrC,MAAMmC;QACNC,KAAKF,IAAIE;MACX;IACF;;AACF;",
5
+ "names": ["BabelGenerate", "parse", "BabelTraverse", "deadCodeElimination", "findReferencedIdentifiers", "EMPTY_LOADER_STRING", "traverse", "generate", "clientTreeShakePlugin", "name", "enforce", "applyToEnvironment", "env", "transform", "code", "id", "settings", "environment", "transformTreeShakeClient", "includes", "test", "ast", "sourceType", "plugins", "referenced", "removed", "loader", "generateStaticParams", "ExportNamedDeclaration", "path", "node", "declaration", "type", "functionName", "remove", "declarations", "forEach", "declarator", "index", "get", "Array", "isArray", "removedFunctions", "Object", "keys", "filter", "key", "length", "out", "codeOut", "map", "join"]
6
+ }
@@ -1,4 +1,6 @@
1
- var EMPTY_LOADER_STRING = 'export function loader() {return "__vxrn__loader__"};',
2
- LoaderDataCache = {};
3
- export { EMPTY_LOADER_STRING, LoaderDataCache };
4
- //# sourceMappingURL=constants.native.js.map
1
+ var EMPTY_LOADER_STRING = 'export function loader() {return "__vxrn__loader__"};', LoaderDataCache = {};
2
+ export {
3
+ EMPTY_LOADER_STRING,
4
+ LoaderDataCache
5
+ };
6
+ //# sourceMappingURL=constants.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["EMPTY_LOADER_STRING","LoaderDataCache"],"sources":["../../../src/vite/constants.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,mBAAM,0DAAsB;EAAAC,eAEtB,KAAkB","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/constants.ts"],
4
+ "mappings": "AAAO,IAAMA,sBAAsB,yDAEtBC,kBAAkB,CAAC;",
5
+ "names": ["EMPTY_LOADER_STRING", "LoaderDataCache"]
6
+ }
@@ -1,36 +1,31 @@
1
1
  import { join } from "node:path";
2
2
  import { debounce } from "perfect-debounce";
3
3
  import { createServerModuleRunner } from "vite";
4
- import { createHandleRequest } from "../createHandleRequest.native.js";
5
- import { isResponse } from "../utils/isResponse.native.js";
6
- import { isStatusRedirect } from "../utils/isStatus.native.js";
7
- import { promiseWithResolvers } from "../utils/promiseWithResolvers.native.js";
8
- import { LoaderDataCache } from "./constants.native.js";
9
- import { replaceLoader } from "./replaceLoader.native.js";
10
- import { resolveAPIRequest } from "./resolveAPIRequest.native.js";
11
- import { virtalEntryIdClient, virtualEntryId } from "./virtualEntryPlugin.native.js";
4
+ import { createHandleRequest } from "../createHandleRequest";
5
+ import { isResponse } from "../utils/isResponse";
6
+ import { isStatusRedirect } from "../utils/isStatus";
7
+ import { promiseWithResolvers } from "../utils/promiseWithResolvers";
8
+ import { LoaderDataCache } from "./constants";
9
+ import { replaceLoader } from "./replaceLoader";
10
+ import { resolveAPIRequest } from "./resolveAPIRequest";
11
+ import { virtalEntryIdClient, virtualEntryId } from "./virtualEntryPlugin";
12
12
  function _type_of(obj) {
13
13
  "@swc/helpers - typeof";
14
-
15
14
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
16
15
  }
17
16
  var USE_SERVER_ENV = !1;
18
17
  //!!process.env.USE_SERVER_ENV
19
18
  function createFileSystemRouter(options) {
20
- var preloads = ["/@vite/client", virtalEntryIdClient],
21
- runner,
22
- server,
23
- handleRequest = createRequestHandler(),
24
- renderPromise = null;
19
+ var preloads = [
20
+ "/@vite/client",
21
+ virtalEntryIdClient
22
+ ], runner, server, handleRequest = createRequestHandler(), renderPromise = null;
25
23
  function createRequestHandler() {
26
24
  return createHandleRequest(options, {
27
25
  async handleSSR(param) {
28
- var {
29
- route,
30
- url,
31
- loaderProps
32
- } = param;
33
- if (console.info(` \u24F5 [${route.type}] ${url} resolved to ${route.file}`), route.type === "spa") return `<html><head>
26
+ var { route, url, loaderProps } = param;
27
+ if (console.info(` \u24F5 [${route.type}] ${url} resolved to ${route.file}`), route.type === "spa")
28
+ return `<html><head>
34
29
  <script>globalThis['global'] = globalThis</script>
35
30
  <script>globalThis['__vxrnIsSPA'] = true</script>
36
31
  <script type="module">
@@ -42,31 +37,22 @@ function createFileSystemRouter(options) {
42
37
  <script type="module" src="/@vite/client" async=""></script>
43
38
  <script type="module" src="/@id/__x00__virtual:one-entry" async=""></script>
44
39
  </head></html>`;
45
- renderPromise && (await renderPromise);
46
- var {
47
- promise,
48
- resolve
49
- } = promiseWithResolvers();
40
+ renderPromise && await renderPromise;
41
+ var { promise, resolve } = promiseWithResolvers();
50
42
  renderPromise = promise;
51
43
  try {
52
- var _globalThis___vxrnresetState,
53
- _globalThis,
54
- _exported_loader,
55
- routeFile = join("app", route.file);
44
+ var _globalThis___vxrnresetState, _globalThis, _exported_loader, routeFile = join("app", route.file);
56
45
  runner.clearCache(), (_globalThis___vxrnresetState = (_globalThis = globalThis).__vxrnresetState) === null || _globalThis___vxrnresetState === void 0 || _globalThis___vxrnresetState.call(_globalThis);
57
- var exported = routeFile === "" ? {} : await runner.import(routeFile),
58
- loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps));
46
+ var exported = routeFile === "" ? {} : await runner.import(routeFile), loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps));
59
47
  eval("process.env.TAMAGUI_IS_SERVER = '1'");
60
- var entry = await runner.import(virtualEntryId),
61
- render = entry.default.render;
48
+ var entry = await runner.import(virtualEntryId), render = entry.default.render;
62
49
  globalThis.__vxrnLoaderData__ = loaderData, globalThis.__vxrnLoaderProps__ = loaderProps, LoaderDataCache[route.file] = loaderData;
63
- var is404 = route.isNotFound || !exported.default,
64
- html = await render({
65
- loaderData,
66
- loaderProps,
67
- path: loaderProps?.path || "/",
68
- preloads
69
- });
50
+ var is404 = route.isNotFound || !exported.default, html = await render({
51
+ loaderData,
52
+ loaderProps,
53
+ path: loaderProps?.path || "/",
54
+ preloads
55
+ });
70
56
  return is404 ? new Response(html, {
71
57
  status: 404,
72
58
  headers: {
@@ -75,9 +61,7 @@ function createFileSystemRouter(options) {
75
61
  }) : html;
76
62
  } catch (err) {
77
63
  console.error("Error in handleSSR:", err);
78
- var title = `Error rendering ${url.pathname} on server`,
79
- message = err instanceof Error ? err.message : `${err}`,
80
- stack = err instanceof Error ? err.stack : "";
64
+ var title = `Error rendering ${url.pathname} on server`, message = err instanceof Error ? err.message : `${err}`, stack = err instanceof Error ? err.stack : "";
81
65
  return console.error(`${title}
82
66
  ${message}
83
67
 
@@ -98,19 +82,10 @@ ${stack}
98
82
  }
99
83
  },
100
84
  async handleLoader(param2) {
101
- var {
102
- request,
103
- route: route2,
104
- url: url2,
105
- loaderProps: loaderProps2
106
- } = param2,
107
- _this,
108
- _exported_loader2,
109
- routeFile2 = join("app", route2.file),
110
- transformedJS = (_this = await server.transformRequest(routeFile2)) === null || _this === void 0 ? void 0 : _this.code;
111
- if (!transformedJS) throw new Error("No transformed js returned");
112
- var exported2 = await runner.import(routeFile2),
113
- loaderData2 = await ((_exported_loader2 = exported2.loader) === null || _exported_loader2 === void 0 ? void 0 : _exported_loader2.call(exported2, loaderProps2));
85
+ var { request, route: route2, url: url2, loaderProps: loaderProps2 } = param2, _this, _exported_loader2, routeFile2 = join("app", route2.file), transformedJS = (_this = await server.transformRequest(routeFile2)) === null || _this === void 0 ? void 0 : _this.code;
86
+ if (!transformedJS)
87
+ throw new Error("No transformed js returned");
88
+ var exported2 = await runner.import(routeFile2), loaderData2 = await ((_exported_loader2 = exported2.loader) === null || _exported_loader2 === void 0 ? void 0 : _exported_loader2.call(exported2, loaderProps2));
114
89
  loaderData2 && (transformedJS = replaceLoader({
115
90
  code: transformedJS,
116
91
  loaderData: loaderData2
@@ -118,22 +93,17 @@ ${stack}
118
93
  var platform = url2.searchParams.get("platform");
119
94
  if (platform === "ios" || platform === "android") {
120
95
  var environment = server.environments[platform || ""];
121
- if (!environment) throw new Error(`[handleLoader] No Vite environment found for platform '${platform}'`);
96
+ if (!environment)
97
+ throw new Error(`[handleLoader] No Vite environment found for platform '${platform}'`);
122
98
  var nativeTransformedJS = `exports.loader = () => (${JSON.stringify(loaderData2)});`;
123
99
  return nativeTransformedJS;
124
100
  }
125
101
  return transformedJS;
126
102
  },
127
103
  async handleAPI(param2) {
128
- var {
129
- request,
130
- route: route2,
131
- url: url2,
132
- loaderProps: loaderProps2
133
- } = param2,
134
- result = await resolveAPIRequest(function () {
135
- return runner.import(join("app", route2.file));
136
- }, request, loaderProps2?.params || {});
104
+ var { request, route: route2, url: url2, loaderProps: loaderProps2 } = param2, result = await resolveAPIRequest(function() {
105
+ return runner.import(join("app", route2.file));
106
+ }, request, loaderProps2?.params || {});
137
107
  return result;
138
108
  }
139
109
  });
@@ -144,12 +114,17 @@ ${stack}
144
114
  apply: "serve",
145
115
  async config(userConfig) {
146
116
  if (handleRequest.manifest.pageRoutes) {
147
- var routesAndLayouts = [...new Set(handleRequest.manifest.pageRoutes.flatMap(function (route2) {
148
- var _route_layouts;
149
- return [join("app", route2.file), ...(((_route_layouts = route2.layouts) === null || _route_layouts === void 0 ? void 0 : _route_layouts.map(function (layout) {
150
- return join("app", layout.contextKey);
151
- })) || [])];
152
- }))];
117
+ var routesAndLayouts = [
118
+ ...new Set(handleRequest.manifest.pageRoutes.flatMap(function(route2) {
119
+ var _route_layouts;
120
+ return [
121
+ join("app", route2.file),
122
+ ...((_route_layouts = route2.layouts) === null || _route_layouts === void 0 ? void 0 : _route_layouts.map(function(layout) {
123
+ return join("app", layout.contextKey);
124
+ })) || []
125
+ ];
126
+ }))
127
+ ];
153
128
  return {
154
129
  optimizeDeps: {
155
130
  /**
@@ -203,37 +178,29 @@ ${stack}
203
178
  // }
204
179
  configureServer(serverIn) {
205
180
  server = serverIn, runner = createServerModuleRunner(USE_SERVER_ENV ? server.environments.server : server.environments.ssr);
206
- var appDir = join(process.cwd(), "app"),
207
- fileWatcherChangeListener = debounce(async function (type, path) {
208
- (type === "add" || type === "delete") && path.startsWith(appDir) && (handleRequest = createRequestHandler());
209
- }, 100);
210
- return server.watcher.addListener("all", fileWatcherChangeListener), function () {
211
- server.middlewares.use(async function (req, res, next) {
181
+ var appDir = join(process.cwd(), "app"), fileWatcherChangeListener = debounce(async function(type, path) {
182
+ (type === "add" || type === "delete") && path.startsWith(appDir) && (handleRequest = createRequestHandler());
183
+ }, 100);
184
+ return server.watcher.addListener("all", fileWatcherChangeListener), function() {
185
+ server.middlewares.use(async function(req, res, next) {
212
186
  try {
213
- var _options_web,
214
- redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
187
+ var _options_web, redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
215
188
  if (redirects) {
216
- var url2 = new URL(req.url || "", `http://${req.headers.host}`),
217
- _iteratorNormalCompletion = !0,
218
- _didIteratorError = !1,
219
- _iteratorError = void 0;
189
+ var url2 = new URL(req.url || "", `http://${req.headers.host}`), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
220
190
  try {
221
- for (var _loop = function () {
222
- var redirect = _step.value,
223
- regexStr = `^${redirect.source.replace(/:\w+/g, "([^/]+)")}$`,
224
- match = url2.pathname.match(new RegExp(regexStr));
225
- if (match) {
226
- var destination = redirect.destination,
227
- params = redirect.source.match(/:\w+/g);
228
- return params && params.forEach(function (param2, index) {
229
- destination = destination.replace(param2, match[index + 1] || "");
230
- }), console.warn(` [one] redirecting via redirect: ${destination}`), res.writeHead(redirect.permanent ? 301 : 302, {
231
- Location: destination
232
- }), res.end(), {
233
- v: void 0
234
- };
235
- }
236
- }, _iterator = redirects[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
191
+ for (var _loop = function() {
192
+ var redirect = _step.value, regexStr = `^${redirect.source.replace(/:\w+/g, "([^/]+)")}$`, match = url2.pathname.match(new RegExp(regexStr));
193
+ if (match) {
194
+ var destination = redirect.destination, params = redirect.source.match(/:\w+/g);
195
+ return params && params.forEach(function(param2, index) {
196
+ destination = destination.replace(param2, match[index + 1] || "");
197
+ }), console.warn(` [one] redirecting via redirect: ${destination}`), res.writeHead(redirect.permanent ? 301 : 302, {
198
+ Location: destination
199
+ }), res.end(), {
200
+ v: void 0
201
+ };
202
+ }
203
+ }, _iterator = redirects[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
237
204
  var _ret = _loop();
238
205
  if (_type_of(_ret) === "object") return _ret.v;
239
206
  }
@@ -243,12 +210,14 @@ ${stack}
243
210
  try {
244
211
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
245
212
  } finally {
246
- if (_didIteratorError) throw _iteratorError;
213
+ if (_didIteratorError)
214
+ throw _iteratorError;
247
215
  }
248
216
  }
249
217
  }
250
218
  var reply = await handleRequest.handler(await convertIncomingMessageToRequest(req));
251
- if (!reply) return next();
219
+ if (!reply)
220
+ return next();
252
221
  if (typeof reply != "string" && isResponse(reply)) {
253
222
  if (isStatusRedirect(reply.status)) {
254
223
  var location = `${reply.headers.get("location") || ""}`;
@@ -260,12 +229,9 @@ ${stack}
260
229
  }
261
230
  console.error("No location provided to redirected status reply", reply);
262
231
  }
263
- res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach(function (value, key) {
232
+ res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach(function(value, key) {
264
233
  if (key === "set-cookie") {
265
- var cookies = value.split(", "),
266
- _iteratorNormalCompletion2 = !0,
267
- _didIteratorError2 = !1,
268
- _iteratorError2 = void 0;
234
+ var cookies = value.split(", "), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
269
235
  try {
270
236
  for (var _iterator2 = cookies[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
271
237
  var cookie = _step2.value;
@@ -277,10 +243,12 @@ ${stack}
277
243
  try {
278
244
  !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
279
245
  } finally {
280
- if (_didIteratorError2) throw _iteratorError2;
246
+ if (_didIteratorError2)
247
+ throw _iteratorError2;
281
248
  }
282
249
  }
283
- } else res.setHeader(key, value);
250
+ } else
251
+ res.setHeader(key, value);
284
252
  });
285
253
  var outString = "";
286
254
  reply.body && reply.body.locked && console.warn("Body is locked??");
@@ -308,15 +276,10 @@ ${stack}
308
276
  };
309
277
  }
310
278
  async function streamToString(stream) {
311
- var reader = stream.getReader(),
312
- decoder = new TextDecoder(),
313
- result = "";
279
+ var reader = stream.getReader(), decoder = new TextDecoder(), result = "";
314
280
  try {
315
- for (;;) {
316
- var {
317
- done,
318
- value
319
- } = await reader.read();
281
+ for (; ; ) {
282
+ var { done, value } = await reader.read();
320
283
  if (done) break;
321
284
  result += decoder.decode(value, {
322
285
  stream: !0
@@ -329,28 +292,34 @@ async function streamToString(stream) {
329
292
  }
330
293
  return result;
331
294
  }
332
- var convertIncomingMessageToRequest = async function (req) {
333
- if (!req.originalUrl) throw new Error("Can't convert");
334
- var urlBase = `http://${req.headers.host}`,
335
- urlString = req.originalUrl || "",
336
- url2 = new URL(urlString, urlBase),
337
- headers = new Headers();
338
- for (var key in req.headers) req.headers[key] && headers.append(key, req.headers[key]);
295
+ var convertIncomingMessageToRequest = async function(req) {
296
+ if (!req.originalUrl)
297
+ throw new Error("Can't convert");
298
+ var urlBase = `http://${req.headers.host}`, urlString = req.originalUrl || "", url2 = new URL(urlString, urlBase), headers = new Headers();
299
+ for (var key in req.headers)
300
+ req.headers[key] && headers.append(key, req.headers[key]);
339
301
  return new Request(url2, {
340
302
  method: req.method,
341
- body: ["POST", "PUT", "PATCH", "DELETE"].includes(req.method || "") ? await readStream(req) : null,
303
+ body: [
304
+ "POST",
305
+ "PUT",
306
+ "PATCH",
307
+ "DELETE"
308
+ ].includes(req.method || "") ? await readStream(req) : null,
342
309
  headers
343
310
  });
344
311
  };
345
312
  function readStream(stream) {
346
- return new Promise(function (resolve2, reject) {
313
+ return new Promise(function(resolve2, reject) {
347
314
  var chunks = [];
348
- stream.on("data", function (chunk) {
315
+ stream.on("data", function(chunk) {
349
316
  return chunks.push(chunk);
350
- }), stream.on("end", function () {
317
+ }), stream.on("end", function() {
351
318
  return resolve2(Buffer.concat(chunks));
352
319
  }), stream.on("error", reject);
353
320
  });
354
321
  }
355
- export { createFileSystemRouter };
356
- //# sourceMappingURL=createFileSystemRouter.native.js.map
322
+ export {
323
+ createFileSystemRouter
324
+ };
325
+ //# sourceMappingURL=createFileSystemRouter.js.map