diff --git a/crates/swc_html_ast/src/base.rs b/crates/swc_html_ast/src/base.rs
index 2209109c0649..c613165e49c3 100644
--- a/crates/swc_html_ast/src/base.rs
+++ b/crates/swc_html_ast/src/base.rs
@@ -63,7 +63,6 @@ pub struct DocumentType {
pub public_id: Option,
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub system_id: Option,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub raw: Option,
}
@@ -126,11 +125,9 @@ pub struct Attribute {
pub prefix: Option,
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub name: JsWord,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub raw_name: Option,
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub value: Option,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub raw_value: Option,
}
@@ -149,7 +146,6 @@ pub struct Text {
pub span: Span,
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub data: JsWord,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub raw: Option,
}
@@ -165,7 +161,6 @@ pub struct Comment {
pub span: Span,
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub data: JsWord,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub raw: Option,
}
diff --git a/crates/swc_html_ast/src/token.rs b/crates/swc_html_ast/src/token.rs
index 25edb1285c39..8ede9888645e 100644
--- a/crates/swc_html_ast/src/token.rs
+++ b/crates/swc_html_ast/src/token.rs
@@ -14,11 +14,9 @@ pub struct AttributeToken {
pub span: Span,
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub name: JsWord,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub raw_name: Option,
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub value: Option,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
pub raw_value: Option,
}
@@ -66,14 +64,12 @@ pub enum Token {
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
// System identifier
system_id: Option,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
// Raw value
raw: Option,
},
StartTag {
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
tag_name: JsWord,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
raw_tag_name: Option,
is_self_closing: bool,
attributes: Vec,
@@ -81,7 +77,6 @@ pub enum Token {
EndTag {
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
tag_name: JsWord,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
raw_tag_name: Option,
is_self_closing: bool,
attributes: Vec,
@@ -89,12 +84,10 @@ pub enum Token {
Comment {
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
data: JsWord,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
raw: Option,
},
Character {
value: char,
- #[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
raw: Option,
},
Eof,