Skip to content

Commit

Permalink
Add comment (close #808)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 10, 2024
1 parent 307ef8d commit 3dd6cfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/knip/src/typescript/get-imports-and-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ const getImportsAndExports = (
// For each export, see if it's referenced in same file,
// and whether it's referenced in an exported type and should be exported with it (*)
for (const item of exports.values()) {
// TODO Reconsider this messy logic in AST visitors + `isReferencedInExport` + `findInternalReferences`
if (item.symbol && referencedSymbolsInExport.has(item.symbol)) {
item.refs = [1, true];
} else {
Expand Down

0 comments on commit 3dd6cfd

Please sign in to comment.