@unseal-ai/vite-tanstack-config
v0.2.0
Published
Zero-config Vite configuration for TanStack Start applications.
Readme
@unseal-ai/vite-tanstack-config
Zero-config Vite+ configuration for Unseal TanStack Start projects.
It installs Cloudflare/workerd, Tailwind, TanStack Start, React, the Unseal HMR
gate, TypeScript path resolution, React/TanStack dedupe, and .unseal-space/
artifact staging. Do not add those plugins manually.
Install
npm install -D @unseal-ai/vite-tanstack-config vite-plus vite wranglerUsage
import { defineConfig } from "@unseal-ai/vite-tanstack-config";
export default defineConfig({
vite: {
server: { host: true, port: 3000, allowedHosts: true },
},
});All ordinary Vite+ configuration belongs in vite. Options for built-in
plugins are available through cloudflare, tanstackStart, react, and
hmrGate. Cloudflare is enabled by default and runs SSR in workerd; use
cloudflare: false only for projects that do not target Workers.
During development, the HMR gate activates when HMR_GATE=1. The configuration
automatically excludes workerd state under .wrangler/. Production builds copy
.unseal-space/ to dist/.unseal-space/.
