fix: avoid overridden Vite config warning with Vitest 4 (#15121)
authorCopilot <198982749+Copilot@users.noreply.github.com>
Sat, 3 Jan 2026 15:37:38 +0000 (07:37 -0800)
committerGitHub <noreply@github.com>
Sat, 3 Jan 2026 15:37:38 +0000 (07:37 -0800)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: teemingc <54401897+teemingc@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
.changeset/eager-islands-cheer.md [new file with mode: 0644]
packages/kit/src/exports/vite/index.js

diff --git a/.changeset/eager-islands-cheer.md b/.changeset/eager-islands-cheer.md
new file mode 100644 (file)
index 0000000..8a674b0
--- /dev/null
@@ -0,0 +1,5 @@
+---
+'@sveltejs/kit': patch
+---
+
+fix: avoid false-positive Vite config overridden warning when using Vitest 4
index c1b12dbd06e6536c616c64e8ac5454ed0a8f4be0..68e5e90a4243f8b48e088205f00ee706ee2cc1ad 100644 (file)
@@ -42,7 +42,7 @@ import { import_peer } from '../../utils/import.js';
 import { compact } from '../../utils/array.js';
 import { should_ignore } from './static_analysis/utils.js';
 
-const cwd = process.cwd();
+const cwd = posixify(process.cwd());
 
 /** @type {import('./types.js').EnforcedConfig} */
 const enforced_config = {