Hacker News new | ask | show | jobs
by mridang 637 days ago
Doesn't the new node feature to strip types handle this already? https://nodejs.org/en/learn/typescript/run-natively

I haven't used it as I haven't had a need for it.

1 comments

It does!

Node uses swc to do this. The swc implementation of blank-spacing (implemented here https://github.com/swc-project/swc/pull/9144) was inspired by the author of ts-blank-space here: https://gist.github.com/acutmore/27444a9dbfa515a10b25f0d4707.... It has just taken a little longer to release the original implementation.