Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update swc_core to v0.69.0 #158

Merged
merged 14 commits into from
Mar 13, 2023
Prev Previous commit
Fix
kdy1 committed Mar 13, 2023
commit eedade84fbe664edafe535ccc26060e7e8a0b37e
Original file line number Diff line number Diff line change
@@ -164,7 +164,7 @@ impl VisitMut for TranspileCssProp {
_ => false,
} =>
{
Expr::Tpl(v.tpl.take())
Expr::Tpl(*v.tpl.take())
}
Expr::Object(..) => *v.take(),
_ => Expr::Tpl(Tpl {
@@ -234,7 +234,7 @@ impl VisitMut for TranspileCssProp {
css = Expr::Arrow(ArrowExpr {
span: DUMMY_SP,
params: vec![Pat::Ident(p.clone().into())],
body: BlockStmtOrExpr::Expr(Box::new(css.take())),
body: Box::new(BlockStmtOrExpr::Expr(Box::new(css.take()))),
is_async: false,
is_generator: false,
type_params: Default::default(),
@@ -277,9 +277,9 @@ impl VisitMut for TranspileCssProp {
acc.push(Box::new(Expr::Arrow(ArrowExpr {
span: DUMMY_SP,
params: vec![Pat::Ident(p.clone().into())],
body: BlockStmtOrExpr::Expr(Box::new(
body: Box::new(BlockStmtOrExpr::Expr(Box::new(
p.make_member(identifier),
)),
))),
is_async: false,
is_generator: false,
type_params: Default::default(),
@@ -306,7 +306,7 @@ impl VisitMut for TranspileCssProp {
span: DUMMY_SP,
tag: Box::new(styled),
type_params: Default::default(),
tpl: css.expect_tpl(),
tpl: Box::new(css.expect_tpl()),
})),
}),
definite: false,
2 changes: 1 addition & 1 deletion packages/styled-jsx/transform/src/visitor.rs
Original file line number Diff line number Diff line change
@@ -583,7 +583,7 @@ impl StyledJSXTransformer {
}

let style = self.get_jsx_style(
StyleExpr::Tpl(&tagged_tpl.tpl, &Expr::Tpl(tagged_tpl.tpl.clone())),
StyleExpr::Tpl(&tagged_tpl.tpl, &Expr::Tpl(*tagged_tpl.tpl.clone())),
false,
);
let styles = vec![style];