3 ms·
As soon as you add TS to the mix, you have to deal with TS compiler not being able to output run-ready JS (or has that changed by now?), because of JS issues wi
by zelphirkalt 3y ago
As soon as you add TS to the mix, you have to deal with TS compiler not being able to output run-ready JS (or has that changed by now?), because of JS issues with modules and you need a "bundler", yet another accidental complexity, and one that is often a nightmare to configure. Then some drive-by person will want you to minify all the things and you add another unnecessary complexity.
TS is great mostly. But it definitely comes at a cost.
- MrJohz 3y agoI think the situation with TS has improved, but yes, I only really use it with a bundler where that isn't an issue - in this case, Vite. But typically Vite does most of the things you'll need out of the box, and I find I rarely need to think about it, so it's the sort of complexity I'm mostly happy to take on.