News for hackers. Stuff that matters.
Re:Speeding up the JavaScript ecosystem – The barrel file de... by skybrian on Monday October 09, 2023 @09:31AM (#37820296)
A fundamental problem in the JavaScript ecosystem is mixing up source files and "binary" (optimized, minified) files. URL imports seem like a bad move because they can point to either.

Sourcemaps help somewhat, but even with Deno, when using an IDE, the source you want is often in another castle. You might get minimized code or type definitions.

Contrast with the Go system which rarely has this problem. Following imports goes to source.

Re:Speeding up the JavaScript ecosystem – The barrel file de... by Sophistifunk on Wednesday October 11, 2023 @12:01AM (#37840742)
Yeah this seems to be absolutely everywhere and entrenched, mainly because it's how npm did things :(