Manually add dedupe for react in vite react plugin for react (#186)

This commit is contained in:
Hakan Shehu
2025-08-11 11:54:49 +02:00
committed by GitHub
parent 91073c41b7
commit 7cbbce885d

View File

@@ -23,6 +23,7 @@ export default defineConfig((env) => {
},
plugins: [react(), pluginExposeRenderer(name)],
resolve: {
dedupe: ['react', 'react-dom'],
alias: {
'@colanode/desktop': path.resolve(__dirname, './src'),
'@colanode/core': path.resolve(__dirname, '../../packages/core/src'),