mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 05:54:19 +01:00
fix: disable optimizeDeps
This commit is contained in:
@@ -15,9 +15,11 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
optimizeDeps: {
|
||||
extensions: ['jsx'],
|
||||
},
|
||||
// Unexpectedly, JSX is replaced by React.createElement due to optimizeDeps.
|
||||
// https://github.com/vitejs/vite/issues/17310
|
||||
// optimizeDeps: {
|
||||
// extensions: ['jsx'],
|
||||
// },
|
||||
build: {
|
||||
target: 'esnext',
|
||||
sourcemap: true,
|
||||
|
||||
Reference in New Issue
Block a user