News for hackers. Stuff that matters.
Re:Preact: Fast 3kb React Alternative with the Same API, Com... by IgorPartola on Saturday December 12, 2020 @06:58AM (#25397704)
This is too real. I don’t use webpack directly, only the way vue-cli bundles it, but still it’s a sort of blessing and curse. It is also dog slow for what it’s doing: even something like make can cache compilation objects and make sure that for example Bootstrap’s SCSS doesn’t need to be recompiled every time I update the background color of my app in my own stylesheet. And while speed measuring plugins exist, I am still at a loss at how to optimize a build of a simple SPA where my code all in is less than 10KB and yet it takes like 30 seconds to produce a build. And as you say, when a bug hits, good luck figuring that out.
Re:Preact: Fast 3kb React Alternative with the Same API, Com... by emilsedgh on Saturday December 12, 2020 @11:13PM (#25404254)
Try esbuild instead of babel. Really helps. There is an esbuild-loader that can replace babel neatly.