babel-plugin-jsx/packages/jsx-explorer/vite.config.ts

23 lines
441 B
TypeScript
Raw Normal View History

2023-06-22 12:14:02 +08:00
import { defineConfig } from 'vite';
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',
},
resolve: {
alias: {
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
},
},
2023-06-22 12:14:02 +08:00
plugins: [
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
}),
],
});