34 lines
697 B
TypeScript
34 lines
697 B
TypeScript
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';
|
|
import { babel } from '@rollup/plugin-babel';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
vueDevTools(),
|
|
babel({
|
|
plugins: [
|
|
[
|
|
'@babel/plugin-transform-react-jsx',
|
|
{
|
|
runtime: 'automatic',
|
|
importSource: '@antv/f2',
|
|
},
|
|
],
|
|
],
|
|
}),
|
|
vueJsx(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
})
|