babel-plugin-jsx/packages/jsx-explorer/vite.config.ts
2024-09-07 05:04:05 +08:00

23 lines
441 B
TypeScript

import { defineConfig } from 'vite';
import VueJSX from '@vitejs/plugin-vue-jsx';
import Replace from 'unplugin-replace/vite';
export default defineConfig({
build: {
minify: 'terser',
},
resolve: {
alias: {
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
},
},
plugins: [
VueJSX(),
Replace({
values: {
'process.env.BABEL_TYPES_8_BREAKING': 'false',
},
}),
],
});