Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 27, 2025
1 parent fc30227 commit 6d91344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/swc_ecma_transforms_react/src/jsx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ fn add_require(imports: Vec<(Ident, IdentName)>, src: &str, unresolved_mark: Mar
declare: false,
decls: vec![VarDeclarator {
span: DUMMY_SP,
name: Pat::Object(ObjectPat {
name: Pat::Object(Box::new(ObjectPat {
span: DUMMY_SP,
props: imports
.into_iter()
Expand All @@ -1209,7 +1209,7 @@ fn add_require(imports: Vec<(Ident, IdentName)>, src: &str, unresolved_mark: Mar
.collect(),
optional: false,
type_ann: None,
}),
})),
// require('react')
init: Some(Box::new(Expr::Call(CallExpr {
span: DUMMY_SP,
Expand Down

0 comments on commit 6d91344

Please sign in to comment.