From b7ebf90c969144a4a4ec963ca3cfb8b3f657c2f3 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Mon, 9 Nov 2026 08:09:51 +0000 Subject: [PATCH] fix: ignore Visual Studio files in Vite watcher --- .gitignore | 1 + vite.config.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 80d6da4..e6aff69 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules dist +.vs .DS_Store src/*.js vite.config.js diff --git a/vite.config.ts b/vite.config.ts index 2d575c4..956c305 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,4 +1,13 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' -export default defineConfig({ plugins: [vue()] }) +export default defineConfig({ + plugins: [vue()], + server: { + // Visual Studio creates and locks index files under .vs while editing. + // They are unrelated to the app and must not be watched by Vite on Windows. + watch: { + ignored: ['**/.vs/**', '**/.git/**'], + }, + }, +})