diff --git a/.changeset/light-students-jog.md b/.changeset/light-students-jog.md new file mode 100644 index 00000000000..f51b5b423f5 --- /dev/null +++ b/.changeset/light-students-jog.md @@ -0,0 +1,5 @@ +--- +"@rspack/binding": patch +--- + +fix: react refresh runtime inject for nest function call diff --git a/crates/rspack_plugin_javascript/src/visitors/swc_visitor/react.rs b/crates/rspack_plugin_javascript/src/visitors/swc_visitor/react.rs index c14e803f232..20484e2657f 100644 --- a/crates/rspack_plugin_javascript/src/visitors/swc_visitor/react.rs +++ b/crates/rspack_plugin_javascript/src/visitors/swc_visitor/react.rs @@ -58,6 +58,7 @@ impl Visit for FoundReactRefreshVisitor { } } } + call_expr.visit_children_with(self); } }