We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f82f1 commit 0e51de5Copy full SHA for 0e51de5
.changeset/wet-walls-camp.md
@@ -0,0 +1,5 @@
1
+---
2
+"@react-router/dev": patch
3
4
+
5
+Copy `server.watch` config options from `vite.config.(ts|js)` file to child vite server in development mode.
packages/react-router-dev/vite/plugin.ts
@@ -1445,7 +1445,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
1445
cacheDir: "node_modules/.vite-child-compiler",
1446
mode: viteConfig.mode,
1447
server: {
1448
- watch: viteConfig.command === "build" ? null : undefined,
+ watch: viteConfig.command === "build" ? null : viteConfig.server.watch,
1449
preTransformRequests: false,
1450
hmr: false,
1451
},
0 commit comments