Unverified Commit 30e1c0e1 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Turbopack: move whole_app_module_graphs to top level (#84897)

### What?

That makes a tracing look a bit better
parent 0b58a32c
...@@ -1008,8 +1008,9 @@ async fn output_assets_operation( ...@@ -1008,8 +1008,9 @@ async fn output_assets_operation(
container: ResolvedVc<ProjectContainer>, container: ResolvedVc<ProjectContainer>,
app_dir_only: bool, app_dir_only: bool,
) -> Result<Vc<OutputAssets>> { ) -> Result<Vc<OutputAssets>> {
let endpoint_assets = container let project = container.project();
.project() let whole_app_module_graphs = project.whole_app_module_graphs();
let endpoint_assets = project
.get_all_endpoints(app_dir_only) .get_all_endpoints(app_dir_only)
.await? .await?
.iter() .iter()
...@@ -1022,7 +1023,9 @@ async fn output_assets_operation( ...@@ -1022,7 +1023,9 @@ async fn output_assets_operation(
.flat_map(|assets| assets.iter().copied()) .flat_map(|assets| assets.iter().copied())
.collect(); .collect();
let nft = next_server_nft_assets(container.project()).await?; let nft = next_server_nft_assets(project).await?;
whole_app_module_graphs.as_side_effect().await?;
Ok(Vc::cell( Ok(Vc::cell(
output_assets output_assets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment