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":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","_type_of","obj","Symbol","constructor","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","param","route","url","loaderProps","console","info","type","file","promise","resolve","_globalThis___vxrnresetState","_globalThis","_exported_loader","routeFile","clearCache","globalThis","__vxrnresetState","call","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","param2","request","route2","url2","loaderProps2","_this","_exported_loader2","routeFile2","transformedJS","transformRequest","code","exported2","loaderData2","platform","searchParams","get","environment","environments","nativeTransformedJS","JSON","stringify","handleAPI","result","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","routesAndLayouts","Set","flatMap","_route_layouts","layouts","map","layout","contextKey","optimizeDeps","entries","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","_options_web","redirects","web","URL","host","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","redirect","_step","value","regexStr","source","replace","match","RegExp","destination","forEach","index","warn","writeHead","permanent","Location","end","v","_iterator","iterator","done","_ret","return","reply","handler","convertIncomingMessageToRequest","location","statusCode","statusMessage","statusText","key"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,SAAMC,SAAAC,GAAA,EAAiB;EAAM;;EAEtB,OAASA,GAAA,WAAAC,MAAA,GAAuB,OAAAD,GAAoC,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAGzE;AAEA,IAAAG,cACI,IAEA;AAIJ;AACE,SAAAC,sBAA2BA,CAAAC,OAAA,EAAS;EAAA,IAClCC,QAAM,IAGJ,eAFA,EAIET,mBAAO;IAAAU,MAAA;IAAAC,MAAA;IAAAC,aAAA,GAAAC,oBAAA;IAAAC,aAAA;EAAA,SAAAD,qBAAA;IAAA,OAAApB,mBAAA,CAAAe,OAAA;MAAA,MAAAO,UAAAC,KAAA;QAAA;UAAAC,KAAA;UAAAC,GAAA;UAAAC;QAAA,IAAAH,KAAA;QAAA,IAAAI,OAAA,CAAAC,IAAA,cAAAJ,KAAA,CAAAK,IAAA,KAAAJ,GAAA,gBAAAD,KAAA,CAAAM,IAAA,KAAAN,KAAA,CAAAK,IAAA;AAAA;AAAA;AAAA;AAAA;AAcT;AAIA;AACA;AAEA;AACE;AACA;AAIA,yBAAM;QAINR,aAAK,WAAAA,aAAA;QAEL;UAAAU,OAAM;UAAAC;QAAc,IAAA7B,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C,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMzI,SAAQ4I,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
5
+ "names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "location", "statusCode", "statusMessage", "statusText", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
6
+ }
@@ -7,14 +7,11 @@ function nodeExternals() {
7
7
  resolveId: {
8
8
  order: "pre",
9
9
  async handler(specifier, importer, param) {
10
- var {
11
- isEntry
12
- } = param;
13
- if (isEntry ||
14
- // Ignore entry points (they should always be resolved)
15
- /^(?:\0|\.{1,2}\/)/.test(specifier) ||
16
- // Ignore virtual modules and relative imports
17
- path.isAbsolute(specifier)) return null;
10
+ var { isEntry } = param;
11
+ if (isEntry || // Ignore entry points (they should always be resolved)
12
+ /^(?:\0|\.{1,2}\/)/.test(specifier) || // Ignore virtual modules and relative imports
13
+ path.isAbsolute(specifier))
14
+ return null;
18
15
  if (isBuiltin(specifier)) {
19
16
  var stripped = specifier.replace(/^node:/, "");
20
17
  return {
@@ -27,5 +24,7 @@ function nodeExternals() {
27
24
  }
28
25
  };
29
26
  }
30
- export { nodeExternals };
31
- //# sourceMappingURL=customNodeExternals.native.js.map
27
+ export {
28
+ nodeExternals
29
+ };
30
+ //# sourceMappingURL=customNodeExternals.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["isBuiltin","path","nodeExternals","name","enforce","resolveId","order","handler","specifier","importer","param","isEntry","test","isAbsolute","stripped","replace","id","external","moduleSideEffects"],"sources":["../../../src/vite/customNodeExternals.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,SAAA,QAAiB;AAC1B,OAAOC,IAAA,MAAU;AAGV,SAASC,cAAA,EAAwB;EACtC,OAAO;IACLC,IAAA,EAAM;IACNC,OAAA,EAAS;IAETC,SAAA,EAAW;MACTC,KAAA,EAAO;MACP,MAAMC,QAAQC,SAAA,EAAWC,QAAA,EAAUC,KAAE;QACnC,IACE;UAAAC;QAAA,IAAAD,KAAA;QACA,IAAAC,OAAA;QAAA;QACA,mBAAgB,CAAAC,IAAA,CAASJ,SAAA;QAAA;QAEzBP,IAAA,CAAAY,UAAO,CAAAL,SAAA,GAET,OAAI;QACF,IAAAR,SAAM,CAAAQ,SAAW;UACjB,IAAAM,QAAO,GAAAN,SAAA,CAAAO,OAAA;UAAA,OACA;YACLC,EAAA,EAAAhB,SAAU,CAAAc,QAAA,IAAAA,QAAA,aAAAA,QAAA;YACVG,QAAA;YACFC,iBAAA;UACF;QACF;MACF;IACF;EACF","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/customNodeExternals.ts"],
4
+ "mappings": "AAEA,SAASA,iBAAiB;AAC1B,OAAOC,UAAU;AAGV,SAASC,gBAAAA;AACd,SAAO;IACLC,MAAM;IACNC,SAAS;IAETC,WAAW;MACTC,OAAO;MACP,MAAMC,QAAQC,WAAWC,UAAU,OAAW;YAAX,EAAEC,QAAO,IAAT;AACjC,YACEA;QACA,oBAAoBC,KAAKH,SAAAA;QACzBP,KAAKW,WAAWJ,SAAAA;AAEhB,iBAAO;AAET,YAAIR,UAAUQ,SAAAA,GAAY;AACxB,cAAMK,WAAWL,UAAUM,QAAQ,UAAU,EAAA;AAC7C,iBAAO;YACLC,IAAKf,UAAUa,QAAAA,IAAiCA,WAArB,UAAUA;YACrCG,UAAU;YACVC,mBAAmB;UACrB;QACF;MACF;IACF;EACF;AACF;",
5
+ "names": ["isBuiltin", "path", "nodeExternals", "name", "enforce", "resolveId", "order", "handler", "specifier", "importer", "isEntry", "test", "isAbsolute", "stripped", "replace", "id", "external", "moduleSideEffects"]
6
+ }
@@ -1,8 +1,8 @@
1
1
  import { writeFile } from "node:fs/promises";
2
- import "../polyfills-server.native.js";
3
- import { existsAsync } from "../utils/existsAsync.native.js";
2
+ import "../polyfills-server";
3
+ import { existsAsync } from "../utils/existsAsync";
4
4
  function ensureTSConfig() {
5
- existsAsync("tsconfig.json").then(function (hasTsConfig) {
5
+ existsAsync("tsconfig.json").then(function(hasTsConfig) {
6
6
  hasTsConfig || (console.info("[one] adding default tsconfig.json. to disable set one/vite { config: { tsConfigPaths: false } }"), writeFile("tsconfig.json", `{
7
7
  "compilerOptions": {
8
8
  "baseUrl": ".",
@@ -41,5 +41,7 @@ function ensureTSConfig() {
41
41
  `));
42
42
  });
43
43
  }
44
- export { ensureTSConfig };
45
- //# sourceMappingURL=ensureTsConfig.native.js.map
44
+ export {
45
+ ensureTSConfig
46
+ };
47
+ //# sourceMappingURL=ensureTsConfig.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["writeFile","existsAsync","ensureTSConfig","then","hasTsConfig","console","info"],"sources":["../../../src/vite/ensureTsConfig.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAC1B,OAAO;AACP,SAASC,WAAA,QAAmB;AAErB,SAASC,eAAA,EAAiB;EAC/BD,WAAA,CAAY,eAAe,EAAEE,IAAA,CAAK,UAACC,WAAgB;IAC5CA,WAAA,KACHC,OAAA,CAAQC,IAAA,sGAAAN,SAAA;AAAA;AACN;AAEF;AACE;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAAA;AAAA;AAAA,SAAAE,cAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/ensureTsConfig.ts"],
4
+ "mappings": "AAAA,SAASA,iBAAiB;AAC1B,OAAO;AACP,SAASC,mBAAmB;AAErB,SAASC,iBAAAA;AACdD,cAAY,eAAA,EAAiBE,KAAK,SAACC,aAAAA;AACjC,IAAKA,gBACHC,QAAQC,KACN,kGAAkG,GAEpGN,UACE,iBACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCP;EAGC,CAAA;AACF;",
5
+ "names": ["writeFile", "existsAsync", "ensureTSConfig", "then", "hasTsConfig", "console", "info"]
6
+ }
@@ -4,40 +4,48 @@ import path, { dirname } from "node:path";
4
4
  import { createRequire } from "node:module";
5
5
  async function getAllDependencies(root) {
6
6
  var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 20;
7
- if (depth === 0) return [];
7
+ if (depth === 0)
8
+ return [];
8
9
  var pkgJsonPath = await findClosestPkgJsonPath(root);
9
- if (!pkgJsonPath) throw new Error(`Cannot find package.json from ${root}`);
10
+ if (!pkgJsonPath)
11
+ throw new Error(`Cannot find package.json from ${root}`);
10
12
  return await crawl(pkgJsonPath, depth - 1);
11
13
  }
12
14
  async function crawl(pkgJsonPath) {
13
- var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1 / 0,
14
- pkgJson = await FSExtra.readJson(pkgJsonPath).catch(function (e) {
15
- throw new Error(`Unable to read ${pkgJsonPath}`, {
16
- cause: e
17
- });
18
- }),
19
- dependencies = pkgJson.dependencies ? Object.keys(pkgJson.dependencies) : [];
20
- return await Promise.all(dependencies.map(async function (depName) {
15
+ var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1 / 0, pkgJson = await FSExtra.readJson(pkgJsonPath).catch(function(e) {
16
+ throw new Error(`Unable to read ${pkgJsonPath}`, {
17
+ cause: e
18
+ });
19
+ }), dependencies = pkgJson.dependencies ? Object.keys(pkgJson.dependencies) : [];
20
+ return await Promise.all(dependencies.map(async function(depName) {
21
21
  try {
22
- var resolved = createRequire(dirname(pkgJsonPath)).resolve(depName),
23
- subDeps = await getAllDependencies(resolved, depth - 1);
24
- subDeps && (dependencies = [...dependencies, ...subDeps]);
22
+ var resolved = createRequire(dirname(pkgJsonPath)).resolve(depName), subDeps = await getAllDependencies(resolved, depth - 1);
23
+ subDeps && (dependencies = [
24
+ ...dependencies,
25
+ ...subDeps
26
+ ]);
25
27
  } catch {
26
28
  console.log("Couldn't resolve", depName);
27
29
  }
28
- })), [...new Set(dependencies)];
30
+ })), [
31
+ ...new Set(dependencies)
32
+ ];
29
33
  }
30
34
  async function findClosestPkgJsonPath(dir, predicate) {
31
- for (dir.endsWith("package.json") && (dir = path.dirname(dir)); dir;) {
35
+ for (dir.endsWith("package.json") && (dir = path.dirname(dir)); dir; ) {
32
36
  var pkg = path.join(dir, "package.json");
33
37
  try {
34
38
  var stat = await fs.stat(pkg);
35
- if (stat.isFile() && (!predicate || (await predicate(pkg)))) return pkg;
36
- } catch {}
39
+ if (stat.isFile() && (!predicate || await predicate(pkg)))
40
+ return pkg;
41
+ } catch {
42
+ }
37
43
  var nextDir = path.dirname(dir);
38
44
  if (nextDir === dir) break;
39
45
  dir = nextDir;
40
46
  }
41
47
  }
42
- export { getAllDependencies };
43
- //# sourceMappingURL=findDepsToOptimize.native.js.map
48
+ export {
49
+ getAllDependencies
50
+ };
51
+ //# sourceMappingURL=findDepsToOptimize.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["FSExtra","fs","path","dirname","createRequire","getAllDependencies","root","depth","arguments","length","pkgJsonPath","findClosestPkgJsonPath","Error","crawl","pkgJson","readJson","catch","e","cause","dependencies","Object","keys","Promise","all","map","depName","resolved","resolve","subDeps","console","log","Set","dir","predicate","endsWith","pkg","join","stat","isFile"],"sources":["../../../src/vite/findDepsToOptimize.ts"],"sourcesContent":[null],"mappings":"AAEA,OAAOA,OAAA,MAAa;AACpB,OAAOC,EAAA,MAAQ;AACf,OAAOC,IAAA,IAAQC,OAAA,QAAe;AAC9B,SAASC,aAAA,QAAqB;AAG9B,eAAsBC,mBAAmBC,IAAA,EAAc;EACrD,IAAIC,KAAA,GAAAC,SAAU,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EACZ,IAAAD,KAAO,KAAC,GAEV,OAAM;EACN,IAAIG,WAAC,SAAAC,sBAAA,CAAAL,IAAA;EACH,KAAAI,WAAU,EAEZ,MAAO,IAAAE,KAAM,kCAA4BN,IAAA;EAC3C,aAAAO,KAAA,CAAAH,WAAA,EAAAH,KAAA;AAEA;AACE,eAAMM,KAAUA,CAAAH,WAAc;EAC5B,IAAAH,KAAM,GAAIC,SAAM,CAAAC,MAAA,QAAkB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AACF,UAAMK,OAAO,MAAMnC,GAAGmC,KAAKF,GAAAA;AAC3B,UAAIE,KAAKC,OAAM,MAAO,CAACL,aAAc,MAAMA,UAAUE,GAAAA;AACnD,eAAOA;IAEX,QAAQ;IAAC;AACT,QAAMI,UAAUpC,KAAKC,QAAQ4B,GAAAA;AAC7B,QAAIO,YAAYP,IAAK;AACrBA,UAAMO;EACR;AAEF;",
5
+ "names": ["FSExtra", "fs", "path", "dirname", "createRequire", "getAllDependencies", "root", "depth", "pkgJsonPath", "findClosestPkgJsonPath", "Error", "crawl", "Infinity", "pkgJson", "readJson", "catch", "e", "cause", "dependencies", "Object", "keys", "Promise", "all", "map", "depName", "resolved", "resolve", "subDeps", "console", "log", "Set", "dir", "predicate", "endsWith", "pkg", "join", "stat", "isFile", "nextDir"]
6
+ }
@@ -17,9 +17,11 @@ function fixDependenciesPlugin(options) {
17
17
  !hasApplied && patches.length && (hasApplied = !0, await applyOptimizePatches(patches, config));
18
18
  },
19
19
  async configResolved(config) {
20
- patches.length && (await applyDependencyPatches(patches, config));
20
+ patches.length && await applyDependencyPatches(patches, config);
21
21
  }
22
22
  };
23
23
  }
24
- export { fixDependenciesPlugin };
25
- //# sourceMappingURL=fixDependenciesPlugin.native.js.map
24
+ export {
25
+ fixDependenciesPlugin
26
+ };
27
+ //# sourceMappingURL=fixDependenciesPlugin.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["applyOptimizePatches","applyDependencyPatches","hasApplied","fixDependenciesPlugin","options","patches","key","value","push","module","patchFiles","optimize","name","config","length","configResolved"],"sources":["../../../src/vite/fixDependenciesPlugin.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,oBAAA,EAAsBC,sBAAA,QAA6C;AAG5E,IAAIC,UAAA,GAAa;AAEV,SAASC,sBAAsBC,OAAA,EAAuC;EAC3E,IAAAC,OAAM,KAAsB;EAC5B,SAAAC,GAAW,IAAAF,OAAO;IAChB,IAAAG,KAAM,GAAAH,OAAQ,CAAAE,GAAQ;IACtBD,OAAA,CAAQG,IAAA,CAAK;MACXC,MAAA,EAAQH,GAAA;MACRI,UAAA,EACEH,KAAA,IAAS,OAAOA,KAAA,IAAU,WACtBA,KAAA,GACA;QACEI,QAAA,EAAUJ;MACZ;IACR,CAAC;EACH;EAEA,OAAO;IACLK,IAAA,EAAM;IAEN,MAAMC,OAAOA,MAAA,EAAQ;MACf,CAACX,UAAA,IAAcG,OAAA,CAAQS,MAAA,KACzBZ,UAAA,GAAa,IACb,MAAMF,oBAAA,CAAqBK,OAAA,EAASQ,MAAM;IAE9C;IAEA,MAAME,eAAeF,MAAA,EAAQ;MACvBR,OAAA,CAAQS,MAAA,KACV,MAAMb,sBAAA,CAAuBI,OAAA,EAASQ,MAAM;IAEhD;EACF;AACF","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/fixDependenciesPlugin.ts"],
4
+ "mappings": "AAEA,SAASA,sBAAsBC,8BAA6C;AAG5E,IAAIC,aAAa;AAEV,SAASC,sBAAsBC,SAA6B;AACjE,MAAMC,UAAsB,CAAA;AAC5B,WAAWC,OAAOF,SAAS;AACzB,QAAMG,QAAQH,QAAQE,GAAAA;AACtBD,YAAQG,KAAK;MACXC,QAAQH;MACRI,YACEH,SAAS,OAAOA,SAAU,WACtBA,QACA;QACEI,UAAUJ;MACZ;IACR,CAAA;EACF;AAEA,SAAO;IACLK,MAAM;IAEN,MAAMC,OAAOA,QAAM;AACjB,MAAI,CAACX,cAAcG,QAAQS,WACzBZ,aAAa,IACb,MAAMF,qBAAqBK,SAASQ,MAAAA;IAExC;IAEA,MAAME,eAAeF,QAAM;AACzB,MAAIR,QAAQS,UACV,MAAMb,uBAAuBI,SAASQ,MAAAA;IAE1C;EACF;AACF;",
5
+ "names": ["applyOptimizePatches", "applyDependencyPatches", "hasApplied", "fixDependenciesPlugin", "options", "patches", "key", "value", "push", "module", "patchFiles", "optimize", "name", "config", "length", "configResolved"]
6
+ }
@@ -1,22 +1,22 @@
1
1
  import { join } from "node:path";
2
2
  import { debounce } from "perfect-debounce";
3
- import { generateRouteTypes } from "../typed-routes/generateRouteTypes.native.js";
3
+ import { generateRouteTypes } from "../typed-routes/generateRouteTypes";
4
4
  function generateTypesForRoutes(options) {
5
5
  return {
6
6
  name: "one-generate-fs-route-types",
7
7
  enforce: "post",
8
8
  apply: "serve",
9
9
  configureServer(server) {
10
- var appDir = join(process.cwd(), "app"),
11
- outFile = join(process.cwd(), "routes.d.ts"),
12
- fileWatcherChangeListener = debounce(async function (type, path) {
13
- (type === "add" || type === "delete") && path.startsWith(appDir) && generateRouteTypes(outFile);
14
- }, 100);
15
- return server.watcher.addListener("all", fileWatcherChangeListener), function () {
10
+ var appDir = join(process.cwd(), "app"), outFile = join(process.cwd(), "routes.d.ts"), fileWatcherChangeListener = debounce(async function(type, path) {
11
+ (type === "add" || type === "delete") && path.startsWith(appDir) && generateRouteTypes(outFile);
12
+ }, 100);
13
+ return server.watcher.addListener("all", fileWatcherChangeListener), function() {
16
14
  generateRouteTypes(outFile);
17
15
  };
18
16
  }
19
17
  };
20
18
  }
21
- export { generateTypesForRoutes };
22
- //# sourceMappingURL=generateTypesForRoutes.native.js.map
19
+ export {
20
+ generateTypesForRoutes
21
+ };
22
+ //# sourceMappingURL=generateTypesForRoutes.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["join","debounce","generateRouteTypes","generateTypesForRoutes","options","name","enforce","apply","configureServer","server","appDir","process","cwd","outFile","fileWatcherChangeListener","type","path","startsWith","watcher","addListener"],"sources":["../../../src/vite/generateTypesForRoutes.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAGzB,SAASC,kBAAA,QAA0B;AAE5B,SAASC,uBAAuBC,OAAA,EAAoC;EACzE,OAAO;IACLC,IAAA,EAAM;IACNC,OAAA,EAAS;IACTC,KAAA,EAAO;IAEPC,gBAAgBC,MAAA,EAAQ;MACtB,IAAAC,MAAM,GAAAV,IAAS,CAAAW,OAAK,CAAAC,GAAQ,IAAI,KAAG;QAAKC,OAClC,GAAAb,IAAU,CAAAW,OAAK,CAAAC,GAAQ,IAAI,aAAG;QAAaE,yBAG3C,GAAAb,QAA4B,iBAA8Bc,IAAA,EAAAC,IAAiB;UAC/E,CAAID,IAAA,KAAS,SAASA,IAAA,KAAS,aACzBC,IAAA,CAAKC,UAAA,CAAWP,MAAM,KAExBR,kBAAA,CAAmBW,OAAO;QAGhC,GAAG,GAAG;MAEN,OAAAJ,MAAA,CAAOS,OAAA,CAAQC,WAAA,CAAY,OAAOL,yBAAyB,GAEpD,YAAM;QAGXZ,kBAAA,CAAmBW,OAAO;MAC5B;IACF;EACF;AACF","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/generateTypesForRoutes.tsx"],
4
+ "mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAGzB,SAASC,0BAA0B;AAE5B,SAASC,uBAAuBC,SAA0B;AAC/D,SAAO;IACLC,MAAM;IACNC,SAAS;IACTC,OAAO;IAEPC,gBAAgBC,QAAM;AACpB,UAAMC,SAASV,KAAKW,QAAQC,IAAG,GAAI,KAAA,GAC7BC,UAAUb,KAAKW,QAAQC,IAAG,GAAI,aAAA,GAG9BE,4BAA4Bb,SAAS,eAAOc,MAAcC,MAAAA;AAC9D,SAAID,SAAS,SAASA,SAAS,aACzBC,KAAKC,WAAWP,MAAAA,KAElBR,mBAAmBW,OAAAA;MAGzB,GAAG,GAAA;AAEHJ,oBAAOS,QAAQC,YAAY,OAAOL,yBAAAA,GAE3B,WAAA;AAGLZ,2BAAmBW,OAAAA;MACrB;IACF;EACF;AACF;",
5
+ "names": ["join", "debounce", "generateRouteTypes", "generateTypesForRoutes", "options", "name", "enforce", "apply", "configureServer", "server", "appDir", "process", "cwd", "outFile", "fileWatcherChangeListener", "type", "path", "startsWith", "watcher", "addListener"]
6
+ }
@@ -1,10 +1,12 @@
1
- import { createRoutesManifest } from "../server/createRoutesManifest.native.js";
2
- import { globDir } from "../utils/globDir.native.js";
1
+ import { createRoutesManifest } from "../server/createRoutesManifest";
2
+ import { globDir } from "../utils/globDir";
3
3
  function getManifest() {
4
4
  var routePaths = globDir("app");
5
5
  return createRoutesManifest(routePaths, {
6
6
  platform: "web"
7
7
  });
8
8
  }
9
- export { getManifest };
10
- //# sourceMappingURL=getManifest.native.js.map
9
+ export {
10
+ getManifest
11
+ };
12
+ //# sourceMappingURL=getManifest.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["createRoutesManifest","globDir","getManifest","routePaths","platform"],"sources":["../../../src/vite/getManifest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,oBAAA,QAA4B;AACrC,SAASC,OAAA,QAAe;AAEjB,SAASC,YAAA,EAAc;EAC5B,IAAAC,UAAM,GAAAF,OAAa,MAAQ;EAC3B,OAAOD,oBAAA,CAAqBG,UAAA,EAAY;IACtCC,QAAA,EAAU;EACZ,CAAC;AACH","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/getManifest.ts"],
4
+ "mappings": "AAAA,SAASA,4BAA4B;AACrC,SAASC,eAAe;AAEjB,SAASC,cAAAA;AACd,MAAMC,aAAaF,QAAQ,KAAA;AAC3B,SAAOD,qBAAqBG,YAAY;IACtCC,UAAU;EACZ,CAAA;AACF;",
5
+ "names": ["createRoutesManifest", "globDir", "getManifest", "routePaths", "platform"]
6
+ }
@@ -1,6 +1,12 @@
1
- var requestAsyncLocalStore = null,
2
- asyncHeadersCache = /* @__PURE__ */new WeakMap();
3
- async function setCurrentRequestHeaders(cb) {}
4
- function mergeHeaders(onto, from) {}
5
- export { asyncHeadersCache, mergeHeaders, requestAsyncLocalStore, setCurrentRequestHeaders };
1
+ var requestAsyncLocalStore = null, asyncHeadersCache = /* @__PURE__ */ new WeakMap();
2
+ async function setCurrentRequestHeaders(cb) {
3
+ }
4
+ function mergeHeaders(onto, from) {
5
+ }
6
+ export {
7
+ asyncHeadersCache,
8
+ mergeHeaders,
9
+ requestAsyncLocalStore,
10
+ setCurrentRequestHeaders
11
+ };
6
12
  //# sourceMappingURL=headers.native.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["requestAsyncLocalStore","asyncHeadersCache","WeakMap","setCurrentRequestHeaders","cb","mergeHeaders","onto","from"],"sources":["../../../src/vite/Users/n8/one/packages/one/src/vite/headers.native.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAMA,sBAAA,GAAyB;EAEzBC,iBAAA,GAAoB,mBAAIC,OAAA;AAIrC,eAAsBC,yBAAyBC,EAAA,EAA8B,CAAG;AAEzE,SAASC,aAAaC,IAAA,EAAeC,IAAA,EAAa,CAAG","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/headers.native.ts"],
4
+ "mappings": "AAAO,IAAMA,yBAAyB,MAEzBC,oBAAoB,oBAAIC,QAAAA;AAIrC,eAAsBC,yBAAyBC,IAA8B;AAAG;AAEzE,SAASC,aAAaC,MAAeC,MAAa;AAAG;",
5
+ "names": ["requestAsyncLocalStore", "asyncHeadersCache", "WeakMap", "setCurrentRequestHeaders", "cb", "mergeHeaders", "onto", "from"]
6
+ }
@@ -3,13 +3,14 @@ import path from "node:path";
3
3
  async function loadEnv(root) {
4
4
  var envPath = path.join(root, ".env");
5
5
  if (fs.existsSync(envPath)) {
6
- var dotenv = await import("dotenv"),
7
- result = dotenv.config({
8
- path: envPath
9
- });
6
+ var dotenv = await import("dotenv"), result = dotenv.config({
7
+ path: envPath
8
+ });
10
9
  if (result.error) throw result.error;
11
10
  return !0;
12
11
  }
13
12
  }
14
- export { loadEnv };
15
- //# sourceMappingURL=loadEnv.native.js.map
13
+ export {
14
+ loadEnv
15
+ };
16
+ //# sourceMappingURL=loadEnv.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["fs","path","loadEnv","root","envPath","join","existsSync","dotenv","result","config","error"],"sources":["../../../src/vite/loadEnv.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,EAAA,MAAQ;AACf,OAAOC,IAAA,MAAU;AAEjB,eAAsBC,QAAQC,IAAA,EAAc;EAC1C,IAAAC,OAAM,GAAAH,IAAU,CAAAI,IAAK,CAAAF,IAAK,QAAM;EAChC,IAAIH,EAAC,CAAAM,UAAG,CAAAF,OAAW,CAAO,EAAG;IAE7B,IAAMG,MAAA,SADS,MAAM,SAAO,CAAQ;MAAAC,MACd,GAAOD,MAAE,CAAME,MAAA;QACjCR,IAAA,EAAAG;MACJ;IACF,IAAAI,MAAA,CAAAE,KAAA,QAAAF,MAAA,CAAAE,KAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/loadEnv.ts"],
4
+ "mappings": "AAAA,OAAOA,QAAQ;AACf,OAAOC,UAAU;AAEjB,eAAsBC,QAAQC,MAAY;AACxC,MAAMC,UAAUH,KAAKI,KAAKF,MAAM,MAAA;AAChC,MAAKH,GAAGM,WAAWF,OAAAA,GACnB;QAAMG,SAAS,MAAM,OAAO,QAAA,GACtBC,SAASD,OAAOE,OAAO;MAAER,MAAMG;IAAQ,CAAA;AAC7C,QAAII,OAAOE,MAAO,OAAMF,OAAOE;AAC/B,WAAO;;AACT;",
5
+ "names": ["fs", "path", "loadEnv", "root", "envPath", "join", "existsSync", "dotenv", "result", "config", "error"]
6
+ }
@@ -1,9 +1,13 @@
1
1
  function makePluginWebOnly(plugin) {
2
2
  var og = plugin.transform;
3
- return og && (plugin.transform = function () {
4
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
5
- if (this.environment.name === "client") return og.call(this, ...args);
3
+ return og && (plugin.transform = function() {
4
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
5
+ args[_key] = arguments[_key];
6
+ if (this.environment.name === "client")
7
+ return og.call(this, ...args);
6
8
  }), plugin;
7
9
  }
8
- export { makePluginWebOnly };
9
- //# sourceMappingURL=makePluginWebOnly.native.js.map
10
+ export {
11
+ makePluginWebOnly
12
+ };
13
+ //# sourceMappingURL=makePluginWebOnly.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["makePluginWebOnly","plugin","og","transform","_len","arguments","length","args","Array","_key","environment","name","call"],"sources":["../../../src/vite/makePluginWebOnly.ts"],"sourcesContent":[null],"mappings":"AAEO,SAASA,kBAAkBC,MAAA,EAAgB;EAChD,IAAAC,EAAM,GAAAD,MAAK,CAAAE,SAAO;EAElB,OAAID,EAAA,KACFD,MAAA,CAAOE,SAAA,GAAY;IACjB,KAAI,IAAKC,IAAA,GAAAC,SAAY,CAAAC,MAAS,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,IAG9BF,IAAA,CAAAE,IAAO,CAAG,GAAAJ,SAAW,CAAAI,IAAG,CAAI;IAC9B,IAGK,KAAAC,WAAA,CAAAC,IAAA,eACT,OAAAT,EAAA,CAAAU,IAAA,UAAAL,IAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/makePluginWebOnly.ts"],
4
+ "mappings": "AAEO,SAASA,kBAAkBC,QAAc;AAC9C,MAAMC,KAAKD,OAAOE;AAElB,SAAID,OACFD,OAAOE,YAAY,WAAA;AAAgB,aAAA,OAAA,UAAA,QAAGC,OAAH,IAAA,MAAA,IAAA,GAAA,OAAA,GAAA,OAAA,MAAA;AAAGA,WAAH,IAAA,IAAA,UAAA,IAAA;AACjC,QAAI,KAAKC,YAAYC,SAAS;AAG9B,aAAOJ,GAAGK,KAAK,MAAI,GAAKH,IAAAA;EAC1B,IAGKH;AACT;",
5
+ "names": ["makePluginWebOnly", "plugin", "og", "transform", "args", "environment", "name", "call"]
6
+ }