3 ms·
You'd already be using source maps in any real-world scenario so I am not sure what's the value proposition here outside of "just for fun, I guess". The tsc tr
by thecodrr 2y ago
You'd already be using source maps in any real-world scenario so I am not sure what's the value proposition here outside of "just for fun, I guess".
The tsc transpilation to lower ES versions is actually really useful when using not-so-recent Node versions. Not to mention this severely restricts TypeScript syntax to "just types" which isn't too bad but it means you now have to worry about yet another thing.
Then there's the ESM & CJS mess. You almost always want to export in both formats which will change a lot of the syntax, so this quickly falls apart for anything serious.
Just use esbuild if you want speed.
- rendall 2y agoAll of your objections are addressed in the article.
- apitman 2y ago> You'd already be using source maps in any real-world scenario We're shipping production real-time genomics apps in vanilla JS with no source maps.
- sureIy 2y ago> You almost always want to export in both formats I haven’t exported CJS in half a decade. I haven’t authored CJS in a decade. You most definitely do not always want to do that.