Skip to content

Commit c51c67a

Browse files
authored
fix(vite-node): disable watcher if hmr is disabled (#6251)
1 parent 59bcfb2 commit c51c67a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite-node/src/cli.ts

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ async function run(files: string[], options: CliOptions = {}) {
9090
mode: options.mode,
9191
server: {
9292
hmr: !!options.watch,
93+
watch: options.watch ? undefined : null,
9394
},
9495
plugins: [options.watch && viteNodeHmrPlugin()],
9596
})

0 commit comments

Comments
 (0)