We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3dc51 commit 80f815cCopy full SHA for 80f815c
libs/extractor/src/extractor/extract_global_style_from_expression.rs
@@ -105,18 +105,16 @@ pub fn extract_global_style_from_expression<'a>(
105
)));
106
} else if let ArrayExpressionElement::TemplateLiteral(t) = p {
107
let css_styles = css_to_style(
108
- &t.quasis
+ t.quasis
109
.iter()
110
.map(|q| q.value.raw.as_str())
111
.collect::<String>()
112
- .trim()
113
- .to_string(),
+ .trim(),
114
0,
115
&None,
116
)
117
.into_iter()
118
- .map(|p| p.extract())
119
- .flatten()
+ .flat_map(|p| p.extract())
120
.collect::<Vec<_>>();
121
styles.push(ExtractStyleProp::Static(ExtractStyleValue::FontFace(
122
ExtractFontFace {
0 commit comments