Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions crates/napi/src/next_api/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ async fn get_analyze_data_operation(
app_dir_only: bool,
) -> Result<Vc<OutputAssets>> {
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()
Expand Down
11 changes: 5 additions & 6 deletions crates/next-core/src/next_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Self {
production_browser_source_maps: true,
..self.clone()
}
.cell()
pub fn with_analyze_config(&self) -> Vc<Self> {
let mut new = self.clone();
new.experimental.turbopack_source_maps = Some(true);
new.experimental.turbopack_input_source_maps = Some(false);
new.cell()
}
}

Expand Down
Loading