diff --git a/crates/next-api/src/module_graph.rs b/crates/next-api/src/module_graph.rs index c4ddc44274e0f..19227eea72ef5 100644 --- a/crates/next-api/src/module_graph.rs +++ b/crates/next-api/src/module_graph.rs @@ -10,9 +10,13 @@ use petgraph::{ visit::Dfs, }; use tracing::Instrument; -use turbo_tasks::{FxIndexMap, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, Vc}; +use turbo_tasks::{ + debug::ValueDebug, CollectiblesSource, FxIndexMap, ResolvedVc, TryFlatJoinIterExt, + TryJoinIterExt, Vc, +}; use turbopack_core::{ context::AssetContext, + issue::Issue, module::{Module, Modules}, reference::primary_referenced_modules, }; @@ -317,13 +321,18 @@ pub async fn get_reduced_graphs_for_endpoint( NextMode::Build => ( false, vec![ - async move { - SingleModuleGraph::new_with_entries(project.get_all_entries()) - .to_resolved() - .await - } - .instrument(tracing::info_span!("module graph for app")) - .await?, + // async move + { + let vc = SingleModuleGraph::new_with_entries(project.get_all_entries()); + let vc = vc.resolve_strongly_consistent().await?; + let _ = vc.take_collectibles::>(); + vc.to_resolved().await? + // graph.untracked().await?; + // let v = graph.take_collectibles::>(); + // println!("taking {:?}", v.iter().map(|i| i.dbg()).try_join().await?); + // graph.to_resolved().await + }, /* .instrument(tracing::info_span!("module graph for app")) + * .await?, */ ], ), };