@@ -1896,6 +1896,7 @@ fn main() {
18961896 // Do initial compile
18971897 if target_path.is_dir() {
18981898 let hl_files = collect_hl_files_recursive(target_path);
1899+ let mut all_included: Vec<PathBuf> = Vec::new();
18991900 for file in &hl_files {
19001901 let path_str = file.to_string_lossy().to_string();
19011902 let effective_out = config.output.as_ref().map(|o| {
@@ -1906,7 +1907,7 @@ fn main() {
19061907 }
19071908 out_p.to_string_lossy().to_string()
19081909 });
1909− compile(
1910+ let (_, included) = compile(
19101911 &path_str,
19111912 &CompileConfig {
19121913 dev: true,
@@ -1915,6 +1916,7 @@ fn main() {
19151916 ..Default::default()
19161917 },
19171918 );
1919+ all_included.extend(included);
19181920 }
19191921 let (tx, _) = tokio::sync::broadcast::channel::<()>(16);
19201922 let serve_dir = config
@@ -1943,7 +1945,7 @@ fn main() {
19431945 watch_loop(
19441946 target_path,
19451947 &hl_files,
1946− &[],
1948+ &all_included,
19471949 true,
19481950 true,
19491951 Some(tx),