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

Allow "import { type X }" to be part of the "typeOnly" tracking process #102

Closed
antoine-coulon opened this issue Sep 20, 2023 · 0 comments · Fixed by #105
Closed

Allow "import { type X }" to be part of the "typeOnly" tracking process #102

antoine-coulon opened this issue Sep 20, 2023 · 0 comments · Fixed by #105
Labels
bug Something isn't working core

Comments

@antoine-coulon
Copy link
Owner

Currently, there is the --trackTypeOnlyDependencies CLI flag and dependencyTracking: { typeOnly: boolean } API option both supposed to turn on/off the type-level dependency tracking.

However, this only supports TypeScript import type { X } while type-level imports can also be expressed as import { type X }.

Goal of the issue: discard modules imported using import { type X } from the graph when the config says so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant