fix(jsx-explorer): disable optimizing dependencies in build mode

This commit is contained in:
三咲智子 Kevin Deng 2024-09-07 04:29:28 +08:00
parent 13376065fa
commit de5d8537d6
No known key found for this signature in database

View File

@ -4,11 +4,6 @@ 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,12 +16,7 @@ export default defineConfig({
languageWorkers: ['editorWorkerService', 'typescript'],
}),
nodePolyfills({
globals: {
process: true,
},
globals: { process: true },
}),
],
optimizeDeps: {
disabled: false,
},
});