Skip to content

An open-source, self-hosted system for apps built with web technologies.

Deduplicate React in production client

zohayrslileh0568e9dc6566
diff --git a/vite.client.ts b/vite.client.ts
index a38afca..bac1a52 100644
--- a/vite.client.ts
+++ b/vite.client.ts
@@ -14,7 +14,8 @@ export default defineConfig({
babel({ presets: [reactCompilerPreset()] })
],
resolve: {
- tsconfigPaths: true
+ tsconfigPaths: true,
+ dedupe: ["react", "react-dom"]
},
build: {
emptyOutDir: true,