this post was submitted on 02 Aug 2024
10 points (100.0% liked)

JavaScript

1906 readers
7 users here now

founded 1 year ago
MODERATORS
 

I've heard many of them. For example: rolldown, rspack, swc, oxc, esbuild, parcel, vite etc.

I can currently use JS projects without these tools. What extra do they add? Why should I use them instead of simply using tsc?

Though I must admit I like vite simplicity in front-end.

top 4 comments
sorted by: hot top controversial new old
[–] not_woody_shaw@lemmy.world 6 points 1 month ago

esbuild is written in Go, not Rust. But the reason all these things exist is speed. How long do you want to wait to find out if your build succeeded? 5 minutes or 5 seconds?

[–] CaptDust@sh.itjust.works 5 points 1 month ago (1 children)

Most of what you listed are bundlers, and they exist because they go faster. You probably won't gain much in a small project, but when tsc starts taking 5 to 10 minutes to build - that's a good time to shop around.

[–] FizzyOrange@programming.dev 3 points 1 month ago

5 minutes? Jesus I wouldn't wait that long when there's a simple way to make your build 10x faster.

[–] hperrin@lemmy.world 5 points 1 month ago

They’re fast.