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 63cd65a commit 65a44abCopy full SHA for 65a44ab
.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
@@ -1519,7 +1519,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
1519
cacheDir: "node_modules/.vite-child-compiler",
1520
mode: viteConfig.mode,
1521
server: {
1522
- watch: viteConfig.command === "build" ? null : undefined,
+ watch: viteConfig.command === "build" ? null : viteConfig.server.watch,
1523
preTransformRequests: false,
1524
hmr: false,
1525
},
0 commit comments