This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
import vueJsx from '@vitejs/plugin-vue-jsx'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
vueJsx({ // 注册JSX插件,可传入可选配置(按需添加)
// 可选配置:开启TSX支持、自定义编译选项等
tsx: true,
babelPlugins: []
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},