Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d878c7e
Init upgrade
AlexanderKaran Nov 4, 2025
15dfb63
Fixed query core
AlexanderKaran Nov 4, 2025
d09cc95
Fixed persist tests
AlexanderKaran Nov 8, 2025
d926606
Fixed coverage
AlexanderKaran Nov 8, 2025
f086b6d
Merge branch 'main' into vitest-v4
AlexanderKaran Nov 8, 2025
fd0e0e7
Fixed React
AlexanderKaran Nov 8, 2025
9947e8b
Fixed Solid Query Devtools and Sold Query
AlexanderKaran Nov 9, 2025
88866d8
Svelte query fix
AlexanderKaran Nov 9, 2025
7ec3458
Fixed Vue
AlexanderKaran Nov 9, 2025
dacd333
Angular done
AlexanderKaran Nov 9, 2025
1efa68d
Fixed React
AlexanderKaran Nov 11, 2025
aeefc4c
Merge branch 'main' into vitest-v4
AlexanderKaran Nov 11, 2025
91591aa
Merge branch 'main' into vitest-v4-merge
AlexanderKaran Dec 16, 2025
ef010b8
Merge files
AlexanderKaran Dec 16, 2025
ab4c572
Knip fix
AlexanderKaran Dec 16, 2025
894d111
Fixed order
AlexanderKaran Dec 16, 2025
43372ab
Angular Eslint
AlexanderKaran Dec 17, 2025
7000d41
Query Core Eslint
AlexanderKaran Dec 17, 2025
ed0ad73
Fixed Vue Eslint issue
AlexanderKaran Dec 17, 2025
69ff823
Removed fallback
AlexanderKaran Dec 17, 2025
b691135
Merge branch 'main' into vitest-v4
TkDodo Dec 27, 2025
0d3aaef
Merge branch 'main' into vitest-v4
TkDodo Dec 27, 2025
0f0413d
chore: update lockfile
TkDodo Dec 27, 2025
b748a95
ci: apply automated fixes
autofix-ci[bot] Dec 27, 2025
fe6e2be
Merge branch 'main' into pr/9862
TkDodo Jan 16, 2026
6818607
fix: esbuild resolving
TkDodo Jan 16, 2026
71dfd88
fix: no idea
TkDodo Jan 16, 2026
f013619
chore: bump vitest
TkDodo Jan 16, 2026
8ab8f92
Merge branch 'main' into vitest-v4
TkDodo Jan 16, 2026
b565b7f
Pipeline Fix
AlexanderKaran Jan 18, 2026
f3bb2e4
Merge branch 'main' into vitest-v4
TkDodo Jan 18, 2026
9966a6f
ci: apply automated fixes
autofix-ci[bot] Jan 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export default [
{
files: ['**/*.spec.ts*', '**/*.test.ts*', '**/*.test-d.ts*'],
plugins: { vitest },
rules: vitest.configs.recommended.rules,
rules: {
...vitest.configs.recommended.rules,
'vitest/no-standalone-expect': [
'error',
{
additionalTestBlockFunctions: ['testIf'],
},
],
},
settings: { vitest: { typecheck: true } },
},
]
2 changes: 1 addition & 1 deletion examples/react/algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
1 change: 1 addition & 0 deletions examples/react/auto-refetching/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/auto-refetching/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"target": "ES2017"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
},
"nx": {
"targets": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@vitejs/plugin-react": "^4.3.4",
"tailwindcss": "^4.0.14",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/devtools-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/eslint-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
},
"nx": {
"targets": {
Expand Down
1 change: 1 addition & 0 deletions examples/react/infinite-query-with-max-pages/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/infinite-query-with-max-pages/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"target": "ES2017"
},
Expand Down
1 change: 1 addition & 0 deletions examples/react/load-more-infinite-scroll/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/load-more-infinite-scroll/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"target": "ES2017"
},
Expand Down
5 changes: 3 additions & 2 deletions examples/react/nextjs-app-prefetching/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
Expand All @@ -28,7 +28,8 @@
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".eslintrc.cjs"
".eslintrc.cjs",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion examples/react/nextjs-suspense-streaming/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/react/nextjs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"target": "ES2017"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/offline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
},
"msw": {
"workerDirectory": [
Expand Down
1 change: 1 addition & 0 deletions examples/react/optimistic-updates-cache/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/optimistic-updates-cache/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"strict": true,
"esModuleInterop": true,
"lib": ["DOM", "ES2015"],
"jsx": "preserve",
"jsx": "react-jsx",
"target": "ES5",
"allowJs": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions examples/react/optimistic-updates-ui/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/optimistic-updates-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"strict": true,
"esModuleInterop": true,
"lib": ["dom", "es2015"],
"jsx": "preserve",
"jsx": "react-jsx",
"target": "ES5",
"allowJs": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions examples/react/pagination/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/pagination/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"target": "ES2017"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
1 change: 1 addition & 0 deletions examples/react/prefetching/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts'

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion examples/react/prefetching/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"target": "ES2017"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"@types/sort-by": "^1.2.3",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/rick-morty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@vitejs/plugin-react": "^4.3.4",
"tailwindcss": "^4.1.13",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/shadow-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
Comment on lines 17 to +19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n examples/react/simple/package.json

Repository: TanStack/query

Length of output: 172


🌐 Web query:

Vite 6.4.1 release notes breaking changes

💡 Result:

Short answer: Vite 6.4.1 is a patch release with bug fixes — there are no listed breaking changes for v6.4.1. Notable fixes include preview: use host URL to open browser, HMR handler sequencing, addWatchFile/base fix, and a pluginFilter refactor. [1][2]

Sources:

  • Release/PR summary listing v6.4.1 commits and fixes. [1]
  • Vite v6 migration / changelog guidance noting Vite 6 aims to avoid breaking changes; breaking changes are tracked on the Breaking Changes page. [2]

🌐 Web query:

@vitejs/plugin-react 4.3.4 Vite 6 compatibility

💡 Result:

Short answer: 4.3.4 is not the recommended release for Vite 6 — upgrade to @vitejs/plugin-react v5+ for full Vite 6 / rolldown + Oxc support.

Why: @vitejs/plugin-react v4.3.4 was released in Nov 2024 and predates Vite 6. Vite 6 introduces the rolldown/Oxc architecture, and the plugin’s v5+ line incorporates Oxc-based React refresh and related changes to target that new runtime; using v4.x may work via the compatibility layer but isn’t the intended/optimal combination. Recommend upgrading to @vitejs/plugin-react v5+ when moving to Vite 6. [1][2][3]

Sources:

  • @vitejs/plugin-react releases (4.3.4 date). [1]
  • Vite 6 announcement. [2]
  • Rolldown / Oxc notes: @vitejs/plugin-react v5.0.0+ uses Oxc (migration/compatibility details). [3]

🌐 Web query:

Vitest v4 Vite version requirements

💡 Result:

Short answer: Vitest v4 expects Vite 6+ (official compatibility targets Vite 6 and Vite 7). Some @vitest packages also list broader peer ranges in practice (e.g. ^5 || ^6 || ^7), but the documented Vitest v4 package targets Vite 6/7. [1][2]

Sources:

  • Vitest migration / docs (v4 changes & Module Runner — Vitest v4 documentation). [1]
  • Example package metadata showing Vite peer ranges used by @vitest packages (peer: ^5.0.0 || ^6.0.0 || ^7.0.0-0). [2]

Upgrade @vitejs/plugin-react to v5+ for Vite 6.4.1 compatibility.
@vitejs/plugin-react v4.3.4 predates Vite 6 and is not the recommended version for this stack. Vite 6 introduces rolldown/Oxc architecture, and @vitejs/plugin-react v5+ incorporates the necessary Oxc-based changes to pair with it. While v4.3.4 may work via a compatibility layer, upgrade to v5+ for optimal support. Vitest v4 is compatible with Vite 6.

🤖 Prompt for AI Agents
In `@examples/react/simple/package.json` around lines 17 - 19, Update the
`@vitejs/plugin-react` dependency in package.json from "@vitejs/plugin-react":
"^4.3.4" to a v5+ range (for example "^5.0.0" or "^5.x") so it is compatible
with Vite 6.4.1; locate the dependency entry for "@vitejs/plugin-react" and bump
the version string, then run install and verify the dev server/tests (Vite and
Vitest) start correctly.

}
}
2 changes: 1 addition & 1 deletion examples/react/star-wars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@vitejs/plugin-react": "^4.3.4",
"tailwindcss": "^4.1.13",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/react/suspense/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/solid/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"typescript": "5.8.3",
"vite": "^6.3.6",
"vite": "^6.4.1",
"vite-plugin-solid": "^2.11.6"
}
}
2 changes: 1 addition & 1 deletion examples/solid/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"typescript": "5.8.3",
"vite": "^6.3.6",
"vite": "^6.4.1",
"vite-plugin-solid": "^2.11.6"
}
}
2 changes: 1 addition & 1 deletion examples/solid/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"typescript": "5.8.3",
"vite": "^6.3.6",
"vite": "^6.4.1",
"vite-plugin-solid": "^2.11.6"
}
}
2 changes: 1 addition & 1 deletion examples/solid/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.91.3",
"typescript": "5.8.3",
"vite": "^6.3.6",
"vite": "^6.4.1",
"vite-plugin-solid": "^2.11.6"
}
}
2 changes: 1 addition & 1 deletion examples/svelte/auto-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/svelte/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/svelte/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/svelte/optimistic-updates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/svelte/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/svelte/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
2 changes: 1 addition & 1 deletion examples/svelte/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"svelte": "^5.39.3",
"svelte-check": "^4.3.1",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Vite 6.4.1 release notes breaking changes

💡 Result:

There are no breaking changes listed for Vite v6.4.1. See the Vite Releases/Changes and the package changelog. [1][2]

Sources:
[1] Vite Releases / supported versions and changelog guidance.
[2] Vite package CHANGELOG (v6.x entries).


🌐 Web query:

Vite 6.4 SvelteKit 2.42 compatibility

💡 Result:

Short answer: Not officially—SvelteKit 2.x (including 2.42) requires/targets Vite 5 as the minimum supported Vite, while Vite 6 is a new major release that framework/plugin authors must opt in to. Vite 6 aims for backward compatibility, but SvelteKit (and @sveltejs/vite-plugin-svelte) must publish compatible peer-deps before you can rely on Vite 6.4 without issues. [1][2]

What to do:

  • For production/stability, stick with [email protected] with SvelteKit 2.42 until the SvelteKit team (or @sveltejs/vite-plugin-svelte) updates peerDependencies to explicitly support Vite 6.
  • If you want to experiment, try Vite 6.4 in a branch and run your full test/build matrix; be prepared to pin versions or revert if you hit plugin/treeshaking/runtime problems. See Vite 6 release notes and SvelteKit migration requirements for details. [1][2]

Sources:

  • Vite 6 announcement / compat notes. [1]
  • SvelteKit “migrating to SvelteKit v2” / updated dependency requirements (vite@5 minimum). [2]

🌐 Web query:

@sveltejs/vite-plugin-svelte 5.1 Vite 6.4 compatibility

💡 Result:

Short answer: Yes — @sveltejs/vite-plugin-svelte v5.1 is compatible with Vite 6. V5 explicitly adds support for Vite 6, and v5.1 includes a minor that requires Vite >= 6.2 for a CSS scoping optimization (so Vite 6.4 is fine). [1][2][3]

Sources:

  • plugin releases (v5.x / v5.1.1). [1]
  • v5 changelog notes: "Support Vite 6" and v5.1.0 requires Vite 6.2+ for the scoped-css change. [2]
  • Vite 6 announcement / release notes. [3]

Revert Vite to 5.x for SvelteKit 2.42 compatibility.

SvelteKit 2.42 targets Vite 5.x and does not officially support Vite 6. While @sveltejs/[email protected] is compatible with Vite 6.4.1, the framework itself has not updated its peer-dependencies to opt in to Vite 6. For production stability, pin vite to ^5.x until SvelteKit publishes Vite 6 support. Alternatively, test thoroughly if proceeding with Vite 6.4.1.

🤖 Prompt for AI Agents
In `@examples/svelte/ssr/package.json` at line 21, Update the vite dependency in
package.json to pin it to Vite 5 for SvelteKit 2.42 compatibility: replace the
current "vite": "^6.4.1" entry with a Vite 5.x range (e.g. "vite": "^5.x") so
the project uses a supported peer version; ensure package.json's "vite" key is
updated and run an install to lock the new version.

}
}
2 changes: 1 addition & 1 deletion examples/svelte/star-wars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"svelte-check": "^4.3.1",
"tailwindcss": "^4.1.13",
"typescript": "5.8.3",
"vite": "^6.3.6"
"vite": "^6.4.1"
}
}
Loading
Loading