Skip to content

React Usage check: detect function names wrapped by bundlers - #4

Merged
gunjanjaswal merged 1 commit into
gunjanjaswal:add/inlined-react-runtime-checkfrom
jsnajdr:update/react-usage-call-detection
Sep 24, 2026
Merged

gunjanjaswal merged 1 commit into
gunjanjaswal:add/inlined-react-runtime-checkfrom
jsnajdr:update/react-usage-call-detection

Conversation

@jsnajdr

@jsnajdr jsnajdr commented Sep 24, 2026

Copy link
Copy Markdown

Fixes an issue where webpack-compiled calls in form (0,r.findDOMNode)(this) were not detected, because we were looking for findDOMNode(. Webpack and other bundlers use this trick to remove the this binding from r.findDOMNode (binding it to r) and make it undefined.

@jsnajdr

jsnajdr commented Sep 24, 2026

Copy link
Copy Markdown
Author

@gunjanjaswal Can you have a look at this one? Should be the last patch before merging 🙂

@gunjanjaswal
gunjanjaswal merged commit 848375e into gunjanjaswal:add/inlined-react-runtime-check Sep 24, 2026
@gunjanjaswal

Copy link
Copy Markdown
Owner

Merged — nice catch that the bundled corpus always had a plain findDOMNode call so the interop form never surfaced in your local testing. And agree on keeping the strong wording for the polyfilled three; the react-dom patch is a stopgap, not a green light, so flagging it hard is right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants