Skip to content

Commit

Permalink
fix: browser condition for react-server-dom-webpack/server
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 1, 2024
1 parent ed0f59d commit 97df938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/web-worker-rsc/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default defineConfig((_env) => ({
worker: {
keepProcessEnv: false,
resolve: {
conditions: ["module", "react-server"],
// need "browser" condition for "react-server-dom-webpack/server"
conditions: ["module", "worker", "browser", "react-server"],
noExternal: true,
},
optimizeDeps: {
Expand Down

0 comments on commit 97df938

Please sign in to comment.