Skip to content

Commit

Permalink
More fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 27, 2023
1 parent 2b39b02 commit dd371ff
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion crates/swc_ecma_minifier/src/option/mod.rs
Expand Up @@ -45,6 +45,18 @@ pub struct MinifyOptions {
pub enclose: bool,
}

impl Default for MinifyOptions {
fn default() -> Self {
Self {
rename: Default::default(),
compress: Default::default(),
mangle: Default::default(),
wrap: Default::default(),
enclose: Default::default(),
}
}
}

#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[serde(deny_unknown_fields)]
Expand Down Expand Up @@ -367,6 +379,5 @@ const fn default_ecma() -> EsVersion {
EsVersion::Es5
}

impl_default!(MinifyOptions);
impl_default!(MangleOptions);
impl_default!(CompressOptions);

0 comments on commit dd371ff

Please sign in to comment.