News for hackers. Stuff that matters.
Re:Linen.dev: The 500KB Slack Alternative by dns_snek on Wednesday April 26, 2023 @08:06PM (#35721602)
> I have a feeling tons of projects blindly trust that tree-shaking their dependencies will "just work" even though for many libraries it won't!

Is there an easier way to verify this than, say, observing the final bundle size and looking inside the JS bundle? I'm not a frontend developer so this is outside my usual area of knowledge.

Re:Linen.dev: The 500KB Slack Alternative by niedzielski on Wednesday April 26, 2023 @08:19PM (#35721682)
I use source-map-explorer to see what's inside. Lighthouse Treemap provides a similar view.

[source-map-explorer]: https://github.com/danvk/source-map-explorer

[Lighthouse Treemap]: https://umaar.com/dev-tips/270-devtools-lighthouse-treemap/

Re:Linen.dev: The 500KB Slack Alternative by throwaway14356 on Wednesday April 26, 2023 @11:41PM (#35723057)
i just write everything from scratch every time. (so don't take my advice)

I notice that if I lower the bar and allow half baked hackish solutions to slip in, beyond some point, upkeep consumes infinite time. There seems no way back from that besides starting from scratch.

There is no good reason for front end things to break. I can only think of document.writeln() but who in his right mind...