Skip to content

Commit

Permalink
fix: add missing unresolved_mark field
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng committed Oct 23, 2022
1 parent 2dbff69 commit 1687c1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/swc/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ pub struct Options {
#[serde(skip_deserializing, default)]
pub top_level_mark: Option<Mark>,

#[serde(skip_deserializing, default)]
pub unresolved_mark: Option<Mark>,

#[cfg(not(target_arch = "wasm32"))]
#[serde(default = "default_cwd")]
pub cwd: PathBuf,
Expand Down Expand Up @@ -338,7 +341,7 @@ impl Options {
}
});

let unresolved_mark = Mark::new();
let unresolved_mark = self.unresolved_mark.unwrap_or_else(Mark::new);
let top_level_mark = self.top_level_mark.unwrap_or_else(Mark::new);

let es_version = target.unwrap_or_default();
Expand Down

0 comments on commit 1687c1b

Please sign in to comment.