From 7ee61534f9131657b920f2d95b3d0e8d7a6e4ab2 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Mon, 4 Sep 2023 16:33:23 +0200 Subject: [PATCH] RSC: Don't set the react-server condition for client builds (#9132) This unbreaks RSC after #8979 landed. The `react-server` condition shouldn't be used when building the client-side bundle --- packages/vite/src/buildRscFeServer.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/vite/src/buildRscFeServer.ts b/packages/vite/src/buildRscFeServer.ts index e618bcc4034b..f5a119683742 100644 --- a/packages/vite/src/buildRscFeServer.ts +++ b/packages/vite/src/buildRscFeServer.ts @@ -39,9 +39,6 @@ export const buildRscFeServer = async ({ // configFile: viteConfigPath, root: webSrc, plugins: [react(), rscIndexPlugin()], - resolve: { - conditions: ['react-server'], - }, build: { outDir: webDist, emptyOutDir: true, // Needed because `outDir` is not inside `root`