mirror of
				https://github.com/vuejs/babel-plugin-jsx.git
				synced 2025-10-31 17:32:32 +08:00 
			
		
		
		
	fix(jsx-explorer): disable optimizing dependencies in build mode
This commit is contained in:
		| @@ -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, |  | ||||||
|   }, |  | ||||||
| }); | }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user