fix(ui): dedupe React to prevent multiple instances in renderer (#9631)

This commit is contained in:
Chih-Tao Lee
2026-06-16 14:51:25 -04:00
committed by GitHub
parent fd7a0fef92
commit ff91f0c2b1
+9
View File
@@ -1,5 +1,6 @@
import { defineConfig } from 'vite';
import tailwindcss from '@tailwindcss/vite';
import { resolve } from 'path';
// https://vitejs.dev/config
export default defineConfig({
@@ -9,6 +10,14 @@ export default defineConfig({
plugins: [tailwindcss()],
resolve: {
dedupe: ['react', 'react-dom'],
alias: {
react: resolve(__dirname, 'node_modules/react'),
'react-dom': resolve(__dirname, 'node_modules/react-dom'),
},
},
build: {
target: 'esnext'
},