fix: bundle all SSR deps to eliminate React instance duplication
This commit is contained in:
@@ -8,14 +8,7 @@ export default defineConfig({
|
|||||||
envDir: path.resolve(import.meta.dirname, "../.."),
|
envDir: path.resolve(import.meta.dirname, "../.."),
|
||||||
plugins: [tailwindcss(), reactRouter()],
|
plugins: [tailwindcss(), reactRouter()],
|
||||||
ssr: {
|
ssr: {
|
||||||
noExternal: [
|
noExternal: true,
|
||||||
"@code/auth",
|
|
||||||
"@code/backend",
|
|
||||||
"@code/ui",
|
|
||||||
"@convex-dev/better-auth",
|
|
||||||
"better-auth",
|
|
||||||
"@better-auth/expo",
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
dedupe: ["convex", "react", "react-dom"],
|
dedupe: ["convex", "react", "react-dom"],
|
||||||
|
|||||||
Reference in New Issue
Block a user