Closed vsobotka closed 1 year ago
hi @vsobotka - thanks for reporting this.
question: how is 'messages.ts' being imported?
For example, does the import statement include the .ts
extension? In which case, this could be #281
The file is a bit big - although that should not really be an issue...
@mrseanryan Thanks for the reply. I just tried several things to give your more details with examples, and I realized, thanks to your question, we might have had one import * in the project for convenience. After removing that, it works as expected. Obviously. Silly me. Thanks!
ts-prune seems to be working with this import though, so it might be a possible feature
We have a
src/Messages.ts
file, containing all localisation messages used in the app in a format like this:We have a tsconfig
And we run it like
npx ts-unused-exports ./tsconfig.json
in the root dir. The result does not contain that file, while the IDE can detect more than 150 unused messages.The Messages.ts has over 10k lines. Maybe that is an issue? Why am I not seeing any results from this file?