aboutsummaryrefslogtreecommitdiffstats
path: root/code/frontend/vite.config.ts
blob: bc25f5c031628c91c96fc510331b3a8eb5aca64d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { defineConfig } from "vitest/config";
import { sveltekit } from "@sveltejs/kit/vite";
import { SvelteKitPWA } from "@vite-pwa/sveltekit";

export default defineConfig({
    plugins: [sveltekit(), SvelteKitPWA()],
    build: {
        target: "es2020",
    },
    test: {
        include: ["src/**/*.{test,spec}.{js,ts}"]
    },
    optimizeDeps: {
        esbuildOptions: {
            target: "es2020",
        },
    },
});