blob: d50c9751d51fd7601f5eeb14d530382dceaf2165 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [svelte()],
resolve: {
alias: {
$lib: fileURLToPath(new URL('./src/lib', import.meta.url)),
},
},
server: {
port: 5173,
proxy: {
// Forward the game WebSocket to the Dart server in development.
'/ws': {
target: 'ws://localhost:4567',
ws: true,
},
},
},
test: {
include: ['test/**/*.test.ts'],
},
});
|