rolldown_watcher 1.2.0

Watcher for rolldown with state machine-based implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rolldown_common::WatcherChangeKind;

/// A file change collected during debouncing, consumed by the rebuild sequence.
#[derive(Clone, Debug, Hash, PartialEq, Eq)]
pub struct FileChangeEvent {
  pub path: String,
  pub kind: WatcherChangeKind,
}

impl FileChangeEvent {
  pub fn new(path: String, kind: WatcherChangeKind) -> Self {
    Self { path, kind }
  }
}