Files
galaxy-game/ui/frontend/vite.config.ts
T
Ilia Denisov 7cc18159e9 phase 1
2026-05-07 07:18:55 +02:00

19 lines
431 B
TypeScript

import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
const pkg = JSON.parse(
readFileSync(
fileURLToPath(new URL("./package.json", import.meta.url)),
"utf8",
),
) as { version: string };
export default defineConfig({
plugins: [sveltekit()],
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
});