diff --git a/crates/swc_css_parser/src/parser/syntax/mod.rs b/crates/swc_css_parser/src/parser/syntax/mod.rs index 1006685e592e..ba67b45fbdb7 100644 --- a/crates/swc_css_parser/src/parser/syntax/mod.rs +++ b/crates/swc_css_parser/src/parser/syntax/mod.rs @@ -518,10 +518,9 @@ where // it to the list of declarations. tok!("ident") => { let span = self.input.cur_span(); - let cur = self.input.bump().unwrap(); let mut temporary_list = ListOfComponentValues { span: Default::default(), - children: vec![ComponentValue::PreservedToken(Box::new(cur))], + children: vec![], }; while !is_one_of!(self, ";", EOF) {