Skip to content
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

FIX Support non-named imports #80

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Conversation

Gerrit88
Copy link
Contributor

@Gerrit88 Gerrit88 commented Apr 2, 2024

The toggle rule breaks for non-named imports like this:

import * as Opticks from 'opticks'

This fixes it by checking if specifier.imported exists while testing the import path.

@Gerrit88 Gerrit88 self-assigned this Apr 2, 2024
@Gerrit88 Gerrit88 requested a review from dale-french April 2, 2024 12:19
@Gerrit88 Gerrit88 added the bug Something isn't working label Apr 2, 2024
@Gerrit88 Gerrit88 marked this pull request as ready for review April 2, 2024 12:19
@Gerrit88 Gerrit88 merged commit b742a51 into master Apr 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants