import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import pkg from './package.json' with { type: 'json' } import launcherPkg from './launcher/package.json' with { type: 'json' } // https://vite.dev/config/ export default defineConfig({ plugins: [react()], base: './', // relative paths so file:// URLs in WKWebView funktionieren define: { __APP_VERSION__: JSON.stringify(pkg.version), __LAUNCHER_VERSION__: JSON.stringify(launcherPkg.version), }, })