From 97df938fcf160c93e93f4e02635442bc07d81713 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Fri, 1 Nov 2024 13:02:46 +0900 Subject: [PATCH] fix: browser condition for react-server-dom-webpack/server --- examples/web-worker-rsc/vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/web-worker-rsc/vite.config.ts b/examples/web-worker-rsc/vite.config.ts index a5d58d5..843f51c 100644 --- a/examples/web-worker-rsc/vite.config.ts +++ b/examples/web-worker-rsc/vite.config.ts @@ -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: {