Skip to content

Commit 75ae1d3

Browse files
authored
optimize rsc client deps (#14354)
1 parent 2efa7df commit 75ae1d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-router-dev/vite/rsc/plugin.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ export function reactRouterRSCVitePlugin(): Vite.PluginOption[] {
164164
},
165165
outDir: join(config.buildDirectory, "client"),
166166
},
167+
optimizeDeps: {
168+
include: [
169+
"react-router > cookie",
170+
"react-router > set-cookie-parser",
171+
],
172+
},
167173
},
168174
rsc: {
169175
build: {

0 commit comments

Comments
 (0)