Skip to content

Conversation

@dword-design
Copy link

@dword-design dword-design commented Dec 16, 2025

Closes #487.

Generally, I was thinking that the regex solution feels very fragile. Parsing the file would probably the more stable solution, so there are probably more cases.

And we'd probably need a test and I'm not sure where to put it.

@antfu
Copy link
Member

antfu commented Dec 16, 2025

Could you help to add some tests for it? Thanks

@dword-design
Copy link
Author

I added one. Doesn't look too bad.

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.

Local var detection swallows auto imports after for loop destructuring

2 participants