mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
23 lines
441 B
TypeScript
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',
|
|
},
|
|
}),
|
|
],
|
|
});
|