Files
plugin-starter/ui/vite.config.ts
Ryan Wang c81ec5a2ae chore: update ui template (#53)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2025-06-20 17:00:00 +08:00

26 lines
735 B
TypeScript

import { fileURLToPath, URL } from 'url'
import { viteConfig } from '@halo-dev/ui-plugin-bundler-kit'
import Icons from 'unplugin-icons/vite'
import { configDefaults } from 'vitest/config'
// For more info,
// please see https://github.com/halo-dev/halo/tree/main/ui/packages/ui-plugin-bundler-kit
export default viteConfig({
vite: {
plugins: [Icons({ compiler: 'vue3' })],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
// If you don't use Vitest, you can remove the following configuration
test: {
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url)),
},
},
})