News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by city41 on Saturday May 15, 2021 @02:51PM (#27167844)
The shock wave that TS sends through a JS stack is hard to ignore. It's really annoying. Every tool added TS support in a slightly different way and you always have to keep it in mind no matter what you're doing. Sadly it's just the reality we gotta face. I'm hoping Rome can live up to the hype and be helpful here.
Re:Modern Javascript: Everything you missed over the last 10... by dvt on Saturday May 15, 2021 @03:07PM (#27167956)
Oh man, so true, between TS mangling and whatever framework you're using (Vue/React/etc.), the stack trace ends up being literally worthless. It's kind of funny to think about: when something goes wrong, I don't even look at the trace (which is 100% what you'd do in any sane language), but rather I just go back and look at the "last thing I changed."
Re:Modern Javascript: Everything you missed over the last 10... by city41 on Saturday May 15, 2021 @03:14PM (#27168020)
Ah that is true as well. When I said stack I meant like Babel, Storybook, Webpack, Jest, etc. But yeah JS stack traces aren't so fun these days.
Re:Modern Javascript: Everything you missed over the last 10... by Oddskar on Sunday May 16, 2021 @08:48AM (#27173345)
You aren't using source maps to transform your stack traces then? I've had very little issue in understanding stack traces in any of the major JS frameworks.
Re:Modern Javascript: Everything you missed over the last 10... by adamscybot on Saturday May 15, 2021 @05:23PM (#27169154)
I think esbuild is basically already doing most of what Rome promises
Re:Modern Javascript: Everything you missed over the last 10... by inbx0 on Sunday May 16, 2021 @09:06AM (#27173446)
From Rome readme:

> Rome is designed to replace Babel, ESLint, webpack, Prettier, Jest, and others.

Afaik esbuild only intends to be a replacement for 2 out of 5 of those things. It does that well for sure, but if parent commenter's main issue is the amount of different tools, I don't think esbuild will help.