Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Dec 21, 2023
1 parent bd0e512 commit 21829c9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ impl VisitMut for TranspileCssProp {
acc.push(Box::new(Expr::Arrow(ArrowExpr {
span: DUMMY_SP,
params: vec![Pat::Ident(p.clone().into())],
body: Box::new(BlockStmtOrExpr::Expr(Box::new(
p.make_member(identifier),
))),
body: Box::new(BlockStmtOrExpr::Expr(
p.make_member(identifier).into(),
)),
is_async: false,
is_generator: false,
type_params: Default::default(),
Expand Down Expand Up @@ -470,7 +470,7 @@ impl PropertyReducer<'_> {
})),
}));

prop.expr = Box::new(self.p.clone().make_member(identifier));
prop.expr = self.p.clone().make_member(identifier).into();
}

acc.push(property);
Expand Down Expand Up @@ -500,7 +500,7 @@ impl PropertyReducer<'_> {
})),
}));

set_key_of_prop(prop, Box::new(self.p.clone().make_member(identifier)));
set_key_of_prop(prop, self.p.clone().make_member(identifier).into());
}

let mut value = take_prop_value(prop);
Expand Down Expand Up @@ -534,7 +534,7 @@ impl PropertyReducer<'_> {

acc.push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp {
key,
value: Box::new(self.p.clone().make_member(identifier)),
value: self.p.clone().make_member(identifier).into(),
}))));
} else {
set_value_of_prop(prop, value);
Expand Down

0 comments on commit 21829c9

Please sign in to comment.