See the Status document for the status of features.
The One Vite Plugin automates away much of the setup & boilerplate required for cross-platform React Native & web development.
Out of the box, the One Vite plugin does the following:
./app folderwatchFile for instant content updates during developmentpatches option that allows for easy node_module patching.env file into process.env before running anything using dotenvtsconfig.json if it doesn’t exist?imagedata imports for automatic image dimensions and blur placeholders.inline.css files to inline critical CSS and prioritize layout CSS before scriptsserver-only, client-only, native-only, web-only) that prevent modules from being used in the wrong build environmentweb|server|native|ios|android for extensions ts|tsx|js|mjs, eg .ios.ts, .server.tsloader() just like pagesuseMatches hook to access all matched route datauseMatch to find a specific route’s loader data by route IDusePageMatch to get the current page’s matchuseSearchParams for URLSearchParams API<Protected /> component for declarative route guardinguseBlocker hook for blocking navigation with confirmationvalidateParams and validateRouteloaderCache for deduplicating concurrent SSR loader calls with optional TTLserve command that sets up a Hono server for production with optional cluster mode for multi-core scalingredirects optiongenerateStaticParams export for SSG and SSR routesquery-string and url-parse libraries to save ~20Kb?imagedata importsEdit this page on GitHub.