News for hackers. Stuff that matters.
Re:Show HN: ts-remove-unused – Remove unused code from your ... by _jayhack_ on Tuesday September 24, 2024 @03:42PM (#41640140)
This is simple and configurable with Codegen - see the results on `renovate` here: https://www.codegen.sh/codemod/4553/public/diff

Most transformations like this are not possible with pure static analysis and require some domain knowledge (or repo-specific knowledge) in order to pull off correctly. This is because some code gets "used" in ways that are not apparent i the code.

Enjoy!

There are no comments on this comment yet.