1
0
Evan Almloff 2 жил өмнө
parent
commit
418d8b1c30

+ 2 - 4
packages/hot-reload/src/lib.rs

@@ -261,10 +261,8 @@ pub fn init<Ctx: HotReloadingContext + Send + 'static>(cfg: Config<Ctx>) {
                             let mut channels = channels.lock().unwrap();
                             let mut channels = channels.lock().unwrap();
                             for path in real_paths {
                             for path in real_paths {
                                 // if this file type cannot be hot reloaded, rebuild the application
                                 // if this file type cannot be hot reloaded, rebuild the application
-                                if path.extension().and_then(|p| p.to_str()) != Some("rs") {
-                                    if rebuild() {
-                                        return;
-                                    }
+                                if path.extension().and_then(|p| p.to_str()) != Some("rs") && rebuild() {
+                                    return;
                                 }
                                 }
                                 // find changes to the rsx in the file
                                 // find changes to the rsx in the file
                                 match file_map
                                 match file_map