Saturday, April 06, 2024

SWC: JS/TS compilation and bundling dev tool

Rust-based platform for the Web – SWC (swc.rs)

SWC is an extensible Rust-based platform for the next generation of fast developer tools. It's used by tools like Next.js, Parcel, and Deno, as well as companies like Vercel, ByteDance, Tencent, Shopify, and more.

SWC can be used for both compilation and bundling. For compilation, it takes JavaScript / TypeScript files using modern JavaScript features and outputs valid code that is supported by all major browsers.

SWC is 20x faster than Babel on a single thread and 70x faster on four cores.




HTMX vs React

Most of modern "SPA" web applications are very large, while base JS libraries are not.
Could it be that some building blocks are missing in those libs to enable making simpler and smaller apps?
Something like HTML extended, standard web components libs?

HTMX vs React: A Complete Comparison - Semaphore

             : HTMX : React
Weight : 2.9 kB : 6.4 kB