Open History to see the last commit
1# TanStack Svelte Query Vite Integration
2β
3Checks that `@tanstack/svelte-query` and `@tanstack/svelte-query-devtools` build and type-check with Vite and Svelte 5.
4β
5## What it checks
6β
7- `src/main.ts` mounts `src/App.svelte` with `mount`, and `src/App.svelte` wraps `src/Simple.svelte` in `QueryClientProvider` together with `SvelteQueryDevtools`.
8- `src/Simple.svelte` reads a query with `createQuery` and renders its pending, error, and success states.
9- `vite.config.ts` uses the `svelte()` plugin with `vitePreprocess()`.
10- CI runs the `build` (`vite build`) and `test:types` (`svelte-check`) scripts.
11β
12To run it from the repository root:
13β
14- `pnpm nx run @tanstack/query-integration-svelte-vite:build`
15- `pnpm nx run @tanstack/query-integration-svelte-vite:test:types`