import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ optimizeDeps: { esbuildOptions: { target: 'esnext' } }, build: { target: 'esnext' //browsers can handle the latest ES features }, plugins: [sveltekit()] });