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 64f8b8a commit b49591cCopy full SHA for b49591c
.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
@@ -1448,7 +1448,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
1448
cacheDir: "node_modules/.vite-child-compiler",
1449
mode: viteConfig.mode,
1450
server: {
1451
- watch: viteConfig.command === "build" ? null : undefined,
+ watch: viteConfig.command === "build" ? null : viteConfig.server.watch,
1452
preTransformRequests: false,
1453
hmr: false,
1454
},
0 commit comments