2023-06-22 12:14:02 +08:00
|
|
|
import { defineConfig } from 'vite';
|
2024-01-24 02:42:21 +08:00
|
|
|
import VueJSX from '@vitejs/plugin-vue-jsx';
|
2024-09-07 04:56:24 +08:00
|
|
|
import Replace from 'unplugin-replace/vite';
|
2023-06-22 12:14:02 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
2024-09-07 04:56:24 +08:00
|
|
|
build: {
|
|
|
|
minify: 'terser',
|
|
|
|
},
|
2023-06-22 19:18:56 +08:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
|
|
|
|
},
|
|
|
|
},
|
2023-06-22 12:14:02 +08:00
|
|
|
plugins: [
|
2024-01-24 02:42:21 +08:00
|
|
|
VueJSX(),
|
2024-09-07 04:56:24 +08:00
|
|
|
Replace({
|
|
|
|
values: {
|
|
|
|
'process.env.BABEL_TYPES_8_BREAKING': 'false',
|
|
|
|
},
|
2023-06-22 12:14:02 +08:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
});
|