babel-plugin-react-compiler 0.0.0-experimental-e552027-20250113 → 0.0.0-experimental-1a59184-20250113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -145646,9 +145646,11 @@ function returnsNonNode(node) {
145646
145646
  }
145647
145647
  }
145648
145648
  },
145649
+ // Skip traversing all nested functions and their return statements
145649
145650
  ArrowFunctionExpression: skipNestedFunctions(node),
145650
145651
  FunctionExpression: skipNestedFunctions(node),
145651
- FunctionDeclaration: skipNestedFunctions(node)
145652
+ FunctionDeclaration: skipNestedFunctions(node),
145653
+ ObjectMethod: (node2) => node2.skip()
145652
145654
  });
145653
145655
  return !hasReturn || returnsNonNode2;
145654
145656
  }