visua-vue/vite.config.ts

25 lines
602 B
TypeScript
Raw Normal View History

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