Skip to content

Commit 4bc9ed3

Browse files
committed
avoid duplicates in output assets list
1 parent 61ce0cb commit 4bc9ed3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/next-core/src/emit.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use anyhow::Result;
2+
use rustc_hash::FxHashSet;
23
use tracing::Instrument;
34
use turbo_tasks::{
45
graph::{AdjacencyMap, GraphTraversal},
@@ -112,6 +113,8 @@ pub async fn all_assets_from_entries(entries: Vc<OutputAssets>) -> Result<Vc<Out
112113
.completed()?
113114
.into_inner()
114115
.into_reverse_topological()
116+
.collect::<FxHashSet<_>>()
117+
.into_iter()
115118
.collect(),
116119
))
117120
}

0 commit comments

Comments
 (0)