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