Skip to content

Commit 5edb467

Browse files
committed
Bypass vite server watch config in dev
1 parent 64f8b8a commit 5edb467

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/react-router-dev/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# `@react-router/dev`
22

3+
### Patch Changes
4+
- Copy `server.watch` config options from `vite.config.(ts|js)` file to child vite server in development mode.
5+
36
## 7.8.2
47

58
### Patch Changes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
14481448
cacheDir: "node_modules/.vite-child-compiler",
14491449
mode: viteConfig.mode,
14501450
server: {
1451-
watch: viteConfig.command === "build" ? null : undefined,
1451+
watch: viteConfig.command === "build" ? null : viteConfig.server.watch,
14521452
preTransformRequests: false,
14531453
hmr: false,
14541454
},

0 commit comments

Comments
 (0)