From 0c87dd1e9898d7ac93e274d3611ee491a107d47a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 12 Jul 2022 18:58:39 -0400 Subject: perf: use emit from swc instead of tsc (#15118) --- cli/graph_util.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/graph_util.rs') diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 991115319..de418edd7 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -162,8 +162,10 @@ impl GraphData { } } - pub fn entries(&self) -> HashMap<&ModuleSpecifier, &ModuleEntry> { - self.modules.iter().collect() + pub fn entries( + &self, + ) -> impl Iterator { + self.modules.iter() } /// Walk dependencies from `roots` and return every encountered specifier. -- cgit v1.2.3