Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 3fc8f99

Browse files
committed
fix: restore React dedupe to prevent duplicate instance errors
1 parent 488eed8 commit 3fc8f99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

demo/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react';
44
export default defineConfig({
55
plugins: [react()],
66
base: '/',
7+
resolve: {
8+
dedupe: ['react', 'react-dom']
9+
}
710
});

0 commit comments

Comments
 (0)