Re-exported type reported as unused with ignoreExportsUsedInFile
#622
Labels
bug
Something isn't working
ignoreExportsUsedInFile
#622
Repro: https://stackblitz.com/edit/github-hqqlbk?file=component%2Findex.ts
We have a standard module template for our React components, so that every component (at least) exports its props and the component itself, like
This works fine with Knip even if nothing imports the props, as long as
ignoreExportsUsedInFile
is set totrue
.However, it doesn't work on our wrapper components, where we re-export the props from an internal file
I would have expected in this case that
ComponentProps
would not be reported as an unused export fromindex.ts
because ofignoreExportsUsedInFile
, but it was:The text was updated successfully, but these errors were encountered: