Reputation:
I'm preparing for the js13k game dev competition and have been searching for ways to minify TypeScript code. Base on this SO question from 4 years ago, the solution seems to be compiling TypeScript code to JS and use the regular js tools but in doing so you lose all the valuable type information.
Is there any way to make use of TypeScript's types to better minify and optimize the code's output?
Upvotes: 5
Views: 3500
Reputation: 479
I know this question is two years old, but I ran across this question looking for something similar and this is what I've found so far (note that the latter two, at time of writing, both are works in progress):
Upvotes: 2