Skip to content

Commit

Permalink
fix(vite-node): disable watcher if hmr is disabled (#6251)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Sep 12, 2024
1 parent c68b193 commit 6e72114
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite-node/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ async function run(files: string[], options: CliOptions = {}) {
mode: options.mode,
server: {
hmr: !!options.watch,
watch: options.watch ? undefined : null,
},
plugins: [options.watch && viteNodeHmrPlugin()],
})
Expand Down

0 comments on commit 6e72114

Please sign in to comment.