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() 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() } }