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 Jul 31, 2024
1 parent 59bcfb2 commit c51c67a
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 c51c67a

Please sign in to comment.