one 1.1.5 → 1.1.270
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +37 -0
- package/README.md +2 -73
- package/dist/cjs/Root.js +182 -0
- package/dist/cjs/Root.js.map +6 -0
- package/dist/cjs/Root.native.js +217 -0
- package/dist/cjs/Root.native.js.map +6 -0
- package/dist/cjs/Route.js +45 -0
- package/dist/cjs/Route.js.map +6 -0
- package/dist/cjs/Route.native.js +55 -0
- package/dist/cjs/Route.native.js.map +6 -0
- package/dist/cjs/cli/main.js +34 -0
- package/dist/cjs/cli/main.js.map +6 -0
- package/dist/cjs/cli/main.native.js +39 -0
- package/dist/cjs/cli/main.native.js.map +6 -0
- package/dist/cjs/cli/prebuild.js +34 -0
- package/dist/cjs/cli/prebuild.js.map +6 -0
- package/dist/cjs/cli/prebuild.native.js +39 -0
- package/dist/cjs/cli/prebuild.native.js.map +6 -0
- package/dist/cjs/cli/run.js +50 -0
- package/dist/cjs/cli/run.js.map +6 -0
- package/dist/cjs/cli/run.native.js +55 -0
- package/dist/cjs/cli/run.native.js.map +6 -0
- package/dist/cjs/cli.js +147 -0
- package/dist/cjs/cli.js.map +6 -0
- package/dist/cjs/cli.native.js +152 -0
- package/dist/cjs/cli.native.js.map +6 -0
- package/dist/cjs/clientLoaderResolver.js +32 -0
- package/dist/cjs/clientLoaderResolver.js.map +6 -0
- package/dist/cjs/clientLoaderResolver.native.js +36 -0
- package/dist/cjs/clientLoaderResolver.native.js.map +6 -0
- package/dist/cjs/config.js +27 -0
- package/dist/cjs/config.js.map +6 -0
- package/dist/cjs/config.native.js +32 -0
- package/dist/cjs/config.native.js.map +6 -0
- package/dist/cjs/constants.js +23 -0
- package/dist/cjs/constants.js.map +6 -0
- package/dist/cjs/constants.native.js +30 -0
- package/dist/cjs/constants.native.js.map +6 -0
- package/dist/cjs/createApp.js +46 -0
- package/dist/cjs/createApp.js.map +6 -0
- package/dist/cjs/createApp.native.js +45 -0
- package/dist/cjs/createApp.native.js.map +6 -0
- package/dist/cjs/createHandleRequest.js +140 -0
- package/dist/cjs/createHandleRequest.js.map +6 -0
- package/dist/cjs/createHandleRequest.native.js +197 -0
- package/dist/cjs/createHandleRequest.native.js.map +6 -0
- package/dist/cjs/createRoute.js +37 -0
- package/dist/cjs/createRoute.js.map +6 -0
- package/dist/cjs/createRoute.native.js +48 -0
- package/dist/cjs/createRoute.native.js.map +6 -0
- package/dist/cjs/fallbackViews/Sitemap.js +82 -0
- package/dist/cjs/fallbackViews/Sitemap.js.map +6 -0
- package/dist/cjs/fallbackViews/Sitemap.native.js +100 -0
- package/dist/cjs/fallbackViews/Sitemap.native.js.map +6 -0
- package/dist/cjs/fallbackViews/Unmatched.js +58 -0
- package/dist/cjs/fallbackViews/Unmatched.js.map +6 -0
- package/dist/cjs/fallbackViews/Unmatched.native.js +68 -0
- package/dist/cjs/fallbackViews/Unmatched.native.js.map +6 -0
- package/dist/cjs/fork/NavigationContainer.js +85 -0
- package/dist/cjs/fork/NavigationContainer.js.map +6 -0
- package/dist/cjs/fork/NavigationContainer.native.js +90 -0
- package/dist/cjs/fork/NavigationContainer.native.js.map +6 -0
- package/dist/cjs/fork/createMemoryHistory.js +100 -0
- package/dist/cjs/fork/createMemoryHistory.js.map +6 -0
- package/dist/cjs/fork/createMemoryHistory.native.js +136 -0
- package/dist/cjs/fork/createMemoryHistory.native.js.map +6 -0
- package/dist/cjs/fork/extractPathFromURL.js +62 -0
- package/dist/cjs/fork/extractPathFromURL.js.map +6 -0
- package/dist/cjs/fork/extractPathFromURL.native.js +71 -0
- package/dist/cjs/fork/extractPathFromURL.native.js.map +6 -0
- package/dist/cjs/fork/findFocusedRoute.js +26 -0
- package/dist/cjs/fork/findFocusedRoute.js.map +6 -0
- package/dist/cjs/fork/findFocusedRoute.native.js +33 -0
- package/dist/cjs/fork/findFocusedRoute.native.js.map +6 -0
- package/dist/cjs/fork/getPathFromState.js +265 -0
- package/dist/cjs/fork/getPathFromState.js.map +6 -0
- package/dist/cjs/fork/getPathFromState.native.js +319 -0
- package/dist/cjs/fork/getPathFromState.native.js.map +6 -0
- package/dist/cjs/fork/getStateFromPath.js +381 -0
- package/dist/cjs/fork/getStateFromPath.js.map +6 -0
- package/dist/cjs/fork/getStateFromPath.native.js +488 -0
- package/dist/cjs/fork/getStateFromPath.native.js.map +6 -0
- package/dist/cjs/fork/useLinking.js +182 -0
- package/dist/cjs/fork/useLinking.js.map +6 -0
- package/dist/cjs/fork/useLinking.native.js +138 -0
- package/dist/cjs/fork/useLinking.native.js.map +6 -0
- package/dist/cjs/fork/validatePathConfig.js +46 -0
- package/dist/cjs/fork/validatePathConfig.js.map +6 -0
- package/dist/cjs/fork/validatePathConfig.native.js +52 -0
- package/dist/cjs/fork/validatePathConfig.native.js.map +6 -0
- package/dist/cjs/getLinkingConfig.js +59 -0
- package/dist/cjs/getLinkingConfig.js.map +6 -0
- package/dist/cjs/getLinkingConfig.native.js +69 -0
- package/dist/cjs/getLinkingConfig.native.js.map +6 -0
- package/dist/cjs/getReactNavigationConfig.js +69 -0
- package/dist/cjs/getReactNavigationConfig.js.map +6 -0
- package/dist/cjs/getReactNavigationConfig.native.js +78 -0
- package/dist/cjs/getReactNavigationConfig.native.js.map +6 -0
- package/dist/cjs/getRoutes.js +294 -0
- package/dist/cjs/getRoutes.js.map +6 -0
- package/dist/cjs/getRoutes.native.js +436 -0
- package/dist/cjs/getRoutes.native.js.map +6 -0
- package/dist/cjs/getURL.js +24 -0
- package/dist/cjs/getURL.js.map +6 -0
- package/dist/cjs/getURL.native.js +43 -0
- package/dist/cjs/getURL.native.js.map +6 -0
- package/dist/cjs/head/Head.android.js +29 -0
- package/dist/cjs/head/Head.android.js.map +6 -0
- package/dist/cjs/head/Head.ios.js +247 -0
- package/dist/cjs/head/Head.ios.js.map +6 -0
- package/dist/cjs/head/Head.js +23 -0
- package/dist/cjs/head/Head.js.map +6 -0
- package/dist/cjs/head/Head.native.js +30 -0
- package/dist/cjs/head/Head.native.js.map +6 -0
- package/dist/cjs/head/HeadModule.js +22 -0
- package/dist/cjs/head/HeadModule.js.map +6 -0
- package/dist/cjs/head/HeadModule.native.js +30 -0
- package/dist/cjs/head/HeadModule.native.js.map +6 -0
- package/dist/cjs/head/index.js +15 -0
- package/dist/cjs/head/index.js.map +6 -0
- package/dist/cjs/head/index.native.js +20 -0
- package/dist/cjs/head/index.native.js.map +6 -0
- package/dist/cjs/head/types.js +14 -0
- package/dist/cjs/head/types.js.map +6 -0
- package/dist/cjs/head/types.native.js +15 -0
- package/dist/cjs/head/types.native.js.map +6 -0
- package/dist/cjs/head/url.js +52 -0
- package/dist/cjs/head/url.js.map +6 -0
- package/dist/cjs/head/url.native.js +55 -0
- package/dist/cjs/head/url.native.js.map +6 -0
- package/dist/cjs/hooks.js +99 -0
- package/dist/cjs/hooks.js.map +6 -0
- package/dist/cjs/hooks.native.js +127 -0
- package/dist/cjs/hooks.native.js.map +6 -0
- package/dist/cjs/imperative-api.js +45 -0
- package/dist/cjs/imperative-api.js.map +6 -0
- package/dist/cjs/imperative-api.native.js +51 -0
- package/dist/cjs/imperative-api.native.js.map +6 -0
- package/dist/cjs/import-mode/index.android.js +22 -0
- package/dist/cjs/import-mode/index.android.js.map +6 -0
- package/dist/cjs/import-mode/index.ios.js +22 -0
- package/dist/cjs/import-mode/index.ios.js.map +6 -0
- package/dist/cjs/import-mode/index.js +21 -0
- package/dist/cjs/import-mode/index.js.map +6 -0
- package/dist/cjs/import-mode/index.native.js +22 -0
- package/dist/cjs/import-mode/index.native.js.map +6 -0
- package/dist/cjs/import-mode/index.web.js +21 -0
- package/dist/cjs/import-mode/index.web.js.map +6 -0
- package/dist/cjs/index.js +65 -0
- package/dist/cjs/index.js.map +6 -0
- package/dist/cjs/index.native.js +107 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/interfaces/router.js +23 -0
- package/dist/cjs/interfaces/router.js.map +6 -0
- package/dist/cjs/interfaces/router.native.js +27 -0
- package/dist/cjs/interfaces/router.native.js.map +6 -0
- package/dist/cjs/layouts/Drawer.js +24 -0
- package/dist/cjs/layouts/Drawer.js.map +6 -0
- package/dist/cjs/layouts/Drawer.native.js +27 -0
- package/dist/cjs/layouts/Drawer.native.js.map +6 -0
- package/dist/cjs/layouts/Stack.js +24 -0
- package/dist/cjs/layouts/Stack.js.map +6 -0
- package/dist/cjs/layouts/Stack.native.js +27 -0
- package/dist/cjs/layouts/Stack.native.js.map +6 -0
- package/dist/cjs/layouts/Tabs.js +52 -0
- package/dist/cjs/layouts/Tabs.js.map +6 -0
- package/dist/cjs/layouts/Tabs.native.js +63 -0
- package/dist/cjs/layouts/Tabs.native.js.map +6 -0
- package/dist/cjs/layouts/withLayoutContext.js +77 -0
- package/dist/cjs/layouts/withLayoutContext.js.map +6 -0
- package/dist/cjs/layouts/withLayoutContext.native.js +93 -0
- package/dist/cjs/layouts/withLayoutContext.native.js.map +6 -0
- package/dist/cjs/link/Link.js +98 -0
- package/dist/cjs/link/Link.js.map +6 -0
- package/dist/cjs/link/Link.native.js +125 -0
- package/dist/cjs/link/Link.native.js.map +6 -0
- package/dist/cjs/link/Redirect.js +31 -0
- package/dist/cjs/link/Redirect.js.map +6 -0
- package/dist/cjs/link/Redirect.native.js +36 -0
- package/dist/cjs/link/Redirect.native.js.map +6 -0
- package/dist/cjs/link/href.js +50 -0
- package/dist/cjs/link/href.js.map +6 -0
- package/dist/cjs/link/href.native.js +80 -0
- package/dist/cjs/link/href.native.js.map +6 -0
- package/dist/cjs/link/linking.js +82 -0
- package/dist/cjs/link/linking.js.map +6 -0
- package/dist/cjs/link/linking.native.js +106 -0
- package/dist/cjs/link/linking.native.js.map +6 -0
- package/dist/cjs/link/path.js +65 -0
- package/dist/cjs/link/path.js.map +6 -0
- package/dist/cjs/link/path.native.js +72 -0
- package/dist/cjs/link/path.native.js.map +6 -0
- package/dist/cjs/link/useLinkTo.js +42 -0
- package/dist/cjs/link/useLinkTo.js.map +6 -0
- package/dist/cjs/link/useLinkTo.native.js +51 -0
- package/dist/cjs/link/useLinkTo.native.js.map +6 -0
- package/dist/cjs/link/useLoadedNavigation.js +50 -0
- package/dist/cjs/link/useLoadedNavigation.js.map +6 -0
- package/dist/cjs/link/useLoadedNavigation.native.js +69 -0
- package/dist/cjs/link/useLoadedNavigation.native.js.map +6 -0
- package/dist/cjs/matchers.js +68 -0
- package/dist/cjs/matchers.js.map +6 -0
- package/dist/cjs/matchers.native.js +90 -0
- package/dist/cjs/matchers.native.js.map +6 -0
- package/dist/cjs/platform.js +21 -0
- package/dist/cjs/platform.js.map +6 -0
- package/dist/cjs/platform.native.js +26 -0
- package/dist/cjs/platform.native.js.map +6 -0
- package/dist/cjs/polyfills-mobile.js +26 -0
- package/dist/cjs/polyfills-mobile.js.map +6 -0
- package/dist/cjs/polyfills-mobile.native.js +27 -0
- package/dist/cjs/polyfills-mobile.native.js.map +6 -0
- package/dist/cjs/polyfills-server.js +23 -0
- package/dist/cjs/polyfills-server.js.map +6 -0
- package/dist/cjs/polyfills-server.native.js +24 -0
- package/dist/cjs/polyfills-server.native.js.map +6 -0
- package/dist/cjs/render.js +44 -0
- package/dist/cjs/render.js.map +6 -0
- package/dist/cjs/render.native.js +28 -0
- package/dist/cjs/render.native.js.map +6 -0
- package/dist/cjs/router/RouterStore.js +14 -0
- package/dist/cjs/router/RouterStore.js.map +6 -0
- package/dist/cjs/router/RouterStore.native.js +15 -0
- package/dist/cjs/router/RouterStore.native.js.map +6 -0
- package/dist/cjs/router/constants.js +22 -0
- package/dist/cjs/router/constants.js.map +6 -0
- package/dist/cjs/router/constants.native.js +28 -0
- package/dist/cjs/router/constants.native.js.map +6 -0
- package/dist/cjs/router/getNormalizedStatePath.js +50 -0
- package/dist/cjs/router/getNormalizedStatePath.js.map +6 -0
- package/dist/cjs/router/getNormalizedStatePath.native.js +53 -0
- package/dist/cjs/router/getNormalizedStatePath.native.js.map +6 -0
- package/dist/cjs/router/lastAction.js +25 -0
- package/dist/cjs/router/lastAction.js.map +6 -0
- package/dist/cjs/router/lastAction.native.js +32 -0
- package/dist/cjs/router/lastAction.native.js.map +6 -0
- package/dist/cjs/router/router.js +345 -0
- package/dist/cjs/router/router.js.map +6 -0
- package/dist/cjs/router/router.native.js +445 -0
- package/dist/cjs/router/router.native.js.map +6 -0
- package/dist/cjs/router/serverLocationContext.js +22 -0
- package/dist/cjs/router/serverLocationContext.js.map +6 -0
- package/dist/cjs/router/serverLocationContext.native.js +26 -0
- package/dist/cjs/router/serverLocationContext.native.js.map +6 -0
- package/dist/cjs/router/useInitializeOneRouter.js +43 -0
- package/dist/cjs/router/useInitializeOneRouter.js.map +6 -0
- package/dist/cjs/router/useInitializeOneRouter.native.js +48 -0
- package/dist/cjs/router/useInitializeOneRouter.native.js.map +6 -0
- package/dist/cjs/serve.js +174 -0
- package/dist/cjs/serve.js.map +6 -0
- package/dist/cjs/serve.native.js +192 -0
- package/dist/cjs/serve.native.js.map +6 -0
- package/dist/cjs/server/createRoutesManifest.js +40 -0
- package/dist/cjs/server/createRoutesManifest.js.map +6 -0
- package/dist/cjs/server/createRoutesManifest.native.js +51 -0
- package/dist/cjs/server/createRoutesManifest.native.js.map +6 -0
- package/dist/cjs/server/getServerManifest.js +109 -0
- package/dist/cjs/server/getServerManifest.js.map +6 -0
- package/dist/cjs/server/getServerManifest.native.js +172 -0
- package/dist/cjs/server/getServerManifest.native.js.map +6 -0
- package/dist/cjs/server-render.js +42 -0
- package/dist/cjs/server-render.js.map +6 -0
- package/dist/cjs/server-render.native.js +64 -0
- package/dist/cjs/server-render.native.js.map +6 -0
- package/dist/cjs/sortRoutes.js +64 -0
- package/dist/cjs/sortRoutes.js.map +6 -0
- package/dist/cjs/sortRoutes.native.js +70 -0
- package/dist/cjs/sortRoutes.native.js.map +6 -0
- package/dist/cjs/typed-routes/generateRouteTypes.js +33 -0
- package/dist/cjs/typed-routes/generateRouteTypes.js.map +6 -0
- package/dist/cjs/typed-routes/generateRouteTypes.native.js +40 -0
- package/dist/cjs/typed-routes/generateRouteTypes.native.js.map +6 -0
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js +83 -0
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js.map +6 -0
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js +137 -0
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -0
- package/dist/cjs/types.js +14 -0
- package/dist/cjs/types.js.map +6 -0
- package/dist/cjs/types.native.js +15 -0
- package/dist/cjs/types.native.js.map +6 -0
- package/dist/cjs/useFocusEffect.js +79 -0
- package/dist/cjs/useFocusEffect.js.map +6 -0
- package/dist/cjs/useFocusEffect.native.js +90 -0
- package/dist/cjs/useFocusEffect.native.js.map +6 -0
- package/dist/cjs/useLoader.js +97 -0
- package/dist/cjs/useLoader.js.map +6 -0
- package/dist/cjs/useLoader.native.js +109 -0
- package/dist/cjs/useLoader.native.js.map +6 -0
- package/dist/cjs/useNavigation.js +60 -0
- package/dist/cjs/useNavigation.js.map +6 -0
- package/dist/cjs/useNavigation.native.js +80 -0
- package/dist/cjs/useNavigation.native.js.map +6 -0
- package/dist/cjs/useScreens.js +176 -0
- package/dist/cjs/useScreens.js.map +6 -0
- package/dist/cjs/useScreens.native.js +274 -0
- package/dist/cjs/useScreens.native.js.map +6 -0
- package/dist/cjs/useViteRoutes.js +79 -0
- package/dist/cjs/useViteRoutes.js.map +6 -0
- package/dist/cjs/useViteRoutes.native.js +78 -0
- package/dist/cjs/useViteRoutes.native.js.map +6 -0
- package/dist/cjs/utils/assertIsReady.js +26 -0
- package/dist/cjs/utils/assertIsReady.js.map +6 -0
- package/dist/cjs/utils/assertIsReady.native.js +29 -0
- package/dist/cjs/utils/assertIsReady.native.js.map +6 -0
- package/dist/cjs/utils/dynamicImport.js +24 -0
- package/dist/cjs/utils/dynamicImport.js.map +6 -0
- package/dist/cjs/utils/dynamicImport.native.js +28 -0
- package/dist/cjs/utils/dynamicImport.native.js.map +6 -0
- package/dist/cjs/utils/existsAsync.js +28 -0
- package/dist/cjs/utils/existsAsync.js.map +6 -0
- package/dist/cjs/utils/existsAsync.native.js +34 -0
- package/dist/cjs/utils/existsAsync.native.js.map +6 -0
- package/dist/cjs/utils/getPageExport.js +27 -0
- package/dist/cjs/utils/getPageExport.js.map +6 -0
- package/dist/cjs/utils/getPageExport.native.js +36 -0
- package/dist/cjs/utils/getPageExport.native.js.map +6 -0
- package/dist/cjs/utils/globDir.js +37 -0
- package/dist/cjs/utils/globDir.js.map +6 -0
- package/dist/cjs/utils/globDir.native.js +44 -0
- package/dist/cjs/utils/globDir.native.js.map +6 -0
- package/dist/cjs/utils/hashString.js +32 -0
- package/dist/cjs/utils/hashString.js.map +6 -0
- package/dist/cjs/utils/hashString.native.js +37 -0
- package/dist/cjs/utils/hashString.native.js.map +6 -0
- package/dist/cjs/utils/isResponse.js +23 -0
- package/dist/cjs/utils/isResponse.js.map +6 -0
- package/dist/cjs/utils/isResponse.native.js +28 -0
- package/dist/cjs/utils/isResponse.native.js.map +6 -0
- package/dist/cjs/utils/isStatus.js +23 -0
- package/dist/cjs/utils/isStatus.js.map +6 -0
- package/dist/cjs/utils/isStatus.native.js +28 -0
- package/dist/cjs/utils/isStatus.native.js.map +6 -0
- package/dist/cjs/utils/promiseWithResolvers.js +26 -0
- package/dist/cjs/utils/promiseWithResolvers.js.map +6 -0
- package/dist/cjs/utils/promiseWithResolvers.native.js +35 -0
- package/dist/cjs/utils/promiseWithResolvers.native.js.map +6 -0
- package/dist/cjs/utils/rand.js +21 -0
- package/dist/cjs/utils/rand.js.map +6 -0
- package/dist/cjs/utils/rand.native.js +28 -0
- package/dist/cjs/utils/rand.native.js.map +6 -0
- package/dist/cjs/utils/redirect.js +28 -0
- package/dist/cjs/utils/redirect.js.map +6 -0
- package/dist/cjs/utils/redirect.native.js +32 -0
- package/dist/cjs/utils/redirect.native.js.map +6 -0
- package/dist/cjs/utils/removeSearch.js +23 -0
- package/dist/cjs/utils/removeSearch.js.map +6 -0
- package/dist/cjs/utils/removeSearch.native.js +28 -0
- package/dist/cjs/utils/removeSearch.native.js.map +6 -0
- package/dist/cjs/utils/removeUndefined.js +26 -0
- package/dist/cjs/utils/removeUndefined.js.map +6 -0
- package/dist/cjs/utils/removeUndefined.native.js +31 -0
- package/dist/cjs/utils/removeUndefined.native.js.map +6 -0
- package/dist/cjs/utils/requireResolve.js +25 -0
- package/dist/cjs/utils/requireResolve.js.map +6 -0
- package/dist/cjs/utils/requireResolve.native.js +31 -0
- package/dist/cjs/utils/requireResolve.native.js.map +6 -0
- package/dist/cjs/utils/url.js +31 -0
- package/dist/cjs/utils/url.js.map +6 -0
- package/dist/cjs/utils/url.native.js +38 -0
- package/dist/cjs/utils/url.native.js.map +6 -0
- package/dist/cjs/utils/weakKey.js +24 -0
- package/dist/cjs/utils/weakKey.js.map +6 -0
- package/dist/cjs/utils/weakKey.native.js +32 -0
- package/dist/cjs/utils/weakKey.native.js.map +6 -0
- package/dist/cjs/utils/weakMemo.js +30 -0
- package/dist/cjs/utils/weakMemo.js.map +6 -0
- package/dist/cjs/utils/weakMemo.native.js +48 -0
- package/dist/cjs/utils/weakMemo.native.js.map +6 -0
- package/dist/cjs/views/EmptyRoute.js +25 -0
- package/dist/cjs/views/EmptyRoute.js.map +6 -0
- package/dist/cjs/views/EmptyRoute.native.js +30 -0
- package/dist/cjs/views/EmptyRoute.native.js.map +6 -0
- package/dist/cjs/views/ErrorBoundary.js +33 -0
- package/dist/cjs/views/ErrorBoundary.js.map +6 -0
- package/dist/cjs/views/ErrorBoundary.native.js +38 -0
- package/dist/cjs/views/ErrorBoundary.native.js.map +6 -0
- package/dist/cjs/views/LoadProgressBar.js +83 -0
- package/dist/cjs/views/LoadProgressBar.js.map +6 -0
- package/dist/cjs/views/LoadProgressBar.native.js +87 -0
- package/dist/cjs/views/LoadProgressBar.native.js.map +6 -0
- package/dist/cjs/views/Navigator.js +101 -0
- package/dist/cjs/views/Navigator.js.map +6 -0
- package/dist/cjs/views/Navigator.native.js +129 -0
- package/dist/cjs/views/Navigator.native.js.map +6 -0
- package/dist/cjs/views/PreloadLinks.js +31 -0
- package/dist/cjs/views/PreloadLinks.js.map +6 -0
- package/dist/cjs/views/PreloadLinks.native.js +28 -0
- package/dist/cjs/views/PreloadLinks.native.js.map +6 -0
- package/dist/cjs/views/RootErrorBoundary.js +47 -0
- package/dist/cjs/views/RootErrorBoundary.js.map +6 -0
- package/dist/cjs/views/RootErrorBoundary.native.js +141 -0
- package/dist/cjs/views/RootErrorBoundary.native.js.map +6 -0
- package/dist/cjs/views/Screen.js +29 -0
- package/dist/cjs/views/Screen.js.map +6 -0
- package/dist/cjs/views/Screen.native.js +37 -0
- package/dist/cjs/views/Screen.native.js.map +6 -0
- package/dist/cjs/views/ScrollRestoration.js +70 -0
- package/dist/cjs/views/ScrollRestoration.js.map +6 -0
- package/dist/cjs/views/ScrollRestoration.native.js +76 -0
- package/dist/cjs/views/ScrollRestoration.native.js.map +6 -0
- package/dist/cjs/views/Try.js +44 -0
- package/dist/cjs/views/Try.js.map +6 -0
- package/dist/cjs/views/Try.native.js +141 -0
- package/dist/cjs/views/Try.native.js.map +6 -0
- package/dist/cjs/vite/build.js +370 -0
- package/dist/cjs/vite/build.js.map +6 -0
- package/dist/cjs/vite/build.native.js +450 -0
- package/dist/cjs/vite/build.native.js.map +6 -0
- package/dist/cjs/vite/clientTreeShakePlugin.js +76 -0
- package/dist/cjs/vite/clientTreeShakePlugin.js.map +6 -0
- package/dist/cjs/vite/clientTreeShakePlugin.native.js +93 -0
- package/dist/cjs/vite/clientTreeShakePlugin.native.js.map +6 -0
- package/dist/cjs/vite/constants.js +22 -0
- package/dist/cjs/vite/constants.js.map +6 -0
- package/dist/cjs/vite/constants.native.js +28 -0
- package/dist/cjs/vite/constants.native.js.map +6 -0
- package/dist/cjs/vite/createFileSystemRouter.js +243 -0
- package/dist/cjs/vite/createFileSystemRouter.js.map +6 -0
- package/dist/cjs/vite/createFileSystemRouter.native.js +339 -0
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +6 -0
- package/dist/cjs/vite/customNodeExternals.js +52 -0
- package/dist/cjs/vite/customNodeExternals.js.map +6 -0
- package/dist/cjs/vite/customNodeExternals.native.js +58 -0
- package/dist/cjs/vite/customNodeExternals.native.js.map +6 -0
- package/dist/cjs/vite/ensureTsConfig.js +66 -0
- package/dist/cjs/vite/ensureTsConfig.js.map +6 -0
- package/dist/cjs/vite/ensureTsConfig.native.js +66 -0
- package/dist/cjs/vite/ensureTsConfig.native.js.map +6 -0
- package/dist/cjs/vite/findDepsToOptimize.js +66 -0
- package/dist/cjs/vite/findDepsToOptimize.js.map +6 -0
- package/dist/cjs/vite/findDepsToOptimize.native.js +77 -0
- package/dist/cjs/vite/findDepsToOptimize.native.js.map +6 -0
- package/dist/cjs/vite/fixDependenciesPlugin.js +43 -0
- package/dist/cjs/vite/fixDependenciesPlugin.js.map +6 -0
- package/dist/cjs/vite/fixDependenciesPlugin.native.js +47 -0
- package/dist/cjs/vite/fixDependenciesPlugin.native.js.map +6 -0
- package/dist/cjs/vite/generateTypesForRoutes.js +36 -0
- package/dist/cjs/vite/generateTypesForRoutes.js.map +6 -0
- package/dist/cjs/vite/generateTypesForRoutes.native.js +41 -0
- package/dist/cjs/vite/generateTypesForRoutes.native.js.map +6 -0
- package/dist/cjs/vite/getManifest.js +27 -0
- package/dist/cjs/vite/getManifest.js.map +6 -0
- package/dist/cjs/vite/getManifest.native.js +32 -0
- package/dist/cjs/vite/getManifest.native.js.map +6 -0
- package/dist/cjs/vite/headers.js +39 -0
- package/dist/cjs/vite/headers.js.map +6 -0
- package/dist/cjs/vite/headers.native.js +36 -0
- package/dist/cjs/vite/headers.native.js.map +6 -0
- package/dist/cjs/vite/loadEnv.js +36 -0
- package/dist/cjs/vite/loadEnv.js.map +6 -0
- package/dist/cjs/vite/loadEnv.native.js +44 -0
- package/dist/cjs/vite/loadEnv.native.js.map +6 -0
- package/dist/cjs/vite/makePluginWebOnly.js +27 -0
- package/dist/cjs/vite/makePluginWebOnly.js.map +6 -0
- package/dist/cjs/vite/makePluginWebOnly.native.js +34 -0
- package/dist/cjs/vite/makePluginWebOnly.native.js.map +6 -0
- package/dist/cjs/vite/one.js +227 -0
- package/dist/cjs/vite/one.js.map +6 -0
- package/dist/cjs/vite/one.native.js +242 -0
- package/dist/cjs/vite/one.native.js.map +6 -0
- package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.js +50 -0
- package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.js.map +6 -0
- package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.native.js +62 -0
- package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -0
- package/dist/cjs/vite/replaceLoader.js +28 -0
- package/dist/cjs/vite/replaceLoader.js.map +6 -0
- package/dist/cjs/vite/replaceLoader.native.js +32 -0
- package/dist/cjs/vite/replaceLoader.native.js.map +6 -0
- package/dist/cjs/vite/resolveAPIRequest.js +71 -0
- package/dist/cjs/vite/resolveAPIRequest.js.map +6 -0
- package/dist/cjs/vite/resolveAPIRequest.native.js +84 -0
- package/dist/cjs/vite/resolveAPIRequest.native.js.map +6 -0
- package/dist/cjs/vite/server.js +16 -0
- package/dist/cjs/vite/server.js.map +6 -0
- package/dist/cjs/vite/server.native.js +18 -0
- package/dist/cjs/vite/server.native.js.map +6 -0
- package/dist/cjs/vite/types.js +14 -0
- package/dist/cjs/vite/types.js.map +6 -0
- package/dist/cjs/vite/types.native.js +15 -0
- package/dist/cjs/vite/types.native.js.map +6 -0
- package/dist/cjs/vite/virtualEntryPlugin.js +67 -0
- package/dist/cjs/vite/virtualEntryPlugin.js.map +6 -0
- package/dist/cjs/vite/virtualEntryPlugin.native.js +85 -0
- package/dist/cjs/vite/virtualEntryPlugin.native.js.map +6 -0
- package/dist/cjs/vite/vitePluginSsrCss.js +130 -0
- package/dist/cjs/vite/vitePluginSsrCss.js.map +6 -0
- package/dist/cjs/vite/vitePluginSsrCss.native.js +156 -0
- package/dist/cjs/vite/vitePluginSsrCss.native.js.map +6 -0
- package/dist/cjs/vite.js +28 -0
- package/dist/cjs/vite.js.map +6 -0
- package/dist/cjs/vite.native.js +40 -0
- package/dist/cjs/vite.native.js.map +6 -0
- package/dist/cjs/zero/getQueryKey.js +24 -0
- package/dist/cjs/zero/getQueryKey.js.map +6 -0
- package/dist/cjs/zero/getQueryKey.native.js +29 -0
- package/dist/cjs/zero/getQueryKey.native.js.map +6 -0
- package/dist/cjs/zero/isZeroQuery.js +23 -0
- package/dist/cjs/zero/isZeroQuery.js.map +6 -0
- package/dist/cjs/zero/isZeroQuery.native.js +28 -0
- package/dist/cjs/zero/isZeroQuery.native.js.map +6 -0
- package/dist/cjs/zero/resolveQuery.js +38 -0
- package/dist/cjs/zero/resolveQuery.js.map +6 -0
- package/dist/cjs/zero/resolveQuery.native.js +40 -0
- package/dist/cjs/zero/resolveQuery.native.js.map +6 -0
- package/dist/cjs/zero/subscribeToQuery.js +28 -0
- package/dist/cjs/zero/subscribeToQuery.js.map +6 -0
- package/dist/cjs/zero/subscribeToQuery.native.js +33 -0
- package/dist/cjs/zero/subscribeToQuery.native.js.map +6 -0
- package/dist/cjs/zero/types.js +14 -0
- package/dist/cjs/zero/types.js.map +6 -0
- package/dist/cjs/zero/types.native.js +15 -0
- package/dist/cjs/zero/types.native.js.map +6 -0
- package/dist/cjs/zero/useQuery.js +47 -0
- package/dist/cjs/zero/useQuery.js.map +6 -0
- package/dist/cjs/zero/useQuery.native.js +38 -0
- package/dist/cjs/zero/useQuery.native.js.map +6 -0
- package/dist/cjs/zero/useQueryZero.js +38 -0
- package/dist/cjs/zero/useQueryZero.js.map +6 -0
- package/dist/cjs/zero/useQueryZero.native.js +49 -0
- package/dist/cjs/zero/useQueryZero.native.js.map +6 -0
- package/dist/cjs/zero.js +23 -0
- package/dist/cjs/zero.js.map +6 -0
- package/dist/cjs/zero.native.js +30 -0
- package/dist/cjs/zero.native.js.map +6 -0
- package/dist/esm/Root.js +173 -0
- package/dist/esm/Root.js.map +6 -0
- package/dist/esm/Root.mjs +179 -0
- package/dist/esm/Root.mjs.map +1 -0
- package/dist/esm/Root.native.js +194 -0
- package/dist/esm/Root.native.js.map +1 -0
- package/dist/esm/Route.js +23 -0
- package/dist/esm/Route.js.map +6 -0
- package/dist/esm/Route.mjs +24 -0
- package/dist/esm/Route.mjs.map +1 -0
- package/dist/esm/Route.native.js +25 -0
- package/dist/esm/Route.native.js.map +1 -0
- package/dist/esm/cli/main.js +11 -0
- package/dist/esm/cli/main.js.map +6 -0
- package/dist/esm/cli/main.mjs +11 -0
- package/dist/esm/cli/main.mjs.map +1 -0
- package/dist/esm/cli/main.native.js +11 -0
- package/dist/esm/cli/main.native.js.map +1 -0
- package/dist/esm/cli/prebuild.js +10 -0
- package/dist/esm/cli/prebuild.js.map +6 -0
- package/dist/esm/cli/prebuild.mjs +10 -0
- package/dist/esm/cli/prebuild.mjs.map +1 -0
- package/dist/esm/cli/prebuild.native.js +10 -0
- package/dist/esm/cli/prebuild.native.js.map +1 -0
- package/dist/esm/cli/run.js +26 -0
- package/dist/esm/cli/run.js.map +6 -0
- package/dist/esm/cli/run.mjs +33 -0
- package/dist/esm/cli/run.mjs.map +1 -0
- package/dist/esm/cli/run.native.js +33 -0
- package/dist/esm/cli/run.native.js.map +1 -0
- package/dist/esm/cli.js +129 -0
- package/dist/esm/cli.js.map +6 -0
- package/dist/esm/cli.mjs +155 -0
- package/dist/esm/cli.mjs.map +1 -0
- package/dist/esm/cli.native.js +161 -0
- package/dist/esm/cli.native.js.map +1 -0
- package/dist/esm/clientLoaderResolver.js +16 -0
- package/dist/esm/clientLoaderResolver.js.map +6 -0
- package/dist/esm/clientLoaderResolver.mjs +11 -0
- package/dist/esm/clientLoaderResolver.mjs.map +1 -0
- package/dist/esm/clientLoaderResolver.native.js +11 -0
- package/dist/esm/clientLoaderResolver.native.js.map +1 -0
- package/dist/esm/config.js +11 -0
- package/dist/esm/config.js.map +6 -0
- package/dist/esm/config.mjs +9 -0
- package/dist/esm/config.mjs.map +1 -0
- package/dist/esm/config.native.js +11 -0
- package/dist/esm/config.native.js.map +1 -0
- package/dist/esm/constants.js +7 -0
- package/dist/esm/constants.js.map +6 -0
- package/dist/esm/constants.mjs +5 -0
- package/dist/esm/constants.mjs.map +1 -0
- package/dist/esm/constants.native.js +5 -0
- package/dist/esm/constants.native.js.map +1 -0
- package/dist/esm/createApp.js +33 -0
- package/dist/esm/createApp.js.map +6 -0
- package/dist/esm/createApp.mjs +38 -0
- package/dist/esm/createApp.mjs.map +1 -0
- package/dist/esm/createApp.native.js +23 -0
- package/dist/esm/createApp.native.js.map +1 -0
- package/dist/esm/createHandleRequest.js +125 -0
- package/dist/esm/createHandleRequest.js.map +6 -0
- package/dist/esm/createHandleRequest.mjs +125 -0
- package/dist/esm/createHandleRequest.mjs.map +1 -0
- package/dist/esm/createHandleRequest.native.js +186 -0
- package/dist/esm/createHandleRequest.native.js.map +1 -0
- package/dist/esm/createRoute.js +21 -0
- package/dist/esm/createRoute.js.map +6 -0
- package/dist/esm/createRoute.mjs +18 -0
- package/dist/esm/createRoute.mjs.map +1 -0
- package/dist/esm/createRoute.native.js +26 -0
- package/dist/esm/createRoute.native.js.map +1 -0
- package/dist/esm/fallbackViews/Sitemap.js +67 -0
- package/dist/esm/fallbackViews/Sitemap.js.map +6 -0
- package/dist/esm/fallbackViews/Sitemap.mjs +77 -0
- package/dist/esm/fallbackViews/Sitemap.mjs.map +1 -0
- package/dist/esm/fallbackViews/Sitemap.native.js +77 -0
- package/dist/esm/fallbackViews/Sitemap.native.js.map +1 -0
- package/dist/esm/fallbackViews/Unmatched.js +36 -0
- package/dist/esm/fallbackViews/Unmatched.js.map +6 -0
- package/dist/esm/fallbackViews/Unmatched.mjs +39 -0
- package/dist/esm/fallbackViews/Unmatched.mjs.map +1 -0
- package/dist/esm/fallbackViews/Unmatched.native.js +39 -0
- package/dist/esm/fallbackViews/Unmatched.native.js.map +1 -0
- package/dist/esm/fork/NavigationContainer.js +75 -0
- package/dist/esm/fork/NavigationContainer.js.map +6 -0
- package/dist/esm/fork/NavigationContainer.mjs +71 -0
- package/dist/esm/fork/NavigationContainer.mjs.map +1 -0
- package/dist/esm/fork/NavigationContainer.native.js +78 -0
- package/dist/esm/fork/NavigationContainer.native.js.map +1 -0
- package/dist/esm/fork/createMemoryHistory.js +84 -0
- package/dist/esm/fork/createMemoryHistory.js.map +6 -0
- package/dist/esm/fork/createMemoryHistory.mjs +113 -0
- package/dist/esm/fork/createMemoryHistory.mjs.map +1 -0
- package/dist/esm/fork/createMemoryHistory.native.js +135 -0
- package/dist/esm/fork/createMemoryHistory.native.js.map +1 -0
- package/dist/esm/fork/extractPathFromURL.js +38 -0
- package/dist/esm/fork/extractPathFromURL.js.map +6 -0
- package/dist/esm/fork/extractPathFromURL.mjs +36 -0
- package/dist/esm/fork/extractPathFromURL.mjs.map +1 -0
- package/dist/esm/fork/extractPathFromURL.native.js +40 -0
- package/dist/esm/fork/extractPathFromURL.native.js.map +1 -0
- package/dist/esm/fork/findFocusedRoute.js +10 -0
- package/dist/esm/fork/findFocusedRoute.js.map +6 -0
- package/dist/esm/fork/findFocusedRoute.mjs +7 -0
- package/dist/esm/fork/findFocusedRoute.mjs.map +1 -0
- package/dist/esm/fork/findFocusedRoute.native.js +11 -0
- package/dist/esm/fork/findFocusedRoute.native.js.map +1 -0
- package/dist/esm/fork/getPathFromState.js +255 -0
- package/dist/esm/fork/getPathFromState.js.map +6 -0
- package/dist/esm/fork/getPathFromState.mjs +246 -0
- package/dist/esm/fork/getPathFromState.mjs.map +1 -0
- package/dist/esm/fork/getPathFromState.native.js +311 -0
- package/dist/esm/fork/getPathFromState.native.js.map +1 -0
- package/dist/esm/fork/getStateFromPath.js +360 -0
- package/dist/esm/fork/getStateFromPath.js.map +6 -0
- package/dist/esm/fork/getStateFromPath.mjs +329 -0
- package/dist/esm/fork/getStateFromPath.mjs.map +1 -0
- package/dist/esm/fork/getStateFromPath.native.js +456 -0
- package/dist/esm/fork/getStateFromPath.native.js.map +1 -0
- package/dist/esm/fork/useLinking.js +168 -0
- package/dist/esm/fork/useLinking.js.map +6 -0
- package/dist/esm/fork/useLinking.mjs +180 -0
- package/dist/esm/fork/useLinking.mjs.map +1 -0
- package/dist/esm/fork/useLinking.native.js +108 -0
- package/dist/esm/fork/useLinking.native.js.map +1 -0
- package/dist/esm/fork/validatePathConfig.js +30 -0
- package/dist/esm/fork/validatePathConfig.js.map +6 -0
- package/dist/esm/fork/validatePathConfig.mjs +21 -0
- package/dist/esm/fork/validatePathConfig.mjs.map +1 -0
- package/dist/esm/fork/validatePathConfig.native.js +29 -0
- package/dist/esm/fork/validatePathConfig.native.js.map +1 -0
- package/dist/esm/getLinkingConfig.js +45 -0
- package/dist/esm/getLinkingConfig.js.map +6 -0
- package/dist/esm/getLinkingConfig.mjs +40 -0
- package/dist/esm/getLinkingConfig.mjs.map +1 -0
- package/dist/esm/getLinkingConfig.native.js +43 -0
- package/dist/esm/getLinkingConfig.native.js.map +1 -0
- package/dist/esm/getReactNavigationConfig.js +53 -0
- package/dist/esm/getReactNavigationConfig.js.map +6 -0
- package/dist/esm/getReactNavigationConfig.mjs +46 -0
- package/dist/esm/getReactNavigationConfig.mjs.map +1 -0
- package/dist/esm/getReactNavigationConfig.native.js +48 -0
- package/dist/esm/getReactNavigationConfig.native.js.map +1 -0
- package/dist/esm/getRoutes.js +286 -0
- package/dist/esm/getRoutes.js.map +6 -0
- package/dist/esm/getRoutes.mjs +249 -0
- package/dist/esm/getRoutes.mjs.map +1 -0
- package/dist/esm/getRoutes.native.js +394 -0
- package/dist/esm/getRoutes.native.js.map +1 -0
- package/dist/esm/getURL.js +8 -0
- package/dist/esm/getURL.js.map +6 -0
- package/dist/esm/getURL.mjs +6 -0
- package/dist/esm/getURL.mjs.map +1 -0
- package/dist/esm/getURL.native.js +14 -0
- package/dist/esm/getURL.native.js.map +1 -0
- package/dist/esm/head/Head.android.js +7 -0
- package/dist/esm/head/Head.android.js.map +1 -0
- package/dist/esm/head/Head.ios.js +211 -0
- package/dist/esm/head/Head.ios.js.map +1 -0
- package/dist/esm/head/Head.js +7 -0
- package/dist/esm/head/Head.js.map +6 -0
- package/dist/esm/head/Head.mjs +7 -0
- package/dist/esm/head/Head.mjs.map +1 -0
- package/dist/esm/head/Head.native.js +10 -0
- package/dist/esm/head/Head.native.js.map +1 -0
- package/dist/esm/head/HeadModule.js +6 -0
- package/dist/esm/head/HeadModule.js.map +6 -0
- package/dist/esm/head/HeadModule.mjs +4 -0
- package/dist/esm/head/HeadModule.mjs.map +1 -0
- package/dist/esm/head/HeadModule.native.js +9 -0
- package/dist/esm/head/HeadModule.native.js.map +1 -0
- package/dist/esm/head/index.js +2 -0
- package/dist/esm/head/index.js.map +6 -0
- package/dist/esm/head/index.mjs +2 -0
- package/dist/esm/head/index.mjs.map +1 -0
- package/dist/esm/head/index.native.js +2 -0
- package/dist/esm/head/index.native.js.map +1 -0
- package/dist/esm/head/types.js +1 -0
- package/dist/esm/head/types.js.map +6 -0
- package/dist/esm/head/types.mjs +2 -0
- package/dist/esm/head/types.mjs.map +1 -0
- package/dist/esm/head/types.native.js +2 -0
- package/dist/esm/head/types.native.js.map +1 -0
- package/dist/esm/head/url.js +36 -0
- package/dist/esm/head/url.js.map +6 -0
- package/dist/esm/head/url.mjs +27 -0
- package/dist/esm/head/url.mjs.map +1 -0
- package/dist/esm/head/url.native.js +32 -0
- package/dist/esm/head/url.native.js.map +1 -0
- package/dist/esm/hooks.js +79 -0
- package/dist/esm/hooks.js.map +6 -0
- package/dist/esm/hooks.mjs +66 -0
- package/dist/esm/hooks.mjs.map +1 -0
- package/dist/esm/hooks.native.js +72 -0
- package/dist/esm/hooks.native.js.map +1 -0
- package/dist/esm/imperative-api.js +21 -0
- package/dist/esm/imperative-api.js.map +6 -0
- package/dist/esm/imperative-api.mjs +18 -0
- package/dist/esm/imperative-api.mjs.map +1 -0
- package/dist/esm/imperative-api.native.js +20 -0
- package/dist/esm/imperative-api.native.js.map +1 -0
- package/dist/esm/import-mode/index.android.js +4 -0
- package/dist/esm/import-mode/index.android.js.map +1 -0
- package/dist/esm/import-mode/index.ios.js +4 -0
- package/dist/esm/import-mode/index.ios.js.map +1 -0
- package/dist/esm/import-mode/index.js +5 -0
- package/dist/esm/import-mode/index.js.map +6 -0
- package/dist/esm/import-mode/index.mjs +3 -0
- package/dist/esm/import-mode/index.mjs.map +1 -0
- package/dist/esm/import-mode/index.native.js +3 -0
- package/dist/esm/import-mode/index.native.js.map +1 -0
- package/dist/esm/import-mode/index.web.js +5 -0
- package/dist/esm/import-mode/index.web.js.map +6 -0
- package/dist/esm/import-mode/index.web.mjs +3 -0
- package/dist/esm/import-mode/index.web.mjs.map +1 -0
- package/dist/esm/index.js +80 -0
- package/dist/esm/index.js.map +6 -0
- package/dist/esm/index.mjs +30 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +30 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/interfaces/router.js +7 -0
- package/dist/esm/interfaces/router.js.map +6 -0
- package/dist/esm/interfaces/router.mjs +4 -0
- package/dist/esm/interfaces/router.mjs.map +1 -0
- package/dist/esm/interfaces/router.native.js +4 -0
- package/dist/esm/interfaces/router.native.js.map +1 -0
- package/dist/esm/layouts/Drawer.js +11 -0
- package/dist/esm/layouts/Drawer.js.map +6 -0
- package/dist/esm/layouts/Drawer.mjs +7 -0
- package/dist/esm/layouts/Drawer.mjs.map +1 -0
- package/dist/esm/layouts/Drawer.native.js +7 -0
- package/dist/esm/layouts/Drawer.native.js.map +1 -0
- package/dist/esm/layouts/Stack.js +11 -0
- package/dist/esm/layouts/Stack.js.map +6 -0
- package/dist/esm/layouts/Stack.mjs +7 -0
- package/dist/esm/layouts/Stack.mjs.map +1 -0
- package/dist/esm/layouts/Stack.native.js +7 -0
- package/dist/esm/layouts/Stack.native.js.map +1 -0
- package/dist/esm/layouts/Tabs.js +42 -0
- package/dist/esm/layouts/Tabs.js.map +6 -0
- package/dist/esm/layouts/Tabs.mjs +40 -0
- package/dist/esm/layouts/Tabs.mjs.map +1 -0
- package/dist/esm/layouts/Tabs.native.js +44 -0
- package/dist/esm/layouts/Tabs.native.js.map +1 -0
- package/dist/esm/layouts/withLayoutContext.js +57 -0
- package/dist/esm/layouts/withLayoutContext.js.map +6 -0
- package/dist/esm/layouts/withLayoutContext.mjs +57 -0
- package/dist/esm/layouts/withLayoutContext.mjs.map +1 -0
- package/dist/esm/layouts/withLayoutContext.native.js +64 -0
- package/dist/esm/layouts/withLayoutContext.native.js.map +1 -0
- package/dist/esm/link/Link.js +79 -0
- package/dist/esm/link/Link.js.map +6 -0
- package/dist/esm/link/Link.mjs +86 -0
- package/dist/esm/link/Link.mjs.map +1 -0
- package/dist/esm/link/Link.native.js +93 -0
- package/dist/esm/link/Link.native.js.map +1 -0
- package/dist/esm/link/Redirect.js +16 -0
- package/dist/esm/link/Redirect.js.map +6 -0
- package/dist/esm/link/Redirect.mjs +16 -0
- package/dist/esm/link/Redirect.mjs.map +1 -0
- package/dist/esm/link/Redirect.native.js +17 -0
- package/dist/esm/link/Redirect.native.js.map +1 -0
- package/dist/esm/link/href.js +34 -0
- package/dist/esm/link/href.js.map +6 -0
- package/dist/esm/link/href.mjs +35 -0
- package/dist/esm/link/href.mjs.map +1 -0
- package/dist/esm/link/href.native.js +58 -0
- package/dist/esm/link/href.native.js.map +1 -0
- package/dist/esm/link/linking.js +62 -0
- package/dist/esm/link/linking.js.map +6 -0
- package/dist/esm/link/linking.mjs +51 -0
- package/dist/esm/link/linking.mjs.map +1 -0
- package/dist/esm/link/linking.native.js +67 -0
- package/dist/esm/link/linking.native.js.map +1 -0
- package/dist/esm/link/path.js +49 -0
- package/dist/esm/link/path.js.map +6 -0
- package/dist/esm/link/path.mjs +46 -0
- package/dist/esm/link/path.mjs.map +1 -0
- package/dist/esm/link/path.native.js +42 -0
- package/dist/esm/link/path.native.js.map +1 -0
- package/dist/esm/link/useLinkTo.js +29 -0
- package/dist/esm/link/useLinkTo.js.map +6 -0
- package/dist/esm/link/useLinkTo.mjs +31 -0
- package/dist/esm/link/useLinkTo.mjs.map +1 -0
- package/dist/esm/link/useLinkTo.native.js +31 -0
- package/dist/esm/link/useLinkTo.native.js.map +1 -0
- package/dist/esm/link/useLoadedNavigation.js +36 -0
- package/dist/esm/link/useLoadedNavigation.js.map +6 -0
- package/dist/esm/link/useLoadedNavigation.mjs +36 -0
- package/dist/esm/link/useLoadedNavigation.mjs.map +1 -0
- package/dist/esm/link/useLoadedNavigation.native.js +42 -0
- package/dist/esm/link/useLoadedNavigation.native.js.map +1 -0
- package/dist/esm/matchers.js +52 -0
- package/dist/esm/matchers.js.map +6 -0
- package/dist/esm/matchers.mjs +39 -0
- package/dist/esm/matchers.mjs.map +1 -0
- package/dist/esm/matchers.native.js +45 -0
- package/dist/esm/matchers.native.js.map +1 -0
- package/dist/esm/platform.js +5 -0
- package/dist/esm/platform.js.map +6 -0
- package/dist/esm/platform.mjs +3 -0
- package/dist/esm/platform.mjs.map +1 -0
- package/dist/esm/platform.native.js +3 -0
- package/dist/esm/platform.native.js.map +1 -0
- package/dist/esm/polyfills-mobile.js +11 -0
- package/dist/esm/polyfills-mobile.js.map +6 -0
- package/dist/esm/polyfills-mobile.mjs +12 -0
- package/dist/esm/polyfills-mobile.mjs.map +1 -0
- package/dist/esm/polyfills-mobile.native.js +13 -0
- package/dist/esm/polyfills-mobile.native.js.map +1 -0
- package/dist/esm/polyfills-server.js +4 -0
- package/dist/esm/polyfills-server.js.map +6 -0
- package/dist/esm/polyfills-server.mjs +4 -0
- package/dist/esm/polyfills-server.mjs.map +1 -0
- package/dist/esm/polyfills-server.native.js +5 -0
- package/dist/esm/polyfills-server.native.js.map +1 -0
- package/dist/esm/render.js +29 -0
- package/dist/esm/render.js.map +6 -0
- package/dist/esm/render.mjs +24 -0
- package/dist/esm/render.mjs.map +1 -0
- package/dist/esm/render.native.js +5 -0
- package/dist/esm/render.native.js.map +1 -0
- package/dist/esm/router/RouterStore.js +1 -0
- package/dist/esm/router/RouterStore.js.map +6 -0
- package/dist/esm/router/RouterStore.mjs +2 -0
- package/dist/esm/router/RouterStore.mjs.map +1 -0
- package/dist/esm/router/RouterStore.native.js +2 -0
- package/dist/esm/router/RouterStore.native.js.map +1 -0
- package/dist/esm/router/constants.js +6 -0
- package/dist/esm/router/constants.js.map +6 -0
- package/dist/esm/router/constants.mjs +4 -0
- package/dist/esm/router/constants.mjs.map +1 -0
- package/dist/esm/router/constants.native.js +4 -0
- package/dist/esm/router/constants.native.js.map +1 -0
- package/dist/esm/router/getNormalizedStatePath.js +34 -0
- package/dist/esm/router/getNormalizedStatePath.js.map +6 -0
- package/dist/esm/router/getNormalizedStatePath.mjs +29 -0
- package/dist/esm/router/getNormalizedStatePath.mjs.map +1 -0
- package/dist/esm/router/getNormalizedStatePath.native.js +31 -0
- package/dist/esm/router/getNormalizedStatePath.native.js.map +1 -0
- package/dist/esm/router/lastAction.js +9 -0
- package/dist/esm/router/lastAction.js.map +6 -0
- package/dist/esm/router/lastAction.mjs +7 -0
- package/dist/esm/router/lastAction.mjs.map +1 -0
- package/dist/esm/router/lastAction.native.js +9 -0
- package/dist/esm/router/lastAction.native.js.map +1 -0
- package/dist/esm/router/router.js +342 -0
- package/dist/esm/router/router.js.map +6 -0
- package/dist/esm/router/router.mjs +304 -0
- package/dist/esm/router/router.mjs.map +1 -0
- package/dist/esm/router/router.native.js +384 -0
- package/dist/esm/router/router.native.js.map +1 -0
- package/dist/esm/router/serverLocationContext.js +6 -0
- package/dist/esm/router/serverLocationContext.js.map +6 -0
- package/dist/esm/router/serverLocationContext.mjs +4 -0
- package/dist/esm/router/serverLocationContext.mjs.map +1 -0
- package/dist/esm/router/serverLocationContext.native.js +4 -0
- package/dist/esm/router/serverLocationContext.native.js.map +1 -0
- package/dist/esm/router/useInitializeOneRouter.js +21 -0
- package/dist/esm/router/useInitializeOneRouter.js.map +6 -0
- package/dist/esm/router/useInitializeOneRouter.mjs +18 -0
- package/dist/esm/router/useInitializeOneRouter.mjs.map +1 -0
- package/dist/esm/router/useInitializeOneRouter.native.js +18 -0
- package/dist/esm/router/useInitializeOneRouter.native.js.map +1 -0
- package/dist/esm/serve.js +159 -0
- package/dist/esm/serve.js.map +6 -0
- package/dist/esm/serve.mjs +149 -0
- package/dist/esm/serve.mjs.map +1 -0
- package/dist/esm/serve.native.js +200 -0
- package/dist/esm/serve.native.js.map +1 -0
- package/dist/esm/server/createRoutesManifest.js +25 -0
- package/dist/esm/server/createRoutesManifest.js.map +6 -0
- package/dist/esm/server/createRoutesManifest.mjs +23 -0
- package/dist/esm/server/createRoutesManifest.mjs.map +1 -0
- package/dist/esm/server/createRoutesManifest.native.js +28 -0
- package/dist/esm/server/createRoutesManifest.native.js.map +1 -0
- package/dist/esm/server/getServerManifest.js +94 -0
- package/dist/esm/server/getServerManifest.js.map +6 -0
- package/dist/esm/server/getServerManifest.mjs +112 -0
- package/dist/esm/server/getServerManifest.mjs.map +1 -0
- package/dist/esm/server/getServerManifest.native.js +157 -0
- package/dist/esm/server/getServerManifest.native.js.map +1 -0
- package/dist/esm/server-render.js +18 -0
- package/dist/esm/server-render.js.map +6 -0
- package/dist/esm/server-render.mjs +19 -0
- package/dist/esm/server-render.mjs.map +1 -0
- package/dist/esm/server-render.native.js +37 -0
- package/dist/esm/server-render.native.js.map +1 -0
- package/dist/esm/sortRoutes.js +48 -0
- package/dist/esm/sortRoutes.js.map +6 -0
- package/dist/esm/sortRoutes.mjs +38 -0
- package/dist/esm/sortRoutes.mjs.map +1 -0
- package/dist/esm/sortRoutes.native.js +38 -0
- package/dist/esm/sortRoutes.native.js.map +1 -0
- package/dist/esm/typed-routes/generateRouteTypes.js +14 -0
- package/dist/esm/typed-routes/generateRouteTypes.js.map +6 -0
- package/dist/esm/typed-routes/generateRouteTypes.mjs +14 -0
- package/dist/esm/typed-routes/generateRouteTypes.mjs.map +1 -0
- package/dist/esm/typed-routes/generateRouteTypes.native.js +17 -0
- package/dist/esm/typed-routes/generateRouteTypes.native.js.map +1 -0
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.js +68 -0
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.js.map +6 -0
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs +57 -0
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs.map +1 -0
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +117 -0
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/types.js.map +6 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/dist/esm/useFocusEffect.js +56 -0
- package/dist/esm/useFocusEffect.js.map +6 -0
- package/dist/esm/useFocusEffect.mjs +54 -0
- package/dist/esm/useFocusEffect.mjs.map +1 -0
- package/dist/esm/useFocusEffect.native.js +59 -0
- package/dist/esm/useFocusEffect.native.js.map +1 -0
- package/dist/esm/useLoader.js +89 -0
- package/dist/esm/useLoader.js.map +6 -0
- package/dist/esm/useLoader.mjs +92 -0
- package/dist/esm/useLoader.mjs.map +1 -0
- package/dist/esm/useLoader.native.js +97 -0
- package/dist/esm/useLoader.native.js.map +1 -0
- package/dist/esm/useNavigation.js +41 -0
- package/dist/esm/useNavigation.js.map +6 -0
- package/dist/esm/useNavigation.mjs +33 -0
- package/dist/esm/useNavigation.mjs.map +1 -0
- package/dist/esm/useNavigation.native.js +49 -0
- package/dist/esm/useNavigation.native.js.map +1 -0
- package/dist/esm/useScreens.js +165 -0
- package/dist/esm/useScreens.js.map +6 -0
- package/dist/esm/useScreens.mjs +195 -0
- package/dist/esm/useScreens.mjs.map +1 -0
- package/dist/esm/useScreens.native.js +269 -0
- package/dist/esm/useScreens.native.js.map +1 -0
- package/dist/esm/useViteRoutes.js +64 -0
- package/dist/esm/useViteRoutes.js.map +6 -0
- package/dist/esm/useViteRoutes.mjs +64 -0
- package/dist/esm/useViteRoutes.mjs.map +1 -0
- package/dist/esm/useViteRoutes.native.js +59 -0
- package/dist/esm/useViteRoutes.native.js.map +1 -0
- package/dist/esm/utils/assertIsReady.js +10 -0
- package/dist/esm/utils/assertIsReady.js.map +6 -0
- package/dist/esm/utils/assertIsReady.mjs +5 -0
- package/dist/esm/utils/assertIsReady.mjs.map +1 -0
- package/dist/esm/utils/assertIsReady.native.js +5 -0
- package/dist/esm/utils/assertIsReady.native.js.map +1 -0
- package/dist/esm/utils/dynamicImport.js +8 -0
- package/dist/esm/utils/dynamicImport.js.map +6 -0
- package/dist/esm/utils/dynamicImport.mjs +4 -0
- package/dist/esm/utils/dynamicImport.mjs.map +1 -0
- package/dist/esm/utils/dynamicImport.native.js +5 -0
- package/dist/esm/utils/dynamicImport.native.js.map +1 -0
- package/dist/esm/utils/existsAsync.js +12 -0
- package/dist/esm/utils/existsAsync.js.map +6 -0
- package/dist/esm/utils/existsAsync.mjs +10 -0
- package/dist/esm/utils/existsAsync.mjs.map +1 -0
- package/dist/esm/utils/existsAsync.native.js +12 -0
- package/dist/esm/utils/existsAsync.native.js.map +1 -0
- package/dist/esm/utils/getPageExport.js +11 -0
- package/dist/esm/utils/getPageExport.js.map +6 -0
- package/dist/esm/utils/getPageExport.mjs +9 -0
- package/dist/esm/utils/getPageExport.mjs.map +1 -0
- package/dist/esm/utils/getPageExport.native.js +14 -0
- package/dist/esm/utils/getPageExport.native.js.map +1 -0
- package/dist/esm/utils/globDir.js +13 -0
- package/dist/esm/utils/globDir.js.map +6 -0
- package/dist/esm/utils/globDir.mjs +11 -0
- package/dist/esm/utils/globDir.mjs.map +1 -0
- package/dist/esm/utils/globDir.native.js +13 -0
- package/dist/esm/utils/globDir.native.js.map +1 -0
- package/dist/esm/utils/hashString.js +8 -0
- package/dist/esm/utils/hashString.js.map +6 -0
- package/dist/esm/utils/hashString.mjs +6 -0
- package/dist/esm/utils/hashString.mjs.map +1 -0
- package/dist/esm/utils/hashString.native.js +6 -0
- package/dist/esm/utils/hashString.native.js.map +1 -0
- package/dist/esm/utils/isResponse.js +7 -0
- package/dist/esm/utils/isResponse.js.map +6 -0
- package/dist/esm/utils/isResponse.mjs +5 -0
- package/dist/esm/utils/isResponse.mjs.map +1 -0
- package/dist/esm/utils/isResponse.native.js +5 -0
- package/dist/esm/utils/isResponse.native.js.map +1 -0
- package/dist/esm/utils/isStatus.js +7 -0
- package/dist/esm/utils/isStatus.js.map +6 -0
- package/dist/esm/utils/isStatus.mjs +5 -0
- package/dist/esm/utils/isStatus.mjs.map +1 -0
- package/dist/esm/utils/isStatus.native.js +5 -0
- package/dist/esm/utils/isStatus.native.js.map +1 -0
- package/dist/esm/utils/promiseWithResolvers.js +10 -0
- package/dist/esm/utils/promiseWithResolvers.js.map +6 -0
- package/dist/esm/utils/promiseWithResolvers.mjs +14 -0
- package/dist/esm/utils/promiseWithResolvers.mjs.map +1 -0
- package/dist/esm/utils/promiseWithResolvers.native.js +14 -0
- package/dist/esm/utils/promiseWithResolvers.native.js.map +1 -0
- package/dist/esm/utils/rand.js +5 -0
- package/dist/esm/utils/rand.js.map +6 -0
- package/dist/esm/utils/rand.mjs +3 -0
- package/dist/esm/utils/rand.mjs.map +1 -0
- package/dist/esm/utils/rand.native.js +5 -0
- package/dist/esm/utils/rand.native.js.map +1 -0
- package/dist/esm/utils/redirect.js +13 -0
- package/dist/esm/utils/redirect.js.map +6 -0
- package/dist/esm/utils/redirect.mjs +11 -0
- package/dist/esm/utils/redirect.mjs.map +1 -0
- package/dist/esm/utils/redirect.native.js +11 -0
- package/dist/esm/utils/redirect.native.js.map +1 -0
- package/dist/esm/utils/removeSearch.js +7 -0
- package/dist/esm/utils/removeSearch.js.map +6 -0
- package/dist/esm/utils/removeSearch.mjs +5 -0
- package/dist/esm/utils/removeSearch.mjs.map +1 -0
- package/dist/esm/utils/removeSearch.native.js +5 -0
- package/dist/esm/utils/removeSearch.native.js.map +1 -0
- package/dist/esm/utils/removeUndefined.js +10 -0
- package/dist/esm/utils/removeUndefined.js.map +6 -0
- package/dist/esm/utils/removeUndefined.mjs +7 -0
- package/dist/esm/utils/removeUndefined.mjs.map +1 -0
- package/dist/esm/utils/removeUndefined.native.js +7 -0
- package/dist/esm/utils/removeUndefined.native.js.map +1 -0
- package/dist/esm/utils/requireResolve.js +9 -0
- package/dist/esm/utils/requireResolve.js.map +6 -0
- package/dist/esm/utils/requireResolve.mjs +7 -0
- package/dist/esm/utils/requireResolve.mjs.map +1 -0
- package/dist/esm/utils/requireResolve.native.js +7 -0
- package/dist/esm/utils/requireResolve.native.js.map +1 -0
- package/dist/esm/utils/url.js +15 -0
- package/dist/esm/utils/url.js.map +6 -0
- package/dist/esm/utils/url.mjs +11 -0
- package/dist/esm/utils/url.mjs.map +1 -0
- package/dist/esm/utils/url.native.js +11 -0
- package/dist/esm/utils/url.native.js.map +1 -0
- package/dist/esm/utils/weakKey.js +8 -0
- package/dist/esm/utils/weakKey.js.map +6 -0
- package/dist/esm/utils/weakKey.mjs +7 -0
- package/dist/esm/utils/weakKey.mjs.map +1 -0
- package/dist/esm/utils/weakKey.native.js +10 -0
- package/dist/esm/utils/weakKey.native.js.map +1 -0
- package/dist/esm/utils/weakMemo.js +14 -0
- package/dist/esm/utils/weakMemo.js.map +6 -0
- package/dist/esm/utils/weakMemo.mjs +11 -0
- package/dist/esm/utils/weakMemo.mjs.map +1 -0
- package/dist/esm/utils/weakMemo.native.js +27 -0
- package/dist/esm/utils/weakMemo.native.js.map +1 -0
- package/dist/esm/views/EmptyRoute.js +9 -0
- package/dist/esm/views/EmptyRoute.js.map +6 -0
- package/dist/esm/views/EmptyRoute.mjs +7 -0
- package/dist/esm/views/EmptyRoute.mjs.map +1 -0
- package/dist/esm/views/EmptyRoute.native.js +8 -0
- package/dist/esm/views/EmptyRoute.native.js.map +1 -0
- package/dist/esm/views/ErrorBoundary.js +12 -0
- package/dist/esm/views/ErrorBoundary.js.map +6 -0
- package/dist/esm/views/ErrorBoundary.mjs +13 -0
- package/dist/esm/views/ErrorBoundary.mjs.map +1 -0
- package/dist/esm/views/ErrorBoundary.native.js +15 -0
- package/dist/esm/views/ErrorBoundary.native.js.map +1 -0
- package/dist/esm/views/LoadProgressBar.js +70 -0
- package/dist/esm/views/LoadProgressBar.js.map +6 -0
- package/dist/esm/views/LoadProgressBar.mjs +67 -0
- package/dist/esm/views/LoadProgressBar.mjs.map +1 -0
- package/dist/esm/views/LoadProgressBar.native.js +69 -0
- package/dist/esm/views/LoadProgressBar.native.js.map +1 -0
- package/dist/esm/views/Navigator.js +84 -0
- package/dist/esm/views/Navigator.js.map +6 -0
- package/dist/esm/views/Navigator.mjs +109 -0
- package/dist/esm/views/Navigator.mjs.map +1 -0
- package/dist/esm/views/Navigator.native.js +119 -0
- package/dist/esm/views/Navigator.native.js.map +1 -0
- package/dist/esm/views/PreloadLinks.js +16 -0
- package/dist/esm/views/PreloadLinks.js.map +6 -0
- package/dist/esm/views/PreloadLinks.mjs +14 -0
- package/dist/esm/views/PreloadLinks.mjs.map +1 -0
- package/dist/esm/views/PreloadLinks.native.js +5 -0
- package/dist/esm/views/PreloadLinks.native.js.map +1 -0
- package/dist/esm/views/RootErrorBoundary.js +23 -0
- package/dist/esm/views/RootErrorBoundary.js.map +6 -0
- package/dist/esm/views/RootErrorBoundary.mjs +25 -0
- package/dist/esm/views/RootErrorBoundary.mjs.map +1 -0
- package/dist/esm/views/RootErrorBoundary.native.js +102 -0
- package/dist/esm/views/RootErrorBoundary.native.js.map +1 -0
- package/dist/esm/views/Screen.js +14 -0
- package/dist/esm/views/Screen.js.map +6 -0
- package/dist/esm/views/Screen.mjs +16 -0
- package/dist/esm/views/Screen.mjs.map +1 -0
- package/dist/esm/views/Screen.native.js +17 -0
- package/dist/esm/views/Screen.native.js.map +1 -0
- package/dist/esm/views/ScrollRestoration.js +56 -0
- package/dist/esm/views/ScrollRestoration.js.map +6 -0
- package/dist/esm/views/ScrollRestoration.mjs +51 -0
- package/dist/esm/views/ScrollRestoration.mjs.map +1 -0
- package/dist/esm/views/ScrollRestoration.native.js +58 -0
- package/dist/esm/views/ScrollRestoration.native.js.map +1 -0
- package/dist/esm/views/Try.js +21 -0
- package/dist/esm/views/Try.js.map +6 -0
- package/dist/esm/views/Try.mjs +34 -0
- package/dist/esm/views/Try.mjs.map +1 -0
- package/dist/esm/views/Try.native.js +110 -0
- package/dist/esm/views/Try.native.js.map +1 -0
- package/dist/esm/vite/build.js +355 -0
- package/dist/esm/vite/build.js.map +6 -0
- package/dist/esm/vite/build.mjs +380 -0
- package/dist/esm/vite/build.mjs.map +1 -0
- package/dist/esm/vite/build.native.js +467 -0
- package/dist/esm/vite/build.native.js.map +1 -0
- package/dist/esm/vite/clientTreeShakePlugin.js +56 -0
- package/dist/esm/vite/clientTreeShakePlugin.js.map +6 -0
- package/dist/esm/vite/clientTreeShakePlugin.mjs +59 -0
- package/dist/esm/vite/clientTreeShakePlugin.mjs.map +1 -0
- package/dist/esm/vite/clientTreeShakePlugin.native.js +67 -0
- package/dist/esm/vite/clientTreeShakePlugin.native.js.map +1 -0
- package/dist/esm/vite/constants.js +6 -0
- package/dist/esm/vite/constants.js.map +6 -0
- package/dist/esm/vite/constants.mjs +4 -0
- package/dist/esm/vite/constants.mjs.map +1 -0
- package/dist/esm/vite/constants.native.js +4 -0
- package/dist/esm/vite/constants.native.js.map +1 -0
- package/dist/esm/vite/createFileSystemRouter.js +237 -0
- package/dist/esm/vite/createFileSystemRouter.js.map +6 -0
- package/dist/esm/vite/createFileSystemRouter.mjs +256 -0
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -0
- package/dist/esm/vite/createFileSystemRouter.native.js +359 -0
- package/dist/esm/vite/createFileSystemRouter.native.js.map +1 -0
- package/dist/esm/vite/customNodeExternals.js +29 -0
- package/dist/esm/vite/customNodeExternals.js.map +6 -0
- package/dist/esm/vite/customNodeExternals.mjs +30 -0
- package/dist/esm/vite/customNodeExternals.mjs.map +1 -0
- package/dist/esm/vite/customNodeExternals.native.js +31 -0
- package/dist/esm/vite/customNodeExternals.native.js.map +1 -0
- package/dist/esm/vite/ensureTsConfig.js +52 -0
- package/dist/esm/vite/ensureTsConfig.js.map +6 -0
- package/dist/esm/vite/ensureTsConfig.mjs +45 -0
- package/dist/esm/vite/ensureTsConfig.mjs.map +1 -0
- package/dist/esm/vite/ensureTsConfig.native.js +45 -0
- package/dist/esm/vite/ensureTsConfig.native.js.map +1 -0
- package/dist/esm/vite/findDepsToOptimize.js +45 -0
- package/dist/esm/vite/findDepsToOptimize.js.map +6 -0
- package/dist/esm/vite/findDepsToOptimize.mjs +40 -0
- package/dist/esm/vite/findDepsToOptimize.mjs.map +1 -0
- package/dist/esm/vite/findDepsToOptimize.native.js +43 -0
- package/dist/esm/vite/findDepsToOptimize.native.js.map +1 -0
- package/dist/esm/vite/fixDependenciesPlugin.js +27 -0
- package/dist/esm/vite/fixDependenciesPlugin.js.map +6 -0
- package/dist/esm/vite/fixDependenciesPlugin.mjs +25 -0
- package/dist/esm/vite/fixDependenciesPlugin.mjs.map +1 -0
- package/dist/esm/vite/fixDependenciesPlugin.native.js +25 -0
- package/dist/esm/vite/fixDependenciesPlugin.native.js.map +1 -0
- package/dist/esm/vite/generateTypesForRoutes.js +22 -0
- package/dist/esm/vite/generateTypesForRoutes.js.map +6 -0
- package/dist/esm/vite/generateTypesForRoutes.mjs +22 -0
- package/dist/esm/vite/generateTypesForRoutes.mjs.map +1 -0
- package/dist/esm/vite/generateTypesForRoutes.native.js +22 -0
- package/dist/esm/vite/generateTypesForRoutes.native.js.map +1 -0
- package/dist/esm/vite/getManifest.js +12 -0
- package/dist/esm/vite/getManifest.js.map +6 -0
- package/dist/esm/vite/getManifest.mjs +10 -0
- package/dist/esm/vite/getManifest.mjs.map +1 -0
- package/dist/esm/vite/getManifest.native.js +10 -0
- package/dist/esm/vite/getManifest.native.js.map +1 -0
- package/dist/esm/vite/headers.js +23 -0
- package/dist/esm/vite/headers.js.map +6 -0
- package/dist/esm/vite/headers.mjs +18 -0
- package/dist/esm/vite/headers.mjs.map +1 -0
- package/dist/esm/vite/headers.native.js +6 -0
- package/dist/esm/vite/headers.native.js.map +1 -0
- package/dist/esm/vite/loadEnv.js +13 -0
- package/dist/esm/vite/loadEnv.js.map +6 -0
- package/dist/esm/vite/loadEnv.mjs +13 -0
- package/dist/esm/vite/loadEnv.mjs.map +1 -0
- package/dist/esm/vite/loadEnv.native.js +15 -0
- package/dist/esm/vite/loadEnv.native.js.map +1 -0
- package/dist/esm/vite/makePluginWebOnly.js +11 -0
- package/dist/esm/vite/makePluginWebOnly.js.map +6 -0
- package/dist/esm/vite/makePluginWebOnly.mjs +8 -0
- package/dist/esm/vite/makePluginWebOnly.mjs.map +1 -0
- package/dist/esm/vite/makePluginWebOnly.native.js +9 -0
- package/dist/esm/vite/makePluginWebOnly.native.js.map +1 -0
- package/dist/esm/vite/one.js +218 -0
- package/dist/esm/vite/one.js.map +6 -0
- package/dist/esm/vite/one.mjs +194 -0
- package/dist/esm/vite/one.mjs.map +1 -0
- package/dist/esm/vite/one.native.js +212 -0
- package/dist/esm/vite/one.native.js.map +1 -0
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.js +34 -0
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.js.map +6 -0
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.mjs +34 -0
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.mjs.map +1 -0
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +38 -0
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +1 -0
- package/dist/esm/vite/replaceLoader.js +12 -0
- package/dist/esm/vite/replaceLoader.js.map +6 -0
- package/dist/esm/vite/replaceLoader.mjs +10 -0
- package/dist/esm/vite/replaceLoader.mjs.map +1 -0
- package/dist/esm/vite/replaceLoader.native.js +14 -0
- package/dist/esm/vite/replaceLoader.native.js.map +1 -0
- package/dist/esm/vite/resolveAPIRequest.js +56 -0
- package/dist/esm/vite/resolveAPIRequest.js.map +6 -0
- package/dist/esm/vite/resolveAPIRequest.mjs +67 -0
- package/dist/esm/vite/resolveAPIRequest.mjs.map +1 -0
- package/dist/esm/vite/resolveAPIRequest.native.js +67 -0
- package/dist/esm/vite/resolveAPIRequest.native.js.map +1 -0
- package/dist/esm/vite/server.js +17 -0
- package/dist/esm/vite/server.js.map +6 -0
- package/dist/esm/vite/server.mjs +13 -0
- package/dist/esm/vite/server.mjs.map +1 -0
- package/dist/esm/vite/server.native.js +17 -0
- package/dist/esm/vite/server.native.js.map +1 -0
- package/dist/esm/vite/types.js +1 -0
- package/dist/esm/vite/types.js.map +6 -0
- package/dist/esm/vite/types.mjs +2 -0
- package/dist/esm/vite/types.mjs.map +1 -0
- package/dist/esm/vite/types.native.js +2 -0
- package/dist/esm/vite/types.native.js.map +1 -0
- package/dist/esm/vite/virtualEntryPlugin.js +51 -0
- package/dist/esm/vite/virtualEntryPlugin.js.map +6 -0
- package/dist/esm/vite/virtualEntryPlugin.mjs +48 -0
- package/dist/esm/vite/virtualEntryPlugin.mjs.map +1 -0
- package/dist/esm/vite/virtualEntryPlugin.native.js +56 -0
- package/dist/esm/vite/virtualEntryPlugin.native.js.map +1 -0
- package/dist/esm/vite/vitePluginSsrCss.js +106 -0
- package/dist/esm/vite/vitePluginSsrCss.js.map +6 -0
- package/dist/esm/vite/vitePluginSsrCss.mjs +100 -0
- package/dist/esm/vite/vitePluginSsrCss.mjs.map +1 -0
- package/dist/esm/vite/vitePluginSsrCss.native.js +114 -0
- package/dist/esm/vite/vitePluginSsrCss.native.js.map +1 -0
- package/dist/esm/vite.js +19 -0
- package/dist/esm/vite.js.map +6 -0
- package/dist/esm/vite.mjs +10 -0
- package/dist/esm/vite.mjs.map +1 -0
- package/dist/esm/vite.native.js +10 -0
- package/dist/esm/vite.native.js.map +1 -0
- package/dist/esm/zero/getQueryKey.js +8 -0
- package/dist/esm/zero/getQueryKey.js.map +6 -0
- package/dist/esm/zero/getQueryKey.mjs +6 -0
- package/dist/esm/zero/getQueryKey.mjs.map +1 -0
- package/dist/esm/zero/getQueryKey.native.js +6 -0
- package/dist/esm/zero/getQueryKey.native.js.map +1 -0
- package/dist/esm/zero/isZeroQuery.js +7 -0
- package/dist/esm/zero/isZeroQuery.js.map +6 -0
- package/dist/esm/zero/isZeroQuery.mjs +5 -0
- package/dist/esm/zero/isZeroQuery.mjs.map +1 -0
- package/dist/esm/zero/isZeroQuery.native.js +5 -0
- package/dist/esm/zero/isZeroQuery.native.js.map +1 -0
- package/dist/esm/zero/resolveQuery.js +22 -0
- package/dist/esm/zero/resolveQuery.js.map +6 -0
- package/dist/esm/zero/resolveQuery.mjs +18 -0
- package/dist/esm/zero/resolveQuery.mjs.map +1 -0
- package/dist/esm/zero/resolveQuery.native.js +18 -0
- package/dist/esm/zero/resolveQuery.native.js.map +1 -0
- package/dist/esm/zero/subscribeToQuery.js +12 -0
- package/dist/esm/zero/subscribeToQuery.js.map +6 -0
- package/dist/esm/zero/subscribeToQuery.mjs +10 -0
- package/dist/esm/zero/subscribeToQuery.mjs.map +1 -0
- package/dist/esm/zero/subscribeToQuery.native.js +10 -0
- package/dist/esm/zero/subscribeToQuery.native.js.map +1 -0
- package/dist/esm/zero/types.js +1 -0
- package/dist/esm/zero/types.js.map +6 -0
- package/dist/esm/zero/types.mjs +2 -0
- package/dist/esm/zero/types.mjs.map +1 -0
- package/dist/esm/zero/types.native.js +2 -0
- package/dist/esm/zero/types.native.js.map +1 -0
- package/dist/esm/zero/useQuery.js +34 -0
- package/dist/esm/zero/useQuery.js.map +6 -0
- package/dist/esm/zero/useQuery.mjs +35 -0
- package/dist/esm/zero/useQuery.mjs.map +1 -0
- package/dist/esm/zero/useQuery.native.js +21 -0
- package/dist/esm/zero/useQuery.native.js.map +1 -0
- package/dist/esm/zero/useQueryZero.js +22 -0
- package/dist/esm/zero/useQueryZero.js.map +6 -0
- package/dist/esm/zero/useQueryZero.mjs +21 -0
- package/dist/esm/zero/useQueryZero.mjs.map +1 -0
- package/dist/esm/zero/useQueryZero.native.js +24 -0
- package/dist/esm/zero/useQueryZero.native.js.map +1 -0
- package/dist/esm/zero.js +9 -0
- package/dist/esm/zero.js.map +6 -0
- package/dist/esm/zero.mjs +5 -0
- package/dist/esm/zero.mjs.map +1 -0
- package/dist/esm/zero.native.js +5 -0
- package/dist/esm/zero.native.js.map +1 -0
- package/package.json +135 -19
- package/run.mjs +3 -0
- package/src/Root.tsx +325 -0
- package/src/Route.tsx +69 -0
- package/src/cli/main.ts +14 -0
- package/src/cli/prebuild.ts +6 -0
- package/src/cli/run.ts +38 -0
- package/src/cli.ts +146 -0
- package/src/clientLoaderResolver.ts +24 -0
- package/src/config.ts +15 -0
- package/src/constants.ts +3 -0
- package/src/createApp.native.tsx +21 -0
- package/src/createApp.tsx +63 -0
- package/src/createHandleRequest.ts +217 -0
- package/src/createRoute.ts +39 -0
- package/src/fallbackViews/Sitemap.tsx +243 -0
- package/src/fallbackViews/Unmatched.tsx +90 -0
- package/src/fork/NavigationContainer.native.tsx +147 -0
- package/src/fork/NavigationContainer.tsx +149 -0
- package/src/fork/createMemoryHistory.tsx +234 -0
- package/src/fork/extractPathFromURL.ts +95 -0
- package/src/fork/findFocusedRoute.tsx +15 -0
- package/src/fork/getPathFromState.ts +669 -0
- package/src/fork/getStateFromPath.ts +838 -0
- package/src/fork/useLinking.native.ts +218 -0
- package/src/fork/useLinking.ts +415 -0
- package/src/fork/validatePathConfig.ts +29 -0
- package/src/getLinkingConfig.ts +61 -0
- package/src/getReactNavigationConfig.ts +101 -0
- package/src/getRoutes.ts +640 -0
- package/src/getURL.native.ts +24 -0
- package/src/getURL.ts +5 -0
- package/src/head/Head.android.tsx +8 -0
- package/src/head/Head.ios.tsx +302 -0
- package/src/head/Head.tsx +9 -0
- package/src/head/HeadModule.ts +50 -0
- package/src/head/index.ts +1 -0
- package/src/head/types.ts +4 -0
- package/src/head/url.tsx +80 -0
- package/src/hooks.tsx +143 -0
- package/src/imperative-api.ts +20 -0
- package/src/import-mode/index.android.ts +1 -0
- package/src/import-mode/index.ios.ts +1 -0
- package/src/import-mode/index.native.ts +3 -0
- package/src/import-mode/index.ts +1 -0
- package/src/import-mode/index.web.ts +1 -0
- package/src/index.ts +69 -0
- package/src/interfaces/router.ts +415 -0
- package/src/layouts/Drawer.tsx +19 -0
- package/src/layouts/Stack.tsx +19 -0
- package/src/layouts/Tabs.tsx +57 -0
- package/src/layouts/withLayoutContext.tsx +110 -0
- package/src/link/Link.tsx +131 -0
- package/src/link/Redirect.tsx +16 -0
- package/src/link/href.ts +53 -0
- package/src/link/linking.ts +104 -0
- package/src/link/path.ts +138 -0
- package/src/link/useLinkTo.tsx +57 -0
- package/src/link/useLoadedNavigation.ts +62 -0
- package/src/matchers.ts +75 -0
- package/src/platform.ts +5 -0
- package/src/polyfills-mobile.ts +36 -0
- package/src/polyfills-server.ts +6 -0
- package/src/render.native.tsx +3 -0
- package/src/render.tsx +40 -0
- package/src/router/RouterStore.ts +3 -0
- package/src/router/constants.ts +9 -0
- package/src/router/getNormalizedStatePath.tsx +49 -0
- package/src/router/lastAction.ts +6 -0
- package/src/router/router.ts +633 -0
- package/src/router/serverLocationContext.ts +3 -0
- package/src/router/useInitializeOneRouter.ts +37 -0
- package/src/serve.ts +229 -0
- package/src/server/createRoutesManifest.ts +47 -0
- package/src/server/getServerManifest.ts +280 -0
- package/src/server-render.tsx +24 -0
- package/src/sortRoutes.ts +76 -0
- package/src/typed-routes/generateRouteTypes.ts +18 -0
- package/src/typed-routes/getTypedRoutesDeclarationFile.ts +130 -0
- package/src/types.ts +38 -0
- package/src/useFocusEffect.ts +118 -0
- package/src/useLoader.ts +173 -0
- package/src/useNavigation.ts +79 -0
- package/src/useScreens.tsx +334 -0
- package/src/useViteRoutes.tsx +147 -0
- package/src/utils/assertIsReady.ts +9 -0
- package/src/utils/dynamicImport.ts +17 -0
- package/src/utils/existsAsync.ts +11 -0
- package/src/utils/getPageExport.ts +14 -0
- package/src/utils/globDir.ts +12 -0
- package/src/utils/hashString.ts +5 -0
- package/src/utils/isResponse.ts +7 -0
- package/src/utils/isStatus.ts +5 -0
- package/src/utils/promiseWithResolvers.ts +9 -0
- package/src/utils/rand.ts +1 -0
- package/src/utils/redirect.ts +11 -0
- package/src/utils/removeSearch.ts +3 -0
- package/src/utils/removeUndefined.ts +16 -0
- package/src/utils/requireResolve.ts +10 -0
- package/src/utils/url.ts +19 -0
- package/src/utils/weakKey.ts +11 -0
- package/src/utils/weakMemo.ts +15 -0
- package/src/views/EmptyRoute.tsx +18 -0
- package/src/views/ErrorBoundary.tsx +171 -0
- package/src/views/LoadProgressBar.tsx +106 -0
- package/src/views/Navigator.tsx +158 -0
- package/src/views/PreloadLinks.native.tsx +3 -0
- package/src/views/PreloadLinks.tsx +20 -0
- package/src/views/RootErrorBoundary.tsx +33 -0
- package/src/views/Screen.tsx +33 -0
- package/src/views/ScrollRestoration.tsx +104 -0
- package/src/views/Try.tsx +44 -0
- package/src/vite/build.ts +607 -0
- package/src/vite/clientTreeShakePlugin.ts +98 -0
- package/src/vite/constants.ts +3 -0
- package/src/vite/createFileSystemRouter.tsx +433 -0
- package/src/vite/customNodeExternals.ts +33 -0
- package/src/vite/ensureTsConfig.ts +52 -0
- package/src/vite/findDepsToOptimize.ts +66 -0
- package/src/vite/fixDependenciesPlugin.ts +39 -0
- package/src/vite/generateTypesForRoutes.tsx +36 -0
- package/src/vite/getManifest.ts +9 -0
- package/src/vite/headers.native.ts +9 -0
- package/src/vite/headers.ts +39 -0
- package/src/vite/loadEnv.ts +11 -0
- package/src/vite/makePluginWebOnly.ts +16 -0
- package/src/vite/one.ts +305 -0
- package/src/vite/removeReactNativeWebAnimatedPlugin.ts +50 -0
- package/src/vite/replaceLoader.ts +18 -0
- package/src/vite/resolveAPIRequest.ts +86 -0
- package/src/vite/server.ts +19 -0
- package/src/vite/types.ts +160 -0
- package/src/vite/virtualEntryPlugin.ts +69 -0
- package/src/vite/vitePluginSsrCss.ts +156 -0
- package/src/vite.ts +11 -0
- package/src/zero/getQueryKey.ts +5 -0
- package/src/zero/isZeroQuery.ts +7 -0
- package/src/zero/resolveQuery.ts +29 -0
- package/src/zero/subscribeToQuery.ts +12 -0
- package/src/zero/types.ts +15 -0
- package/src/zero/useQuery.ts +64 -0
- package/src/zero/useQueryZero.ts +40 -0
- package/src/zero.ts +4 -0
- package/types/Root.d.ts +33 -0
- package/types/Root.d.ts.map +1 -0
- package/types/Route.d.ts +53 -0
- package/types/Route.d.ts.map +1 -0
- package/types/cli/main.d.ts +2 -0
- package/types/cli/main.d.ts.map +1 -0
- package/types/cli/prebuild.d.ts +2 -0
- package/types/cli/prebuild.d.ts.map +1 -0
- package/types/cli/run.d.ts +7 -0
- package/types/cli/run.d.ts.map +1 -0
- package/types/cli.d.ts +2 -0
- package/types/cli.d.ts.map +1 -0
- package/types/clientLoaderResolver.d.ts +7 -0
- package/types/clientLoaderResolver.d.ts.map +1 -0
- package/types/config.d.ts +3 -0
- package/types/config.d.ts.map +1 -0
- package/types/constants.d.ts +4 -0
- package/types/constants.d.ts.map +1 -0
- package/types/createApp.d.ts +9 -0
- package/types/createApp.d.ts.map +1 -0
- package/types/createApp.native.d.ts +6 -0
- package/types/createApp.native.d.ts.map +1 -0
- package/types/createHandleRequest.d.ts +22 -0
- package/types/createHandleRequest.d.ts.map +1 -0
- package/types/createRoute.d.ts +28 -0
- package/types/createRoute.d.ts.map +1 -0
- package/types/fallbackViews/Sitemap.d.ts +4 -0
- package/types/fallbackViews/Sitemap.d.ts.map +1 -0
- package/types/fallbackViews/Unmatched.d.ts +3 -0
- package/types/fallbackViews/Unmatched.d.ts.map +1 -0
- package/types/fork/NavigationContainer.d.ts +15 -0
- package/types/fork/NavigationContainer.d.ts.map +1 -0
- package/types/fork/NavigationContainer.native.d.ts +15 -0
- package/types/fork/NavigationContainer.native.d.ts.map +1 -0
- package/types/fork/createMemoryHistory.d.ts +25 -0
- package/types/fork/createMemoryHistory.d.ts.map +1 -0
- package/types/fork/extractPathFromURL.d.ts +6 -0
- package/types/fork/extractPathFromURL.d.ts.map +1 -0
- package/types/fork/findFocusedRoute.d.ts +5 -0
- package/types/fork/findFocusedRoute.d.ts.map +1 -0
- package/types/fork/getPathFromState.d.ts +51 -0
- package/types/fork/getPathFromState.d.ts.map +1 -0
- package/types/fork/getStateFromPath.d.ts +61 -0
- package/types/fork/getStateFromPath.d.ts.map +1 -0
- package/types/fork/useLinking.d.ts +16 -0
- package/types/fork/useLinking.d.ts.map +1 -0
- package/types/fork/useLinking.native.d.ts +49 -0
- package/types/fork/useLinking.native.d.ts.map +1 -0
- package/types/fork/validatePathConfig.d.ts +2 -0
- package/types/fork/validatePathConfig.d.ts.map +1 -0
- package/types/getLinkingConfig.d.ts +14 -0
- package/types/getLinkingConfig.d.ts.map +1 -0
- package/types/getReactNavigationConfig.d.ts +13 -0
- package/types/getReactNavigationConfig.d.ts.map +1 -0
- package/types/getRoutes.d.ts +36 -0
- package/types/getRoutes.d.ts.map +1 -0
- package/types/getURL.d.ts +2 -0
- package/types/getURL.d.ts.map +1 -0
- package/types/getURL.native.d.ts +2 -0
- package/types/getURL.native.d.ts.map +1 -0
- package/types/head/Head.android.d.ts +3 -0
- package/types/head/Head.android.d.ts.map +1 -0
- package/types/head/Head.d.ts +3 -0
- package/types/head/Head.d.ts.map +1 -0
- package/types/head/Head.ios.d.ts +3 -0
- package/types/head/Head.ios.d.ts.map +1 -0
- package/types/head/HeadModule.d.ts +34 -0
- package/types/head/HeadModule.d.ts.map +1 -0
- package/types/head/index.d.ts +2 -0
- package/types/head/index.d.ts.map +1 -0
- package/types/head/types.d.ts +6 -0
- package/types/head/types.d.ts.map +1 -0
- package/types/head/url.d.ts +2 -0
- package/types/head/url.d.ts.map +1 -0
- package/types/hooks.d.ts +62 -0
- package/types/hooks.d.ts.map +1 -0
- package/types/imperative-api.d.ts +3 -0
- package/types/imperative-api.d.ts.map +1 -0
- package/types/import-mode/index.android.d.ts +3 -0
- package/types/import-mode/index.android.d.ts.map +1 -0
- package/types/import-mode/index.d.ts +3 -0
- package/types/import-mode/index.d.ts.map +1 -0
- package/types/import-mode/index.ios.d.ts +3 -0
- package/types/import-mode/index.ios.d.ts.map +1 -0
- package/types/import-mode/index.native.d.ts +3 -0
- package/types/import-mode/index.native.d.ts.map +1 -0
- package/types/import-mode/index.web.d.ts +3 -0
- package/types/import-mode/index.web.d.ts.map +1 -0
- package/types/index.d.ts +34 -0
- package/types/index.d.ts.map +1 -0
- package/types/interfaces/router.d.ts +292 -0
- package/types/interfaces/router.d.ts.map +1 -0
- package/types/layouts/Drawer.d.ts +107 -0
- package/types/layouts/Drawer.d.ts.map +1 -0
- package/types/layouts/Stack.d.ts +107 -0
- package/types/layouts/Stack.d.ts.map +1 -0
- package/types/layouts/Tabs.d.ts +154 -0
- package/types/layouts/Tabs.d.ts.map +1 -0
- package/types/layouts/withLayoutContext.d.ts +17 -0
- package/types/layouts/withLayoutContext.d.ts.map +1 -0
- package/types/link/Link.d.ts +14 -0
- package/types/link/Link.d.ts.map +1 -0
- package/types/link/Redirect.d.ts +6 -0
- package/types/link/Redirect.d.ts.map +1 -0
- package/types/link/href.d.ts +4 -0
- package/types/link/href.d.ts.map +1 -0
- package/types/link/linking.d.ts +7 -0
- package/types/link/linking.d.ts.map +1 -0
- package/types/link/path.d.ts +2 -0
- package/types/link/path.d.ts.map +1 -0
- package/types/link/useLinkTo.d.ts +11 -0
- package/types/link/useLinkTo.d.ts.map +1 -0
- package/types/link/useLoadedNavigation.d.ts +9 -0
- package/types/link/useLoadedNavigation.d.ts.map +1 -0
- package/types/matchers.d.ts +24 -0
- package/types/matchers.d.ts.map +1 -0
- package/types/platform.d.ts +2 -0
- package/types/platform.d.ts.map +1 -0
- package/types/polyfills-mobile.d.ts +4 -0
- package/types/polyfills-mobile.d.ts.map +1 -0
- package/types/polyfills-server.d.ts +2 -0
- package/types/polyfills-server.d.ts.map +1 -0
- package/types/render.d.ts +2 -0
- package/types/render.d.ts.map +1 -0
- package/types/render.native.d.ts +2 -0
- package/types/render.native.d.ts.map +1 -0
- package/types/router/RouterStore.d.ts +3 -0
- package/types/router/RouterStore.d.ts.map +1 -0
- package/types/router/constants.d.ts +3 -0
- package/types/router/constants.d.ts.map +1 -0
- package/types/router/getNormalizedStatePath.d.ts +14 -0
- package/types/router/getNormalizedStatePath.d.ts.map +1 -0
- package/types/router/lastAction.d.ts +3 -0
- package/types/router/lastAction.d.ts.map +1 -0
- package/types/router/router.d.ts +73 -0
- package/types/router/router.d.ts.map +1 -0
- package/types/router/serverLocationContext.d.ts +2 -0
- package/types/router/serverLocationContext.d.ts.map +1 -0
- package/types/router/useInitializeOneRouter.d.ts +5 -0
- package/types/router/useInitializeOneRouter.d.ts.map +1 -0
- package/types/serve.d.ts +11 -0
- package/types/serve.d.ts.map +1 -0
- package/types/server/createRoutesManifest.d.ts +19 -0
- package/types/server/createRoutesManifest.d.ts.map +1 -0
- package/types/server/getServerManifest.d.ts +42 -0
- package/types/server/getServerManifest.d.ts.map +1 -0
- package/types/server-render.d.ts +4 -0
- package/types/server-render.d.ts.map +1 -0
- package/types/sortRoutes.d.ts +4 -0
- package/types/sortRoutes.d.ts.map +1 -0
- package/types/typed-routes/generateRouteTypes.d.ts +2 -0
- package/types/typed-routes/generateRouteTypes.d.ts.map +1 -0
- package/types/typed-routes/getTypedRoutesDeclarationFile.d.ts +3 -0
- package/types/typed-routes/getTypedRoutesDeclarationFile.d.ts.map +1 -0
- package/types/types.d.ts +29 -0
- package/types/types.d.ts.map +1 -0
- package/types/useFocusEffect.d.ts +11 -0
- package/types/useFocusEffect.d.ts.map +1 -0
- package/types/useLoader.d.ts +2 -0
- package/types/useLoader.d.ts.map +1 -0
- package/types/useNavigation.d.ts +9 -0
- package/types/useNavigation.d.ts.map +1 -0
- package/types/useScreens.d.ts +49 -0
- package/types/useScreens.d.ts.map +1 -0
- package/types/useViteRoutes.d.ts +6 -0
- package/types/useViteRoutes.d.ts.map +1 -0
- package/types/utils/assertIsReady.d.ts +3 -0
- package/types/utils/assertIsReady.d.ts.map +1 -0
- package/types/utils/dynamicImport.d.ts +2 -0
- package/types/utils/dynamicImport.d.ts.map +1 -0
- package/types/utils/existsAsync.d.ts +2 -0
- package/types/utils/existsAsync.d.ts.map +1 -0
- package/types/utils/getPageExport.d.ts +2 -0
- package/types/utils/getPageExport.d.ts.map +1 -0
- package/types/utils/globDir.d.ts +2 -0
- package/types/utils/globDir.d.ts.map +1 -0
- package/types/utils/hashString.d.ts +2 -0
- package/types/utils/hashString.d.ts.map +1 -0
- package/types/utils/isResponse.d.ts +2 -0
- package/types/utils/isResponse.d.ts.map +1 -0
- package/types/utils/isStatus.d.ts +3 -0
- package/types/utils/isStatus.d.ts.map +1 -0
- package/types/utils/promiseWithResolvers.d.ts +6 -0
- package/types/utils/promiseWithResolvers.d.ts.map +1 -0
- package/types/utils/rand.d.ts +2 -0
- package/types/utils/rand.d.ts.map +1 -0
- package/types/utils/redirect.d.ts +2 -0
- package/types/utils/redirect.d.ts.map +1 -0
- package/types/utils/removeSearch.d.ts +2 -0
- package/types/utils/removeSearch.d.ts.map +1 -0
- package/types/utils/removeUndefined.d.ts +6 -0
- package/types/utils/removeUndefined.d.ts.map +1 -0
- package/types/utils/requireResolve.d.ts +2 -0
- package/types/utils/requireResolve.d.ts.map +1 -0
- package/types/utils/url.d.ts +8 -0
- package/types/utils/url.d.ts.map +1 -0
- package/types/utils/weakKey.d.ts +2 -0
- package/types/utils/weakKey.d.ts.map +1 -0
- package/types/utils/weakMemo.d.ts +2 -0
- package/types/utils/weakMemo.d.ts.map +1 -0
- package/types/views/EmptyRoute.d.ts +2 -0
- package/types/views/EmptyRoute.d.ts.map +1 -0
- package/types/views/ErrorBoundary.d.ts +3 -0
- package/types/views/ErrorBoundary.d.ts.map +1 -0
- package/types/views/LoadProgressBar.d.ts +21 -0
- package/types/views/LoadProgressBar.d.ts.map +1 -0
- package/types/views/Navigator.d.ts +37 -0
- package/types/views/Navigator.d.ts.map +1 -0
- package/types/views/PreloadLinks.d.ts +2 -0
- package/types/views/PreloadLinks.d.ts.map +1 -0
- package/types/views/PreloadLinks.native.d.ts +2 -0
- package/types/views/PreloadLinks.native.d.ts.map +1 -0
- package/types/views/RootErrorBoundary.d.ts +14 -0
- package/types/views/RootErrorBoundary.d.ts.map +1 -0
- package/types/views/Screen.d.ts +17 -0
- package/types/views/Screen.d.ts.map +1 -0
- package/types/views/ScrollRestoration.d.ts +6 -0
- package/types/views/ScrollRestoration.d.ts.map +1 -0
- package/types/views/Try.d.ts +24 -0
- package/types/views/Try.d.ts.map +1 -0
- package/types/vite/build.d.ts +5 -0
- package/types/vite/build.d.ts.map +1 -0
- package/types/vite/clientTreeShakePlugin.d.ts +15 -0
- package/types/vite/clientTreeShakePlugin.d.ts.map +1 -0
- package/types/vite/constants.d.ts +3 -0
- package/types/vite/constants.d.ts.map +1 -0
- package/types/vite/createFileSystemRouter.d.ts +4 -0
- package/types/vite/createFileSystemRouter.d.ts.map +1 -0
- package/types/vite/customNodeExternals.d.ts +3 -0
- package/types/vite/customNodeExternals.d.ts.map +1 -0
- package/types/vite/ensureTsConfig.d.ts +3 -0
- package/types/vite/ensureTsConfig.d.ts.map +1 -0
- package/types/vite/findDepsToOptimize.d.ts +2 -0
- package/types/vite/findDepsToOptimize.d.ts.map +1 -0
- package/types/vite/fixDependenciesPlugin.d.ts +4 -0
- package/types/vite/fixDependenciesPlugin.d.ts.map +1 -0
- package/types/vite/generateTypesForRoutes.d.ts +4 -0
- package/types/vite/generateTypesForRoutes.d.ts.map +1 -0
- package/types/vite/getManifest.d.ts +2 -0
- package/types/vite/getManifest.d.ts.map +1 -0
- package/types/vite/headers.d.ts +5 -0
- package/types/vite/headers.d.ts.map +1 -0
- package/types/vite/headers.native.d.ts +5 -0
- package/types/vite/headers.native.d.ts.map +1 -0
- package/types/vite/loadEnv.d.ts +2 -0
- package/types/vite/loadEnv.d.ts.map +1 -0
- package/types/vite/makePluginWebOnly.d.ts +3 -0
- package/types/vite/makePluginWebOnly.d.ts.map +1 -0
- package/types/vite/one.d.ts +6 -0
- package/types/vite/one.d.ts.map +1 -0
- package/types/vite/removeReactNativeWebAnimatedPlugin.d.ts +8 -0
- package/types/vite/removeReactNativeWebAnimatedPlugin.d.ts.map +1 -0
- package/types/vite/replaceLoader.d.ts +5 -0
- package/types/vite/replaceLoader.d.ts.map +1 -0
- package/types/vite/resolveAPIRequest.d.ts +2 -0
- package/types/vite/resolveAPIRequest.d.ts.map +1 -0
- package/types/vite/server.d.ts +2 -0
- package/types/vite/server.d.ts.map +1 -0
- package/types/vite/types.d.ts +132 -0
- package/types/vite/types.d.ts.map +1 -0
- package/types/vite/virtualEntryPlugin.d.ts +9 -0
- package/types/vite/virtualEntryPlugin.d.ts.map +1 -0
- package/types/vite/vitePluginSsrCss.d.ts +7 -0
- package/types/vite/vitePluginSsrCss.d.ts.map +1 -0
- package/types/vite.d.ts +9 -0
- package/types/vite.d.ts.map +1 -0
- package/types/zero/getQueryKey.d.ts +4 -0
- package/types/zero/getQueryKey.d.ts.map +1 -0
- package/types/zero/isZeroQuery.d.ts +2 -0
- package/types/zero/isZeroQuery.d.ts.map +1 -0
- package/types/zero/resolveQuery.d.ts +4 -0
- package/types/zero/resolveQuery.d.ts.map +1 -0
- package/types/zero/subscribeToQuery.d.ts +4 -0
- package/types/zero/subscribeToQuery.d.ts.map +1 -0
- package/types/zero/types.d.ts +5 -0
- package/types/zero/types.d.ts.map +1 -0
- package/types/zero/useQuery.d.ts +6 -0
- package/types/zero/useQuery.d.ts.map +1 -0
- package/types/zero/useQueryZero.d.ts +4 -0
- package/types/zero/useQueryZero.d.ts.map +1 -0
- package/types/zero.d.ts +5 -0
- package/types/zero.d.ts.map +1 -0
- package/vendor/react/LICENSE +21 -0
- package/vendor/react/README.md +37 -0
- package/vendor/react/cjs/react-jsx-dev-runtime.development.js +1315 -0
- package/vendor/react/cjs/react-jsx-dev-runtime.production.min.js +10 -0
- package/vendor/react/cjs/react-jsx-dev-runtime.profiling.min.js +10 -0
- package/vendor/react/cjs/react-jsx-runtime.development.js +1333 -0
- package/vendor/react/cjs/react-jsx-runtime.production.min.js +11 -0
- package/vendor/react/cjs/react-jsx-runtime.profiling.min.js +11 -0
- package/vendor/react/cjs/react.development.js +2740 -0
- package/vendor/react/cjs/react.production.min.js +26 -0
- package/vendor/react/cjs/react.shared-subset.development.js +20 -0
- package/vendor/react/cjs/react.shared-subset.production.min.js +10 -0
- package/vendor/react/index.js +7 -0
- package/vendor/react/jsx-dev-runtime.js +7 -0
- package/vendor/react/jsx-runtime.js +7 -0
- package/vendor/react/package.json +47 -0
- package/vendor/react/react.shared-subset.js +7 -0
- package/vendor/react/umd/react.development.js +3343 -0
- package/vendor/react/umd/react.production.min.js +31 -0
- package/vendor/react/umd/react.profiling.min.js +31 -0
- package/vendor/react-dom/LICENSE +21 -0
- package/vendor/react-dom/README.md +60 -0
- package/vendor/react-dom/cjs/react-dom-server-legacy.browser.development.js +7029 -0
- package/vendor/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +93 -0
- package/vendor/react-dom/cjs/react-dom-server-legacy.node.development.js +7093 -0
- package/vendor/react-dom/cjs/react-dom-server-legacy.node.production.min.js +101 -0
- package/vendor/react-dom/cjs/react-dom-server.browser.development.js +7014 -0
- package/vendor/react-dom/cjs/react-dom-server.browser.production.min.js +96 -0
- package/vendor/react-dom/cjs/react-dom-server.node.development.js +7070 -0
- package/vendor/react-dom/cjs/react-dom-server.node.production.min.js +102 -0
- package/vendor/react-dom/cjs/react-dom-test-utils.development.js +1763 -0
- package/vendor/react-dom/cjs/react-dom-test-utils.production.min.js +40 -0
- package/vendor/react-dom/cjs/react-dom.development.js +29923 -0
- package/vendor/react-dom/cjs/react-dom.production.min.js +322 -0
- package/vendor/react-dom/cjs/react-dom.profiling.min.js +366 -0
- package/vendor/react-dom/client.js +25 -0
- package/vendor/react-dom/index.js +38 -0
- package/vendor/react-dom/package.json +62 -0
- package/vendor/react-dom/profiling.js +38 -0
- package/vendor/react-dom/server.browser.js +17 -0
- package/vendor/react-dom/server.js +3 -0
- package/vendor/react-dom/server.node.js +17 -0
- package/vendor/react-dom/test-utils.js +7 -0
- package/vendor/react-dom/umd/react-dom-server-legacy.browser.development.js +7026 -0
- package/vendor/react-dom/umd/react-dom-server-legacy.browser.production.min.js +75 -0
- package/vendor/react-dom/umd/react-dom-server.browser.development.js +7011 -0
- package/vendor/react-dom/umd/react-dom-server.browser.production.min.js +76 -0
- package/vendor/react-dom/umd/react-dom-test-utils.development.js +1759 -0
- package/vendor/react-dom/umd/react-dom-test-utils.production.min.js +33 -0
- package/vendor/react-dom/umd/react-dom.development.js +29924 -0
- package/vendor/react-dom/umd/react-dom.production.min.js +267 -0
- package/vendor/react-dom/umd/react-dom.profiling.min.js +285 -0
- package/.npmignore +0 -6
- package/COPYING +0 -13
- package/bin/onejs +0 -97
- package/example-project/lib/a.js +0 -8
- package/example-project/lib/b.js +0 -2
- package/example-project/lib/c +0 -0
- package/example-project/lib/web.js +0 -2
- package/example-project/node_modules/dependency/lib/f.js +0 -2
- package/example-project/node_modules/dependency/lib/g.js +0 -1
- package/example-project/node_modules/dependency/node_modules/subdependency/i.js +0 -2
- package/example-project/node_modules/dependency/node_modules/subdependency/j.js +0 -1
- package/example-project/node_modules/dependency/node_modules/subdependency/k +0 -0
- package/example-project/node_modules/dependency/node_modules/subdependency/package.json +0 -4
- package/example-project/node_modules/dependency/package.json +0 -8
- package/example-project/node_modules/dependency/test/h.js +0 -0
- package/example-project/node_modules/one/index.js +0 -1
- package/example-project/node_modules/one/package.json +0 -5
- package/example-project/node_modules/sibling/lib/n.js +0 -6
- package/example-project/node_modules/sibling/lib/p/index.js +0 -2
- package/example-project/node_modules/sibling/lib/p/r.js +0 -2
- package/example-project/node_modules/sibling/lib/s/t.js +0 -1
- package/example-project/node_modules/sibling/package.json +0 -5
- package/example-project/node_modules/sibling/test/o.js +0 -1
- package/example-project/package.json +0 -10
- package/example-project/test/d.js +0 -0
- package/example-project/test/e.js +0 -0
- package/lib/config.js +0 -5
- package/lib/install_dict.js +0 -14
- package/lib/logging.js +0 -6
- package/lib/one.js +0 -392
- package/lib/render.js +0 -109
- package/lib/server.js +0 -31
- package/lib/templating.js +0 -33
- package/templates/firebug.html +0 -22
- package/templates/library.js +0 -17
- package/templates/module.js +0 -11
- package/templates/node.js +0 -21
- package/templates/package.js +0 -15
- package/templates/path.js +0 -46
- package/templates/process.js +0 -96
- package/templates/wrapper.js +0 -140
- package/test/build.js +0 -185
- package/test/common.js +0 -14
- package/test/main.js +0 -250
- package/test/run.js +0 -20
@@ -0,0 +1,467 @@
|
|
1
|
+
import FSExtra from "fs-extra";
|
2
|
+
import MicroMatch from "micromatch";
|
3
|
+
import { createRequire } from "node:module";
|
4
|
+
import Path, { join, relative } from "node:path";
|
5
|
+
import { nodeExternals } from "rollup-plugin-node-externals";
|
6
|
+
import { mergeConfig, build as viteBuild } from "vite";
|
7
|
+
import { fillOptions, getOptimizeDeps, build as vxrnBuild } from "vxrn";
|
8
|
+
import { getManifest } from "./getManifest.native.js";
|
9
|
+
import { loadUserOneOptions } from "./one.native.js";
|
10
|
+
import { replaceLoader } from "./replaceLoader.native.js";
|
11
|
+
var {
|
12
|
+
ensureDir,
|
13
|
+
readFile,
|
14
|
+
outputFile
|
15
|
+
} = FSExtra;
|
16
|
+
process.on("uncaughtException", function (err) {
|
17
|
+
console.error(err?.message || err);
|
18
|
+
});
|
19
|
+
async function build(args) {
|
20
|
+
var _userOptions_build_server,
|
21
|
+
_userOptions_build,
|
22
|
+
_userOptions_web,
|
23
|
+
_options_server,
|
24
|
+
userOptions = await loadUserOneOptions("build"),
|
25
|
+
_userOptions_build_server_outputFormat,
|
26
|
+
serverOutputFormat = (_userOptions_build_server_outputFormat = (_userOptions_build = userOptions.build) === null || _userOptions_build === void 0 || (_userOptions_build_server = _userOptions_build.server) === null || _userOptions_build_server === void 0 ? void 0 : _userOptions_build_server.outputFormat) !== null && _userOptions_build_server_outputFormat !== void 0 ? _userOptions_build_server_outputFormat : "esm";
|
27
|
+
process.env.VXRN_REACT_19 = "1", process.env.ONE_SERVER_URL || console.warn("\u26A0\uFE0F No ONE_SERVER_URL environment set, set it in your .env to your target deploy URL");
|
28
|
+
var vxrnOutput = await vxrnBuild({
|
29
|
+
server: userOptions.server,
|
30
|
+
build: {
|
31
|
+
analyze: !0,
|
32
|
+
server: {
|
33
|
+
outputFormat: serverOutputFormat
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}, args),
|
37
|
+
options = await fillOptions(vxrnOutput.options),
|
38
|
+
toAbsolute = function (p) {
|
39
|
+
return Path.resolve(options.root, p);
|
40
|
+
},
|
41
|
+
manifest = getManifest(),
|
42
|
+
{
|
43
|
+
optimizeDeps
|
44
|
+
} = getOptimizeDeps("build"),
|
45
|
+
apiBuildConfig = mergeConfig(
|
46
|
+
// feels like this should build off the *server* build config not web
|
47
|
+
vxrnOutput.webBuildConfig, {
|
48
|
+
configFile: !1,
|
49
|
+
appType: "custom",
|
50
|
+
optimizeDeps
|
51
|
+
});
|
52
|
+
if (manifest.apiRoutes.length) {
|
53
|
+
var _userOptions_build_api, _userOptions_build1;
|
54
|
+
console.info(`
|
55
|
+
\u{1F528} build api routes
|
56
|
+
`);
|
57
|
+
var processEnvDefines = Object.fromEntries(Object.entries(process.env).map(function (param) {
|
58
|
+
var [key, value] = param;
|
59
|
+
return [`process.env.${key}`, JSON.stringify(value)];
|
60
|
+
})),
|
61
|
+
apiRouteExternalRegex = buildRegexExcludingDeps(optimizeDeps.include),
|
62
|
+
apiEntryPoints = manifest.apiRoutes.reduce(function (entries, param) {
|
63
|
+
var {
|
64
|
+
page,
|
65
|
+
file
|
66
|
+
} = param;
|
67
|
+
return entries[page.slice(1) + ".js"] = join("app", file), entries;
|
68
|
+
}, {}),
|
69
|
+
_userOptions_build_api_outputFormat,
|
70
|
+
apiOutputFormat = (_userOptions_build_api_outputFormat = userOptions == null || (_userOptions_build1 = userOptions.build) === null || _userOptions_build1 === void 0 || (_userOptions_build_api = _userOptions_build1.api) === null || _userOptions_build_api === void 0 ? void 0 : _userOptions_build_api.outputFormat) !== null && _userOptions_build_api_outputFormat !== void 0 ? _userOptions_build_api_outputFormat : serverOutputFormat;
|
71
|
+
await viteBuild(mergeConfig(apiBuildConfig, {
|
72
|
+
appType: "custom",
|
73
|
+
configFile: !1,
|
74
|
+
plugins: [nodeExternals({
|
75
|
+
exclude: optimizeDeps.include
|
76
|
+
})],
|
77
|
+
define: {
|
78
|
+
...processEnvDefines
|
79
|
+
},
|
80
|
+
ssr: {
|
81
|
+
noExternal: !0,
|
82
|
+
// we patched them to switch to react 19
|
83
|
+
external: ["react", "react-dom"],
|
84
|
+
optimizeDeps
|
85
|
+
},
|
86
|
+
build: {
|
87
|
+
ssr: !0,
|
88
|
+
emptyOutDir: !1,
|
89
|
+
outDir: "dist/api",
|
90
|
+
copyPublicDir: !1,
|
91
|
+
minify: !1,
|
92
|
+
rollupOptions: {
|
93
|
+
treeshake: {
|
94
|
+
moduleSideEffects: "no-external"
|
95
|
+
},
|
96
|
+
// too many issues
|
97
|
+
// treeshake: {
|
98
|
+
// moduleSideEffects: false,
|
99
|
+
// },
|
100
|
+
// prevents it from shaking out the exports
|
101
|
+
preserveEntrySignatures: "strict",
|
102
|
+
input: apiEntryPoints,
|
103
|
+
external: apiRouteExternalRegex,
|
104
|
+
output: {
|
105
|
+
entryFileNames: "[name]",
|
106
|
+
exports: "auto",
|
107
|
+
...(apiOutputFormat === "esm" ? {
|
108
|
+
format: "esm",
|
109
|
+
esModule: !0
|
110
|
+
} : {
|
111
|
+
format: "cjs",
|
112
|
+
// Preserve folder structure and use .cjs extension
|
113
|
+
entryFileNames: function (chunkInfo) {
|
114
|
+
var name = chunkInfo.name.replace(/\.js$/, ".cjs");
|
115
|
+
return name;
|
116
|
+
},
|
117
|
+
chunkFileNames: function (chunkInfo) {
|
118
|
+
var dir = Path.dirname(chunkInfo.name),
|
119
|
+
name = Path.basename(chunkInfo.name, Path.extname(chunkInfo.name));
|
120
|
+
return Path.join(dir, `${name}-[hash].cjs`);
|
121
|
+
},
|
122
|
+
assetFileNames: function (assetInfo) {
|
123
|
+
var _assetInfo_name,
|
124
|
+
name = (_assetInfo_name = assetInfo.name) !== null && _assetInfo_name !== void 0 ? _assetInfo_name : "",
|
125
|
+
dir = Path.dirname(name),
|
126
|
+
baseName = Path.basename(name, Path.extname(name)),
|
127
|
+
ext = Path.extname(name);
|
128
|
+
return Path.join(dir, `${baseName}-[hash]${ext}`);
|
129
|
+
}
|
130
|
+
})
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}));
|
135
|
+
}
|
136
|
+
globalThis.require = createRequire(join(import.meta.url, ".."));
|
137
|
+
var assets = [],
|
138
|
+
builtRoutes = [];
|
139
|
+
console.info(`
|
140
|
+
\u{1F528} build static routes
|
141
|
+
`);
|
142
|
+
var render = null,
|
143
|
+
entryServer = vxrnOutput.serverEntry;
|
144
|
+
try {
|
145
|
+
var _serverImport_default_default,
|
146
|
+
serverImport = await import(entryServer);
|
147
|
+
render = serverImport.default.render || ((_serverImport_default_default = serverImport.default.default) === null || _serverImport_default_default === void 0 ? void 0 : _serverImport_default_default.render), typeof render != "function" && (console.error("\u274C Error: didn't find render function in entry", serverImport), process.exit(1));
|
148
|
+
} catch (err) {
|
149
|
+
console.error("\u274C Error importing the root entry:"), console.error(` This error happened in the built file: ${entryServer}`), console.error(err.stack), process.exit(1);
|
150
|
+
}
|
151
|
+
var staticDir = join("dist/static"),
|
152
|
+
clientDir = join("dist/client");
|
153
|
+
await ensureDir(staticDir);
|
154
|
+
var outputEntries = [...vxrnOutput.serverOutput.entries()],
|
155
|
+
_iteratorNormalCompletion = !0,
|
156
|
+
_didIteratorError = !1,
|
157
|
+
_iteratorError = void 0;
|
158
|
+
try {
|
159
|
+
for (var _loop = async function () {
|
160
|
+
var [index, output] = _step.value,
|
161
|
+
_vxrnOutput_buildArgs,
|
162
|
+
_foundRoute_layouts,
|
163
|
+
_exported_generateStaticParams;
|
164
|
+
if (output.type === "asset") return assets.push(output), "continue";
|
165
|
+
var id = output.facadeModuleId || "",
|
166
|
+
file = Path.basename(id);
|
167
|
+
if (!id || file[0] === "_" || file.includes("entry-server") || id.includes("+api") || !id.includes("/app/")) return "continue";
|
168
|
+
var relativeId = relative(process.cwd(), id).replace("app/", "/"),
|
169
|
+
onlyBuild = (_vxrnOutput_buildArgs = vxrnOutput.buildArgs) === null || _vxrnOutput_buildArgs === void 0 ? void 0 : _vxrnOutput_buildArgs.only;
|
170
|
+
if (onlyBuild && !MicroMatch.contains(relativeId, onlyBuild)) return "continue";
|
171
|
+
var clientManifestKey = Object.keys(vxrnOutput.clientManifest).find(function (key) {
|
172
|
+
return id.endsWith(key);
|
173
|
+
}) || "";
|
174
|
+
if (!clientManifestKey) return "continue";
|
175
|
+
var clientManifestEntry = vxrnOutput.clientManifest[clientManifestKey],
|
176
|
+
findMatchingRoute = function (route) {
|
177
|
+
return route.file && clientManifestKey.endsWith(route.file.slice(1));
|
178
|
+
},
|
179
|
+
foundRoute = manifest.pageRoutes.find(findMatchingRoute);
|
180
|
+
if (!foundRoute) return clientManifestKey.startsWith("app") && (console.error(" No html route found!", {
|
181
|
+
id,
|
182
|
+
clientManifestKey
|
183
|
+
}), console.error(" In manifest", manifest), process.exit(1)), "continue";
|
184
|
+
function collectImports(param) {
|
185
|
+
var {
|
186
|
+
imports = [],
|
187
|
+
css
|
188
|
+
} = param,
|
189
|
+
{
|
190
|
+
type = "js"
|
191
|
+
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
192
|
+
return [...new Set([...(type === "js" ? imports : css || []), ...imports.flatMap(function (name) {
|
193
|
+
var found = vxrnOutput.clientManifest[name];
|
194
|
+
return found || console.warn("No found imports", name, vxrnOutput.clientManifest), collectImports(found, {
|
195
|
+
type
|
196
|
+
});
|
197
|
+
})].flat().filter(function (x) {
|
198
|
+
return x && (type === "css" || x.endsWith(".js"));
|
199
|
+
}).map(function (x) {
|
200
|
+
return type === "css" || x.startsWith("assets/") ? x : `assets/${x.slice(1)}`;
|
201
|
+
}))];
|
202
|
+
}
|
203
|
+
clientManifestEntry || console.warn(`No client manifest entry found: ${clientManifestKey} in manifest ${JSON.stringify(vxrnOutput.clientManifest, null, 2)}`);
|
204
|
+
var entryImports = collectImports(clientManifestEntry || {}),
|
205
|
+
_foundRoute_layouts_flatMap,
|
206
|
+
layoutEntries = (_foundRoute_layouts_flatMap = (_foundRoute_layouts = foundRoute.layouts) === null || _foundRoute_layouts === void 0 ? void 0 : _foundRoute_layouts.flatMap(function (layout) {
|
207
|
+
var clientKey = `app${layout.contextKey.slice(1)}`;
|
208
|
+
return vxrnOutput.clientManifest[clientKey];
|
209
|
+
})) !== null && _foundRoute_layouts_flatMap !== void 0 ? _foundRoute_layouts_flatMap : [],
|
210
|
+
layoutImports = layoutEntries.flatMap(function (entry) {
|
211
|
+
return [entry.file, ...collectImports(entry)];
|
212
|
+
}),
|
213
|
+
preloadSetupFilePreloads = function () {
|
214
|
+
if (userOptions.setupFile) {
|
215
|
+
var needle = userOptions.setupFile.replace(/^\.\//, "");
|
216
|
+
for (var file2 in vxrnOutput.clientManifest) if (file2 === needle) {
|
217
|
+
var entry = vxrnOutput.clientManifest[file2];
|
218
|
+
return [entry.file];
|
219
|
+
}
|
220
|
+
}
|
221
|
+
return [];
|
222
|
+
}(),
|
223
|
+
preloads = [... /* @__PURE__ */new Set([...preloadSetupFilePreloads,
|
224
|
+
// add the route entry js (like ./app/index.ts)
|
225
|
+
clientManifestEntry.file,
|
226
|
+
// add the virtual entry
|
227
|
+
vxrnOutput.clientManifest["virtual:one-entry"].file, ...entryImports, ...layoutImports])].map(function (path2) {
|
228
|
+
return `/${path2}`;
|
229
|
+
}),
|
230
|
+
allEntries = [clientManifestEntry, ...layoutEntries],
|
231
|
+
allCSS = allEntries.flatMap(function (entry) {
|
232
|
+
return collectImports(entry, {
|
233
|
+
type: "css"
|
234
|
+
});
|
235
|
+
}).map(function (path2) {
|
236
|
+
return `/${path2}`;
|
237
|
+
});
|
238
|
+
process.env.DEBUG && console.info("[one] building routes", {
|
239
|
+
foundRoute,
|
240
|
+
layoutEntries,
|
241
|
+
allEntries,
|
242
|
+
allCSS
|
243
|
+
});
|
244
|
+
var serverJsPath = toAbsolute(join("dist/server", output.fileName)),
|
245
|
+
exported = void 0;
|
246
|
+
try {
|
247
|
+
exported = await import(serverJsPath);
|
248
|
+
} catch (err) {
|
249
|
+
throw console.error("Error importing page (original error)", err), new Error(`Error importing page: ${serverJsPath}`, {
|
250
|
+
cause: err
|
251
|
+
});
|
252
|
+
}
|
253
|
+
if (foundRoute.type !== "ssr" && !foundRoute.page.includes("+not-found") && !foundRoute.page.includes("_sitemap") && !exported.generateStaticParams && relativeId.includes("[")) throw new Error(`[one] Error: Missing generateStaticParams
|
254
|
+
|
255
|
+
Route ${foundRoute.page} of type ${foundRoute.type} must export generateStaticParams so build can complete.
|
256
|
+
|
257
|
+
See docs on generateStaticParams:
|
258
|
+
https://onestack.dev/docs/routing-exports#generatestaticparams
|
259
|
+
|
260
|
+
`);
|
261
|
+
var _ref,
|
262
|
+
paramsList = (_ref = await ((_exported_generateStaticParams = exported.generateStaticParams) === null || _exported_generateStaticParams === void 0 ? void 0 : _exported_generateStaticParams.call(exported))) !== null && _ref !== void 0 ? _ref : [{}];
|
263
|
+
console.info(`
|
264
|
+
[build] page ${relativeId} (with ${paramsList.length} routes)
|
265
|
+
`), process.env.DEBUG && console.info("paramsList", JSON.stringify(paramsList, null, 2));
|
266
|
+
var _iteratorNormalCompletion2 = !0,
|
267
|
+
_didIteratorError2 = !1,
|
268
|
+
_iteratorError2 = void 0;
|
269
|
+
try {
|
270
|
+
for (var _iterator2 = paramsList[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
271
|
+
var params = _step1.value,
|
272
|
+
cleanId = relativeId.replace(/\+(spa|ssg|ssr)\.tsx?$/, ""),
|
273
|
+
path = getPathnameFromFilePath(cleanId, params, foundRoute.type === "ssg"),
|
274
|
+
htmlPath = `${path.endsWith("/") ? `${removeTrailingSlash(path)}/index` : path}.html`,
|
275
|
+
clientJsPath = join("dist/client", clientManifestEntry.file),
|
276
|
+
htmlOutPath = toAbsolute(join(staticDir, htmlPath)),
|
277
|
+
loaderData = {};
|
278
|
+
try {
|
279
|
+
console.info(` \u21A6 route ${path}`);
|
280
|
+
var cleanPath = path === "/" ? path : removeTrailingSlash(path);
|
281
|
+
if (builtRoutes.push({
|
282
|
+
type: foundRoute.type,
|
283
|
+
cleanPath,
|
284
|
+
clientJsPath,
|
285
|
+
serverJsPath,
|
286
|
+
htmlPath,
|
287
|
+
loaderData,
|
288
|
+
params,
|
289
|
+
path,
|
290
|
+
preloads
|
291
|
+
}), foundRoute.type !== "ssr") {
|
292
|
+
var _globalThis___vxrnresetState,
|
293
|
+
_globalThis,
|
294
|
+
loaderProps = {
|
295
|
+
path,
|
296
|
+
params
|
297
|
+
};
|
298
|
+
if (globalThis.__vxrnLoaderProps__ = loaderProps, (_globalThis___vxrnresetState = (_globalThis = globalThis).__vxrnresetState) === null || _globalThis___vxrnresetState === void 0 || _globalThis___vxrnresetState.call(_globalThis), exported.loader) {
|
299
|
+
var _exported_loader, _ref1;
|
300
|
+
loaderData = (_ref1 = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, {
|
301
|
+
path,
|
302
|
+
params
|
303
|
+
}))) !== null && _ref1 !== void 0 ? _ref1 : null;
|
304
|
+
var code = await readFile(clientJsPath, "utf-8"),
|
305
|
+
withLoader = replaceLoader({
|
306
|
+
code,
|
307
|
+
loaderData
|
308
|
+
}),
|
309
|
+
loaderPartialPath = join(staticDir, "assets", path.slice(1).replaceAll("/", "_").replace(/_$/, "") + "_vxrn_loader.js");
|
310
|
+
await outputFile(loaderPartialPath, withLoader);
|
311
|
+
}
|
312
|
+
if (foundRoute.type === "ssg") {
|
313
|
+
var html = await render({
|
314
|
+
path,
|
315
|
+
preloads,
|
316
|
+
loaderProps,
|
317
|
+
loaderData,
|
318
|
+
css: allCSS
|
319
|
+
});
|
320
|
+
await outputFile(htmlOutPath, html);
|
321
|
+
continue;
|
322
|
+
}
|
323
|
+
foundRoute.type === "spa" && (await outputFile(htmlOutPath, `<html><head>
|
324
|
+
<script>globalThis['global'] = globalThis</script>
|
325
|
+
<script>globalThis['__vxrnIsSPA'] = true</script>
|
326
|
+
${preloads.map(function (preload) {
|
327
|
+
return ` <script type="module" src="${preload}"></script>`;
|
328
|
+
}).join(`
|
329
|
+
`)}
|
330
|
+
${allCSS.map(function (file2) {
|
331
|
+
return ` <link rel="stylesheet" href=${file2} />`;
|
332
|
+
}).join(`
|
333
|
+
`)}
|
334
|
+
</head></html>`));
|
335
|
+
}
|
336
|
+
} catch (err) {
|
337
|
+
var errMsg = err instanceof Error ? `${err.message}
|
338
|
+
${err.stack}` : `${err}`;
|
339
|
+
console.error(`Error building static page at ${path} with id ${relativeId}:
|
340
|
+
|
341
|
+
${errMsg}
|
342
|
+
|
343
|
+
loaderData:
|
344
|
+
|
345
|
+
${JSON.stringify(loaderData || null, null, 2)}
|
346
|
+
params:
|
347
|
+
|
348
|
+
${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1);
|
349
|
+
}
|
350
|
+
}
|
351
|
+
} catch (err) {
|
352
|
+
_didIteratorError2 = !0, _iteratorError2 = err;
|
353
|
+
} finally {
|
354
|
+
try {
|
355
|
+
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
356
|
+
} finally {
|
357
|
+
if (_didIteratorError2) throw _iteratorError2;
|
358
|
+
}
|
359
|
+
}
|
360
|
+
}, _iterator = outputEntries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) await _loop();
|
361
|
+
} catch (err) {
|
362
|
+
_didIteratorError = !0, _iteratorError = err;
|
363
|
+
} finally {
|
364
|
+
try {
|
365
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
366
|
+
} finally {
|
367
|
+
if (_didIteratorError) throw _iteratorError;
|
368
|
+
}
|
369
|
+
}
|
370
|
+
await moveAllFiles(staticDir, clientDir), await FSExtra.rm(staticDir, {
|
371
|
+
force: !0,
|
372
|
+
recursive: !0
|
373
|
+
});
|
374
|
+
var routeMap = builtRoutes.reduce(function (acc, param) {
|
375
|
+
var {
|
376
|
+
cleanPath,
|
377
|
+
htmlPath
|
378
|
+
} = param;
|
379
|
+
return acc[cleanPath] = htmlPath, acc;
|
380
|
+
}, {}),
|
381
|
+
buildInfoForWriting = {
|
382
|
+
routeMap,
|
383
|
+
builtRoutes
|
384
|
+
},
|
385
|
+
buildInfo = {
|
386
|
+
...buildInfoForWriting,
|
387
|
+
...vxrnOutput
|
388
|
+
};
|
389
|
+
await FSExtra.writeJSON(toAbsolute("dist/buildInfo.json"), buildInfoForWriting);
|
390
|
+
var postBuildLogs = [],
|
391
|
+
_userOptions_web_deploy,
|
392
|
+
platform = (_userOptions_web_deploy = (_userOptions_web = userOptions.web) === null || _userOptions_web === void 0 ? void 0 : _userOptions_web.deploy) !== null && _userOptions_web_deploy !== void 0 ? _userOptions_web_deploy : (_options_server = options.server) === null || _options_server === void 0 ? void 0 : _options_server.platform;
|
393
|
+
if (platform === "vercel" && (await FSExtra.writeFile(join(options.root, "dist", "index.js"), `import { serve } from 'one/serve'
|
394
|
+
const handler = await serve()
|
395
|
+
export const { GET, POST, PUT, PATCH, OPTIONS } = handler`), postBuildLogs.push(`wrote vercel entry to: ${join(".", "dist", "index.js")}`), postBuildLogs.push("point vercel outputDirectory to dist")), userOptions?.afterBuild) {
|
396
|
+
var _userOptions_afterBuild;
|
397
|
+
await (userOptions == null || (_userOptions_afterBuild = userOptions.afterBuild) === null || _userOptions_afterBuild === void 0 ? void 0 : _userOptions_afterBuild.call(userOptions, buildInfo));
|
398
|
+
}
|
399
|
+
process.env.VXRN_ANALYZE_BUNDLE && postBuildLogs.push(`client build report: ${toAbsolute("dist/report.html")}`), postBuildLogs.length && (console.info(`
|
400
|
+
|
401
|
+
`), postBuildLogs.forEach(function (log) {
|
402
|
+
console.info(` \xB7 ${log}`);
|
403
|
+
})), console.info(`
|
404
|
+
|
405
|
+
\u{1F49B} build complete
|
406
|
+
|
407
|
+
`);
|
408
|
+
}
|
409
|
+
function removeTrailingSlash(path) {
|
410
|
+
return path.endsWith("/") ? path.slice(0, path.length - 1) : path;
|
411
|
+
}
|
412
|
+
async function moveAllFiles(src, dest) {
|
413
|
+
try {
|
414
|
+
await FSExtra.copy(src, dest, {
|
415
|
+
overwrite: !0,
|
416
|
+
errorOnExist: !1
|
417
|
+
});
|
418
|
+
} catch (err) {
|
419
|
+
console.error("Error moving files:", err);
|
420
|
+
}
|
421
|
+
}
|
422
|
+
function getPathnameFromFilePath(path) {
|
423
|
+
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
424
|
+
strict = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1,
|
425
|
+
dirname = Path.dirname(path).replace(/\([^\/]+\)/gi, ""),
|
426
|
+
file = Path.basename(path),
|
427
|
+
fileName = file.replace(/\.[a-z]+$/, ""),
|
428
|
+
nameWithParams = function () {
|
429
|
+
if (fileName === "index") return "/";
|
430
|
+
if (fileName.startsWith("[...")) {
|
431
|
+
var part = fileName.replace("[...", "").replace("]", "");
|
432
|
+
return params[part] || console.warn(`couldn't resolve ${fileName} segment in path ${path}`), `/${params[part]}`;
|
433
|
+
}
|
434
|
+
return `/${fileName.split("/").map(function (part2) {
|
435
|
+
if (part2[0] === "[") {
|
436
|
+
var found = params[part2.slice(1, part2.length - 1)];
|
437
|
+
if (!found) {
|
438
|
+
if (strict) throw new Error(`[one] Params doesn't fit route:
|
439
|
+
|
440
|
+
- path: ${path}
|
441
|
+
- part: ${part2}
|
442
|
+
- fileName: ${fileName}
|
443
|
+
- params:
|
444
|
+
|
445
|
+
${JSON.stringify(params, null, 2)}`);
|
446
|
+
return ":" + part2.replace("[", "").replace("]", "");
|
447
|
+
}
|
448
|
+
return found;
|
449
|
+
}
|
450
|
+
return part2;
|
451
|
+
}).join("/")}`;
|
452
|
+
}();
|
453
|
+
return `${dirname}${nameWithParams}`.replace(/\/\/+/gi, "/");
|
454
|
+
}
|
455
|
+
function escapeRegex(string) {
|
456
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
457
|
+
}
|
458
|
+
function buildRegexExcludingDeps(deps) {
|
459
|
+
var sanitizedDeps = deps.map(function (dep) {
|
460
|
+
return escapeRegex(dep);
|
461
|
+
}),
|
462
|
+
exclusionPattern = sanitizedDeps.join("|"),
|
463
|
+
regexPattern = `node_modules/(?!(${exclusionPattern})).*`;
|
464
|
+
return new RegExp(regexPattern);
|
465
|
+
}
|
466
|
+
export { build };
|
467
|
+
//# sourceMappingURL=build.native.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","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","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","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","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","filter","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","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","replaceAll","html","preload","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc","buildInfoForWriting"],"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,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAG3F,SAASC,WAAA,QAAmB;AAC5B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RjC,kBAAA,QAAAC,eAAA;UAAA;QAEc;MACA,GAAAiC,SAAA,GAAAzG,aACA,CAAA0E,MAAQ,CAAAC,QAAA,KAAApE,KAAA,IAAAL,yBAAA,IAAAK,KAAA,GAAAkG,SAAA,CAAA5B,IAAA,IAAAC,IAAA,GAAA5E,yBAAA,aAAAG,KAAA;EAAA,SAAAhH,GAAA;IAAA8G,iBAAA,OAAAC,cAAA,GAAA/G,GAAA;EAAA,UAG7B;IAA0B;MAIvB,CAAA6G,yBAAkB,IAAQuG,SAAS,CAAAD,MAAA,IAAQ,IAAO,IAAAC,SAAA,CAAAD,MAAA;IAAA,UACpD;MACA,IAAArG,iBAAO,EACT,MAAAC,cAAA;IACA;EAAO;EAGb,MAAGsG,YAAA,CAAA5G,SAAA,EAAAC,SAAA,SAAA/H,OAAA,CAAA2O,EAAA,CAAA7G,SAAA;IAEH8G,KAAO,GAAG;IACZC,SAAA;EAEA;EACE,IAAAC,QAAO,GAAOzH,WAAQ,CAAA9C,MAAA,WAAAwK,GAAuB,EAAAjL,KAAM;MACrD;QAAA0J,SAAA;QAAAL;MAAA,IAAArJ,KAAA;MAEA,OAASiL,GAAA,CAAAvB,SAAA,IAAAL,QAAwB,EAAA4B,GAAgB;IAM/C,MAAM;IAAAC,mBAAe;MACrBF,QAAO;MACTzH","ignoreList":[]}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import BabelGenerate from "@babel/generator";
|
2
|
+
import { parse } from "@babel/parser";
|
3
|
+
import BabelTraverse from "@babel/traverse";
|
4
|
+
import { deadCodeElimination, findReferencedIdentifiers } from "babel-dead-code-elimination";
|
5
|
+
import { EMPTY_LOADER_STRING } from "./constants";
|
6
|
+
const traverse = BabelTraverse.default, generate = BabelGenerate.default, clientTreeShakePlugin = () => ({
|
7
|
+
name: "vxrn:client-tree-shake",
|
8
|
+
enforce: "pre",
|
9
|
+
applyToEnvironment(env) {
|
10
|
+
return env.name === "client" || env.name === "ios" || env.name === "android";
|
11
|
+
},
|
12
|
+
async transform(code, id, settings) {
|
13
|
+
if (this.environment.name !== "ssr")
|
14
|
+
return await transformTreeShakeClient(code, id);
|
15
|
+
}
|
16
|
+
});
|
17
|
+
async function transformTreeShakeClient(code, id) {
|
18
|
+
if (id.includes("node_modules") || !/generateStaticParams|loader/.test(code))
|
19
|
+
return;
|
20
|
+
const ast = parse(code, { sourceType: "module", plugins: ["typescript", "jsx"] }), referenced = findReferencedIdentifiers(ast), removed = {
|
21
|
+
loader: !1,
|
22
|
+
generateStaticParams: !1
|
23
|
+
};
|
24
|
+
traverse(ast, {
|
25
|
+
ExportNamedDeclaration(path) {
|
26
|
+
if (path.node.declaration && path.node.declaration.type === "FunctionDeclaration") {
|
27
|
+
if (!path.node.declaration.id) return;
|
28
|
+
const functionName = path.node.declaration.id.name;
|
29
|
+
(functionName === "loader" || functionName === "generateStaticParams") && (path.remove(), removed[functionName] = !0);
|
30
|
+
} else path.node.declaration && path.node.declaration.type === "VariableDeclaration" && path.node.declaration.declarations.forEach((declarator, index) => {
|
31
|
+
if (declarator.id.type === "Identifier" && (declarator.id.name === "loader" || declarator.id.name === "generateStaticParams")) {
|
32
|
+
const declaration = path.get("declaration.declarations." + index);
|
33
|
+
Array.isArray(declaration) || (declaration.remove(), removed[declarator.id.name] = !0);
|
34
|
+
}
|
35
|
+
});
|
36
|
+
}
|
37
|
+
});
|
38
|
+
const removedFunctions = Object.keys(removed).filter((key) => removed[key]);
|
39
|
+
if (removedFunctions.length) {
|
40
|
+
deadCodeElimination(ast, referenced);
|
41
|
+
const out = generate(ast);
|
42
|
+
return {
|
43
|
+
code: out.code + `
|
44
|
+
|
45
|
+
` + // TODO ideally put it back in same place as it was
|
46
|
+
removedFunctions.map((key) => key === "loader" ? EMPTY_LOADER_STRING : "export function generateStaticParams() {};").join(`
|
47
|
+
`),
|
48
|
+
map: out.map
|
49
|
+
};
|
50
|
+
}
|
51
|
+
}
|
52
|
+
export {
|
53
|
+
clientTreeShakePlugin,
|
54
|
+
transformTreeSh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SAAS,yBACjE,KAAK,KAAK,YAAY,aAAa,QAAQ,CAAC,YAAY,UAAU;AAChE,YACE,WAAW,GAAG,SAAS,iBACtB,WAAW,GAAG,SAAS,YAAY,WAAW,GAAG,SAAS,yBAC3D;AACA,gBAAM,cAAc,KAAK,IAAI,8BAA8B,KAAK;AAChE,UAAK,MAAM,QAAQ,WAAW,MAC5B,YAAY,OAAO,GACnB,QAAQ,WAAW,GAAG,IAAI,IAAI;AAAA,QAElC;AAAA,MACF,CAAC;AAAA,IAEL;AAAA,EACF,CAAC;AAED,QAAM,mBAAmB,OAAO,KAAK,OAAO,EAAE,OAAO,CAAC,QAAQ,QAAQ,GAAG,CAAC;AAE1E,MAAI,iBAAiB,QAAQ;AAC3B,wBAAoB,KAAK,UAAU;AAEnC,UAAM,MAAM,SAAS,GAAG;AAiBxB,WAAO;AAAA,MACL,MAdA,IAAI,OACJ;AAAA;AAAA;AAAA,MAEA,iBACG,IAAI,CAAC,QACA,QAAQ,WACH,sBAGF,4CACR,EACA,KAAK;AAAA,CAAI;AAAA,MAIZ,KAAK,IAAI;AAAA,IACX;AAAA,EACF;AACF;",
|
5
|
+
"names": []
|
6
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import BabelGenerate from "@babel/generator";
|
2
|
+
import { parse } from "@babel/parser";
|
3
|
+
import BabelTraverse from "@babel/traverse";
|
4
|
+
import { deadCodeElimination, findReferencedIdentifiers } from "babel-dead-code-elimination";
|
5
|
+
import { EMPTY_LOADER_STRING } from "./constants.mjs";
|
6
|
+
const traverse = BabelTraverse.default,
|
7
|
+
generate = BabelGenerate.default,
|
8
|
+
clientTreeShakePlugin = () => ({
|
9
|
+
name: "vxrn:client-tree-shake",
|
10
|
+
enforce: "pre",
|
11
|
+
applyToEnvironment(env) {
|
12
|
+
return env.name === "client" || env.name === "ios" || env.name === "android";
|
13
|
+
},
|
14
|
+
async transform(code, id, settings) {
|
15
|
+
if (this.environment.name !== "ssr") return await transformTreeShakeClient(code, id);
|
16
|
+
}
|
17
|
+
});
|
18
|
+
async function transformTreeShakeClient(code, id) {
|
19
|
+
if (id.includes("node_modules") || !/generateStaticParams|loader/.test(code)) return;
|
20
|
+
const ast = parse(code, {
|
21
|
+
sourceType: "module",
|
22
|
+
plugins: ["typescript", "jsx"]
|
23
|
+
}),
|
24
|
+
referenced = findReferencedIdentifiers(ast),
|
25
|
+
removed = {
|
26
|
+
loader: !1,
|
27
|
+
generateStaticParams: !1
|
28
|
+
};
|
29
|
+
traverse(ast, {
|
30
|
+
ExportNamedDeclaration(path) {
|
31
|
+
if (path.node.declaration && path.node.declaration.type === "FunctionDeclaration") {
|
32
|
+
if (!path.node.declaration.id) return;
|
33
|
+
const functionName = path.node.declaration.id.name;
|
34
|
+
(functionName === "loader" || functionName === "generateStaticParams") && (path.remove(), removed[functionName] = !0);
|
35
|
+
} else path.node.declaration && path.node.declaration.type === "VariableDeclaration" && path.node.declaration.declarations.forEach((declarator, index) => {
|
36
|
+
if (declarator.id.type === "Identifier" && (declarator.id.name === "loader" || declarator.id.name === "generateStaticParams")) {
|
37
|
+
const declaration = path.get("declaration.declarations." + index);
|
38
|
+
Array.isArray(declaration) || (declaration.remove(), removed[declarator.id.name] = !0);
|
39
|
+
}
|
40
|
+
});
|
41
|
+
}
|
42
|
+
});
|
43
|
+
const removedFunctions = Object.keys(removed).filter(key => removed[key]);
|
44
|
+
if (removedFunctions.length) {
|
45
|
+
deadCodeElimination(ast, referenced);
|
46
|
+
const out = generate(ast);
|
47
|
+
return {
|
48
|
+
code: out.code + `
|
49
|
+
|
50
|
+
` +
|
51
|
+
// TODO ideally put it back in same place as it was
|
52
|
+
removedFunctions.map(key => key === "loader" ? EMPTY_LOADER_STRING : "export function generateStaticParams() {};").join(`
|
53
|
+
`),
|
54
|
+
map: out.map
|
55
|
+
};
|
56
|
+
}
|
57
|
+
}
|
58
|
+
export { clientTreeShakePlugin, transformTreeShakeClient };
|
59
|
+
//# sourceMappingURL=clientTreeShakePlugin.mjs.map
|
@@ -0,0 +1 @@
|
|
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","map","join"],"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,MAAMC,QAAA,GAAWJ,aAAA,CAAcK,OAAA;EACzBC,QAAA,GAAWR,aAAA,CAAcO,OAAA;EAElBE,qBAAA,GAAwBA,CAAA,MAC5B;IACLC,IAAA,EAAM;IAENC,OAAA,EAAS;IAETC,mBAAmBC,GAAA,EAAK;MACtB,OAAOA,GAAA,CAAIH,IAAA,KAAS,YAAYG,GAAA,CAAIH,IAAA,KAAS,SAASG,GAAA,CAAIH,IAAA,KAAS;IACrE;IAEA,MAAMI,UAAUC,IAAA,EAAMC,EAAA,EAAIC,QAAA,EAAU;MAClC,IAAI,KAAKC,WAAA,CAAYR,IAAA,KAAS,OAG9B,OAAO,MAAMS,wBAAA,CAAyBJ,IAAA,EAAMC,EAAE;IAChD;EACF;AAGF,eAAsBG,yBAAyBJ,IAAA,EAAcC,EAAA,EAAY;EAGvE,IAFIA,EAAA,CAAGI,QAAA,CAAS,cAAc,KAE1B,CAAC,8BAA8BC,IAAA,CAAKN,IAAI,GAC1C;EAGF,MAAMO,GAAA,GAAMrB,KAAA,CAAMc,IAAA,EAAM;MAAEQ,UAAA,EAAY;MAAUC,OAAA,EAAS,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