[compiler] Make inserting outlined functions more resilient
To handle more cases, always append the synthetic outlined function as a new child of the module rather than make assumptions about the original function. This should handle whatever case where the original function expression may be a child of a variety of parents ghstack-source-id: 8581edb8be706c0f4ce506caf7cd9b0f5a145bc8 Pull Request resolved: https://github.com/facebook/react/pull/30466
L
Lauren Tan committed
9f3bbb05ab29d531e343ddb2e85d89943669b6e7
Parent: d529a43