mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
chore(html/minifier): Typo (#5995)
This commit is contained in:
parent
447e2449d9
commit
a716b40d05
@ -1218,7 +1218,7 @@ impl Minifier<'_> {
|
||||
self.is_preserved_comment(&comment.data)
|
||||
}
|
||||
Child::Element(element)
|
||||
if self.options.remove_empty_metedata_elements
|
||||
if self.options.remove_empty_metadata_elements
|
||||
&& (!self
|
||||
.is_element_displayed(element.namespace, &element.tag_name)
|
||||
|| (matches!(
|
||||
|
@ -121,7 +121,7 @@ pub struct MinifyOptions {
|
||||
// Remove safe empty elements with metadata content, i.e. the `script` and `style` element
|
||||
// without content and attributes, `meta` and `link` elements without attributes and etc
|
||||
#[serde(default = "true_by_default")]
|
||||
pub remove_empty_metedata_elements: bool,
|
||||
pub remove_empty_metadata_elements: bool,
|
||||
#[serde(default = "true_by_default")]
|
||||
pub remove_comments: bool,
|
||||
#[serde(default = "default_preserve_comments")]
|
||||
|
Loading…
Reference in New Issue
Block a user