Skip to content

Commit

Permalink
fix: rework browser optimizeDeps.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jul 15, 2024
1 parent e998e71 commit f0503e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react-server/src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f0503e9

Please sign in to comment.