You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-19-replace-reactdom-render@0.1.4 produces invalid code when a comment is inside the render(...) call. This pattern is common because of eslint directives on JSX in .js files.
comment nodes are also children of arguments, so argList[0] is the comment. Filtering child.kind() !== "comment" as well (here and in the similar filter around line 151) should fix the argument positions. None of the existing fixtures under tests/ has a comment inside the call.
Real-world occurrence
inaturalist/inaturalist at 96f627e: the codemod modifies 21 files, and 3 of them stop parsing:
Activity