4 ms·
In your position I'd probably do the same thing and no doubt the ESM/commonJS mess is a mess and huge PITA. All that said I'll probably continue with my TypeSc
by joshstrange 3y ago
In your position I'd probably do the same thing and no doubt the ESM/commonJS mess is a mess and huge PITA.
All that said I'll probably continue with my TypeScript/NodeJS backends since I just absolutely love writing TypeScript and I love sharing code between the front and backend. I use JS/TS in my day job (frontend only) as well so it's super nice to be able to benefit from that knowledge/practice. I also use TypeScript to write a few apps (some for work, some for my side project, some for personal use) so staying in the TypeScript ecosystem for almost everything I do is really nice.
Again, I'm not defending that annoying/bad parts of TS and certainly not saying I've escaped the ESM/commonJS hell unscathed, just that I use TS everywhere and I generally have a lot of fun writing/running it.