fix: broaden SSR noExternal to cover all React-dependent workspace packages
This commit is contained in:
@@ -8,7 +8,14 @@ export default defineConfig({
|
|||||||
envDir: path.resolve(import.meta.dirname, "../.."),
|
envDir: path.resolve(import.meta.dirname, "../.."),
|
||||||
plugins: [tailwindcss(), reactRouter()],
|
plugins: [tailwindcss(), reactRouter()],
|
||||||
ssr: {
|
ssr: {
|
||||||
noExternal: ["@convex-dev/better-auth", "@code/auth", "@code/backend"],
|
noExternal: [
|
||||||
|
"@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