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

False "unused dependencies" for export ... from ... #262

Closed
kaime opened this issue Aug 8, 2018 · 1 comment · Fixed by #272
Closed

False "unused dependencies" for export ... from ... #262

kaime opened this issue Aug 8, 2018 · 1 comment · Fixed by #272

Comments

@kaime
Copy link

kaime commented Aug 8, 2018

I'm using a lot lines like this one:

export { Foo as Bar} from 'some-package'

If a package is used only this way, depcheck will issue an "unused dependency" message. If I change it to this other equivalent code, then it won't detect as unused.

import { Foo as Bar } from 'some-package'
export { Bar }
mnkhouri added a commit that referenced this issue Aug 13, 2018
Add (currently failing) tests for #262
@mnkhouri
Copy link
Member

Thanks for the report @kaime! I've added some tests to reproduce this bug in #272

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 a pull request may close this issue.

2 participants