fork of hey-api/openapi-ts because I need some additional things
1import { fileURLToPath, URL } from 'node:url';
2
3import vue from '@vitejs/plugin-vue';
4
5/** @type {import('vite').UserConfig} */
6export default {
7 build: {
8 sourcemap: true,
9 target: 'esnext',
10 },
11 esbuild: {
12 target: 'esnext',
13 },
14 optimizeDeps: {
15 esbuildOptions: {
16 target: 'esnext',
17 },
18 },
19 plugins: [vue()],
20 resolve: {
21 alias: {
22 '@': fileURLToPath(new URL('./src', import.meta.url)),
23 },
24 },
25 // eslint-disable-next-line @typescript-eslint/consistent-type-imports
26} as import('vite').UserConfig;