visua-vue/vite.config.ts
2025-07-19 02:55:56 +02:00

25 lines
602 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@visua': path.resolve(__dirname, './node_modules/@cellule-financiere-pmo/visua/output')
},
},
test: {
globals: true,
environment: 'jsdom',
include: ['test/**/*.spec.ts'],
}
})