fix(dev): vite stops watching what an e2e run writes

On Windows a report file being rewritten answered the watcher with EBUSY, which
took the dev server down, and each run reloaded every open page.
This commit is contained in:
2026-11-02 01:17:39 +01:00
parent 439f5cd67b
commit d09b5d6abb
+7 -1
View File
@@ -56,6 +56,12 @@ const watchEntry = (): Plugin => ({
export default defineConfig({
plugins: [reactWithCompiler(), devOnlyGuard(), chunkGuard(), watchEntry()],
server: { port: 5173, proxy },
server: {
port: 5173,
proxy,
// What an e2e run writes is no source. On Windows a file it is rewriting answers the watcher with
// EBUSY, which takes the whole dev server down; each run also reloaded every open page.
watch: { ignored: ["**/playwright-report/**", "**/test-results/**"] },
},
build: { outDir: "dist", rollupOptions: { input: ["index.html", "watch.html"] } },
});