Skip to content

Commit

Permalink
fix(rust): should not hard code output.dir
Browse files Browse the repository at this point in the history
  • Loading branch information
PengBoUESTC committed Mar 22, 2024
1 parent dacfc55 commit 37ded97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rolldown/src/utils/normalize_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub fn normalize_options(
.chunk_file_names
.unwrap_or_else(|| "[name]-[hash].js".to_string())
.into(),
dir: "dist".to_string(),
dir: raw_output.dir.unwrap_or_else(|| "dist".to_string()),
format: raw_output.format.unwrap_or(crate::OutputFormat::Esm),
sourcemap: raw_output.sourcemap.unwrap_or(SourceMapType::Hidden),
};
Expand Down

1 comment on commit 37ded97

@hyf0
Copy link
Member

@hyf0 hyf0 commented on 37ded97 Mar 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #640

Please sign in to comment.