Skip to content

Commit a04f1e8

Browse files
committed
chore: add usual vite config to scan deps
1 parent 1c9c628 commit a04f1e8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/e2e-tests/scan-deps/vite.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,17 @@ import { svelte } from '@sveltejs/vite-plugin-svelte';
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [svelte()]
6+
plugins: [svelte()],
7+
server: {
8+
watch: {
9+
// During tests we edit the files too fast and sometimes chokidar
10+
// misses change events, so enforce polling for consistency
11+
usePolling: true,
12+
interval: 100
13+
}
14+
},
15+
build: {
16+
minify: false,
17+
sourcemap: true // must be true for hermetic build test!
18+
}
719
});

0 commit comments

Comments
 (0)