mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-08-14 11:13:19 +08:00
refactor(jsx-explorer): switch to rolldown-vite
This commit is contained in:
@ -18,8 +18,6 @@
|
||||
"devDependencies": {
|
||||
"@types/babel__standalone": "^7.1.9",
|
||||
"@vitejs/plugin-vue-jsx": "^5.0.1",
|
||||
"terser": "^5.43.1",
|
||||
"unplugin-replace": "^0.6.0",
|
||||
"vite": "^7.1.1"
|
||||
"vite": "npm:rolldown-vite@latest"
|
||||
}
|
||||
}
|
||||
|
@ -1,24 +1,14 @@
|
||||
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': '{}',
|
||||
'process.env.NODE_DEBUG': 'false',
|
||||
'process.env.BABEL_TYPES_8_BREAKING': 'false',
|
||||
},
|
||||
}),
|
||||
],
|
||||
experimental: {
|
||||
enableNativePlugin: true,
|
||||
},
|
||||
plugins: [VueJSX()],
|
||||
});
|
||||
|
Reference in New Issue
Block a user