mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
fix(jsx-explorer): disable optimizing dependencies in build mode
This commit is contained in:
parent
13376065fa
commit
de5d8537d6
@ -4,11 +4,6 @@ import VueJSX from '@vitejs/plugin-vue-jsx';
|
|||||||
import MonacoEditorPlugin from 'vite-plugin-monaco-editor';
|
import MonacoEditorPlugin from 'vite-plugin-monaco-editor';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
|
||||||
commonjsOptions: {
|
|
||||||
include: [],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
|
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
|
||||||
@ -21,12 +16,7 @@ export default defineConfig({
|
|||||||
languageWorkers: ['editorWorkerService', 'typescript'],
|
languageWorkers: ['editorWorkerService', 'typescript'],
|
||||||
}),
|
}),
|
||||||
nodePolyfills({
|
nodePolyfills({
|
||||||
globals: {
|
globals: { process: true },
|
||||||
process: true,
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
optimizeDeps: {
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user