mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-07-04 02:53:28 +08:00
fix: enable optimizing dependencies in build mode
This commit is contained in:
@ -4,6 +4,11 @@ import VueJSX from '@vitejs/plugin-vue-jsx';
|
||||
import MonacoEditorPlugin from 'vite-plugin-monaco-editor';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
commonjsOptions: {
|
||||
include: [],
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
|
||||
@ -21,4 +26,7 @@ export default defineConfig({
|
||||
},
|
||||
}),
|
||||
],
|
||||
optimizeDeps: {
|
||||
disabled: false,
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user