Skip to content

Commit

Permalink
RSC: Don't set the react-server condition for client builds (#9132)
Browse files Browse the repository at this point in the history
This unbreaks RSC after #8979 landed.

The `react-server` condition shouldn't be used when building the
client-side bundle
  • Loading branch information
Tobbe authored Sep 4, 2023
1 parent e90ae0c commit 7ee6153
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/vite/src/buildRscFeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 7ee6153

Please sign in to comment.