Re:Today’s JavaScript, from an outsider’s perspective (2020)
by emn13 on Friday May 27, 2022 @04:51AM
(#31527430)
The difference likely is that they didn't do what these people did - try to use some package from scratch. It's much easier to take a sample and extend it, especially if you can join a team and hop onto their running, fully-fledged project.
The JS tooling story _is_ convoluted, and most people just don't touch that stuff, or when they do, they start from a working place, and just make small tweaks.
Re:Today’s JavaScript, from an outsider’s perspective (2020)
by thegeomaster on Friday May 27, 2022 @05:04AM
(#31527490)
But the problem is, JS has been in a transition from some X to some Y for the last 10 years.
Re:Today’s JavaScript, from an outsider’s perspective (2020)
by corrral on Friday May 27, 2022 @12:33PM
(#31531516)
A little longer than that. Everything went to shit basically as soon as Node hit the scene—not sure if it can be blamed for it, exactly, but the timeline fits.
Re:Today’s JavaScript, from an outsider’s perspective (2020)
by franciscop on Friday May 27, 2022 @03:07PM
(#31533573)
commonjs to ESM is the first truly breaking change that the JS ecosystem has experienced, everything else was a lot smoother
TBF right now JS is in transition from commonjs to ESM, and we all believe for the better, but this transition period does yield some strange issues like the article said, for instance I hope/expect that "Warning: To load an ES module [...]" will be default in the near future so we won't need that warning anymore.
Also knowing JS enough, if I see "SyntaxError: Cannot use import statement outside a module" coming from a package I'd know that the package is wrong, at which point I would just try to find other of the 2M+ packages, open the JS file to see how it works if I'm really interested, open an issue or assume the project is just broken (which just happens, not all packages are well built).