Skip to content

Commit

Permalink
fix(incremental): infer async modules test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Nov 29, 2024
1 parent 9829305 commit f5b9313
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/rspack_core/src/incremental/mutations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ impl Mutations {
self.inner.len()
}

pub fn is_empty(&self) -> bool {
self.inner.is_empty()
}

// TODO: remove this
pub fn swap_modules_with_chunk_graph_cache(&mut self, to: &mut Self) {
std::mem::swap(
Expand Down
4 changes: 4 additions & 0 deletions crates/rspack_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ impl ChunkByUkey {
pub fn len(&self) -> usize {
self.inner.len()
}

pub fn is_empty(&self) -> bool {
self.inner.is_empty()
}
}

#[derive(Debug, Default, Clone)]
Expand Down

0 comments on commit f5b9313

Please sign in to comment.