aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/vite.config.js
blob: 353d771ce7bdce335491620b32421e6244fc2ec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { sveltekit } from '@sveltejs/kit/vite';
import { splitVendorChunkPlugin } from 'vite'

/** @type {import('vite').UserConfig} */
const config = {
	plugins: [sveltekit(), splitVendorChunkPlugin()],
	build: {
		target: "es2020",
		rollupOptions: {
			output: {
				manualChunks: undefined
			}
		}
	},
	optimizeDeps: {
		esbuildOptions: {
			target: "es2020"
		}
	}
};

export default config;