mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-10-09 22:46:30 +08:00
15 lines
315 B
TypeScript
15 lines
315 B
TypeScript
import { defineConfig } from 'vite';
|
|
import VueJSX from '@vitejs/plugin-vue-jsx';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
|
|
},
|
|
},
|
|
define: {
|
|
'process.env.BABEL_TYPES_8_BREAKING': 'false',
|
|
},
|
|
plugins: [VueJSX()],
|
|
});
|