From 1726e4c9afc2d3c33f27b300f42e8dd41c4edebe Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 20 Nov 2025 10:03:42 +0100 Subject: [PATCH 1/2] fixup --- crates/next-core/src/next_config.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/next-core/src/next_config.rs b/crates/next-core/src/next_config.rs index e20af059e639ec..7a1f1e702187b2 100644 --- a/crates/next-core/src/next_config.rs +++ b/crates/next-core/src/next_config.rs @@ -162,12 +162,11 @@ pub struct NextConfig { #[turbo_tasks::value_impl] impl NextConfig { #[turbo_tasks::function] - pub fn with_production_browser_source_maps(&self) -> Vc { - Self { - production_browser_source_maps: true, - ..self.clone() - } - .cell() + pub fn with_analyze_config(&self) -> Vc { + let mut new = self.clone(); + new.experimental.turbopack_source_maps = Some(true); + new.experimental.turbopack_input_source_maps = Some(false); + new.cell() } } From f4ded8c5daaa0cc1ca73e5ab7d5d5cdaf2691512 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 20 Nov 2025 09:46:13 +0100 Subject: [PATCH 2/2] Turbopack: disable input source maps for analyze --- crates/napi/src/next_api/analyze.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/napi/src/next_api/analyze.rs b/crates/napi/src/next_api/analyze.rs index 0fc3f691acb293..eed151f98d89e4 100644 --- a/crates/napi/src/next_api/analyze.rs +++ b/crates/napi/src/next_api/analyze.rs @@ -57,8 +57,7 @@ async fn get_analyze_data_operation( app_dir_only: bool, ) -> Result> { let project = container.project(); - let project = - project.with_next_config(project.next_config().with_production_browser_source_maps()); + let project = project.with_next_config(project.next_config().with_analyze_config()); let analyze_output_root = project .node_root()