From f11f8861719586e2055216f5c4f07d45acc214d2 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Fri, 17 Mar 2023 20:27:22 +0100 Subject: [PATCH 1/2] fix(cli): preserve blob store when resetting file watcher --- cli/proc_state.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/proc_state.rs b/cli/proc_state.rs index 0fd235dea7410e..91568123e0cd8a 100644 --- a/cli/proc_state.rs +++ b/cli/proc_state.rs @@ -136,6 +136,7 @@ impl ProcState { /// Reset all runtime state to its default. This should be used on file /// watcher restarts. pub fn reset_for_file_watcher(&mut self) { + self.0 = Arc::new(Inner { dir: self.dir.clone(), options: self.options.clone(), @@ -149,7 +150,7 @@ impl ProcState { maybe_import_map: self.maybe_import_map.clone(), maybe_inspector_server: self.maybe_inspector_server.clone(), root_cert_store: self.root_cert_store.clone(), - blob_store: Default::default(), + blob_store: self.blob_store.clone(), broadcast_channel: Default::default(), shared_array_buffer_store: Default::default(), compiled_wasm_module_store: Default::default(), From 4fcb4405e6b98c3e8a5d596bc2bfac19d86aa437 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Fri, 17 Mar 2023 20:29:19 +0100 Subject: [PATCH 2/2] remove line --- cli/proc_state.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/cli/proc_state.rs b/cli/proc_state.rs index 91568123e0cd8a..f6a54a50288d5a 100644 --- a/cli/proc_state.rs +++ b/cli/proc_state.rs @@ -136,7 +136,6 @@ impl ProcState { /// Reset all runtime state to its default. This should be used on file /// watcher restarts. pub fn reset_for_file_watcher(&mut self) { - self.0 = Arc::new(Inner { dir: self.dir.clone(), options: self.options.clone(),