diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-12 18:58:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 18:58:39 -0400 |
commit | 0c87dd1e9898d7ac93e274d3611ee491a107d47a (patch) | |
tree | f626332706ccd12e0719f9b84d6b234d5483659b /cli/graph_util.rs | |
parent | 76107649804e674268becd693b7b2a954eecb3da (diff) |
perf: use emit from swc instead of tsc (#15118)
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r-- | cli/graph_util.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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<Item = (&ModuleSpecifier, &ModuleEntry)> { + self.modules.iter() } /// Walk dependencies from `roots` and return every encountered specifier. |