News for hackers. Stuff that matters.
Re:Modern Node.js Patterns by sroussey on Sunday August 03, 2025 @06:40PM (#44780450)
It strips TS, it does not transpile.

Things like TS enums will not work.

Re:Modern Node.js Patterns by throwitaway1123 on Sunday August 03, 2025 @08:43PM (#44781127)
In Node 22.7 and above you can enable features like enums and parameter properties with the --experimental-transform-types CLI option (not to be confused with the old --experimental-strip-types option).
Re:Modern Node.js Patterns by sroussey on Monday August 04, 2025 @03:27AM (#44782931)
Excellent update! Thanks!
Re:Modern Node.js Patterns by 9dev on Monday August 04, 2025 @05:29PM (#44791581)
Don’t use enums. They are problematic for a few reasons, but the ability to run TS code without enums without a build step should be more than enough of a reason to just use a const object instead.
Re:Modern Node.js Patterns by sroussey on Thursday August 07, 2025 @11:32AM (#44825805)
Oh, I agree.