Skip to content

Commit cc4caff

Browse files
authored
fix: flush stdout/stderr after every write (#14)
Similar to voidzero-dev/vite-plus#82 to ensure outputs are displayed in the correct order
2 parents 5db14e5 + 7eb8803 commit cc4caff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/vite_task/src/execute.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ async fn collect_std_outputs(
7575
}
7676
let content = &buf[..n];
7777
parent_output_handle.write_all(content).await?;
78+
parent_output_handle.flush().await?;
7879
let mut outputs = outputs.lock().unwrap();
7980
if let Some(last) = outputs.last_mut()
8081
&& last.kind == kind

0 commit comments

Comments
 (0)