From f0503e9cb3edaa441c96a9769cdb462f068453ab Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Sun, 14 Jul 2024 09:44:23 +0900 Subject: [PATCH] fix: rework browser `optimizeDeps.entries` --- packages/react-server/src/plugin/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-server/src/plugin/index.ts b/packages/react-server/src/plugin/index.ts index 10862e8fa..ba78cd945 100644 --- a/packages/react-server/src/plugin/index.ts +++ b/packages/react-server/src/plugin/index.ts @@ -277,12 +277,12 @@ export function vitePluginReactServer( optimizeDeps: { // this can potentially include unnecessary server only deps for client, // but there should be no issues except making deps optimization slightly slower. - entries: [ - path.posix.join( - routeDir, - `**/(page|layout|error|not-found|loading|template).(js|jsx|ts|tsx)`, - ), - ], + // entries: [ + // path.posix.join( + // routeDir, + // `**/(page|layout|error|not-found|loading|template).(js|jsx|ts|tsx)`, + // ), + // ], exclude: ["@hiogawa/react-server"], include: [ "react",