22 lines
352 B
TypeScript
22 lines
352 B
TypeScript
|
import { fileURLToPath, URL } from 'node:url'
|
||
|
|
||
|
import Vue from '@vitejs/plugin-vue'
|
||
|
import Pages from 'vite-plugin-pages'
|
||
|
|
||
|
export default {
|
||
|
plugins: [
|
||
|
Vue(),
|
||
|
Pages(),
|
||
|
],
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||
|
}
|
||
|
},
|
||
|
esbuild: {
|
||
|
supported: {
|
||
|
'top-level-await': true
|
||
|
},
|
||
|
}
|
||
|
}
|