-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destructured exports no unused modules #2038
Destructured exports no unused modules #2038
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Named exports aren’t destructuring; please update the terminology :-)
I don't see how // Exporting destructured assignments with renaming
export const { name1, name2: bar } = o; |
Ohh, i misunderstood! Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, seems good
(Note that merging this is blocked on #1986) |
4953c36
to
2057c05
Compare
This was actually fixed by #1997, but I've rebased this to keep the test. |
Hey @ljharb, I don't think this was fully fixed by #1997 as it only addresses object type destucturing, not including array types. You can see it in the code: I'm seeing this in the code with the version 2.28.1, which has the fix with #1997. Here is a code chunk I have:
and here is the error I get:
|
@emreboga interesting - would you mind filing a new issue about that one? |
Fixes #2037