Skip to content

Commit 7ee6153

Browse files
authored
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
1 parent e90ae0c commit 7ee6153

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/vite/src/buildRscFeServer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ export const buildRscFeServer = async ({
3939
// configFile: viteConfigPath,
4040
root: webSrc,
4141
plugins: [react(), rscIndexPlugin()],
42-
resolve: {
43-
conditions: ['react-server'],
44-
},
4542
build: {
4643
outDir: webDist,
4744
emptyOutDir: true, // Needed because `outDir` is not inside `root`

0 commit comments

Comments
 (0)