diff --git a/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs b/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs index 440740027f20ee..1ee2f5bfd24c3f 100644 --- a/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs +++ b/turbopack/crates/turbopack-core/src/chunk/chunk_group.rs @@ -2,7 +2,6 @@ use std::collections::HashSet; use anyhow::Result; use auto_hash_map::AutoSet; -use futures::future::try_join_all; use turbo_tasks::{ FxIndexMap, FxIndexSet, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, Value, Vc, }; @@ -152,15 +151,18 @@ pub async fn make_chunk_group( .await? .clone_value(); - let rebased_modules = try_join_all(traced_modules.into_iter().map(|module| { - RebasedAsset::new( - *module, - module.ident().path().root(), - module.ident().path().root(), - ) - .to_resolved() - })) - .await?; + let rebased_modules = traced_modules + .into_iter() + .map(|module| { + RebasedAsset::new( + *module, + module.ident().path().root(), + module.ident().path().root(), + ) + .to_resolved() + }) + .try_join() + .await?; referenced_output_assets.extend(rebased_modules.into_iter().map(ResolvedVc::upcast)); diff --git a/turbopack/crates/turbopack-node/src/transforms/webpack.rs b/turbopack/crates/turbopack-node/src/transforms/webpack.rs index 5107b0d3ec8b2a..10e7be95e55fc2 100644 --- a/turbopack/crates/turbopack-node/src/transforms/webpack.rs +++ b/turbopack/crates/turbopack-node/src/transforms/webpack.rs @@ -3,7 +3,6 @@ use std::mem::take; use anyhow::{bail, Context, Result}; use async_trait::async_trait; use either::Either; -use futures::future::try_join_all; use serde::{Deserialize, Serialize}; use serde_json::{json, Value as JsonValue}; use serde_with::serde_as; @@ -279,13 +278,12 @@ impl WebpackLoadersProcessedAsset { Either::Left(str) => File::from(str), Either::Right(bytes) => File::from(bytes.binary), }; - let assets = try_join_all( - emitted_assets_to_virtual_sources(processed.assets) - .await? - .into_iter() - .map(|v| v.to_resolved()), - ) - .await?; + let assets = emitted_assets_to_virtual_sources(processed.assets) + .await? + .into_iter() + .map(|v| v.to_resolved()) + .try_join() + .await?; let content = AssetContent::File(FileContent::Content(file).resolved_cell()).resolved_cell();