diff options
author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-10-30 19:32:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 10:32:18 -0700 |
commit | 5f5ac4063142c6c411486581f2f26cf51a32d7e3 (patch) | |
tree | 5ddda8657bc72930b5cc390357dd15338f5bddff /cli/args | |
parent | 1431ffa9f8142e4f76f565c51301f4fb174e449a (diff) |
fix(serve): support serve hmr (#26078)
This PR addresses issue #25600
Changes:
Updated `fn has_hmr` to check `serve` subcommand and return its hmr
value if found, in order to run the worker in serve mode with
hmr_runner. Thus the hmr event can be dispatched upon changes on the
file served.
Diffstat (limited to 'cli/args')
-rw-r--r-- | cli/args/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index f5ecc0449..754cd38fa 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1454,6 +1454,12 @@ impl CliOptions { }) = &self.flags.subcommand { *hmr + } else if let DenoSubcommand::Serve(ServeFlags { + watch: Some(WatchFlagsWithPaths { hmr, .. }), + .. + }) = &self.flags.subcommand + { + *hmr } else { false } |