import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
      find: /^@dataview\/datav-vue3$/,
      replacement: '@kjgl77/datav-vue3'
    }
  },
  optimizeDeps: {
    include: ['@kjgl77/datav-vue3']
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@use "@/assets/styles/main" as *;`
      }
    }
  }
})