TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rolldown: Rollup compatible bundler written in Rust

186 pointsby bpierreabout 1 year ago

15 comments

the_mitsuhikoabout 1 year ago
This is an interesting case of critical mass. A few years ago Rust was a pretty suboptimal language to start JavaScript tooling in (or Python for that matter). Some crazy folks however did not care, and just went for it. As time went on, that base level of investment into tooling all the sudden meant that there was so much to leverage, that it went from an obscure language choice to a pretty reasonable one.
评论 #39649300 未加载
catlifeonmarsabout 1 year ago
The “Why Rolldown” section cites two reasons:<p>1) esbuild isn’t good at splitting 2) rollup is too slow<p>Why wasn’t it an option to improve esbuild’s splitting functionality or to improve rollup performance? Why is it the best option to introduce yet another tool?
评论 #39641043 未加载
评论 #39640852 未加载
评论 #39648399 未加载
评论 #39641634 未加载
评论 #39642653 未加载
评论 #39640741 未加载
评论 #39641140 未加载
评论 #39647564 未加载
评论 #39642203 未加载
评论 #39640902 未加载
plz-remove-cardabout 1 year ago
Doesn&#x27;t Rollup already use quite a bit of rust[0]? It&#x27;s actually why I had to abandon it for a project, where they didn&#x27;t offer binaries for our build platform and I needed to bundle, like 2 ES6 javascript libraries so I just grabbed esbuild instead.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;rollup&#x2F;rollup&#x2F;tree&#x2F;master&#x2F;rust">https:&#x2F;&#x2F;github.com&#x2F;rollup&#x2F;rollup&#x2F;tree&#x2F;master&#x2F;rust</a>
评论 #39642532 未加载
lakpanabout 1 year ago
The question is: is the output as good as Rollup? I haven’t seen a bundler that outputs code that isn’t junk that <i>must</i> be minified to be any good.<p>With rollup, I can just ship it as a web extension and it’s still 100% readable.
评论 #39641375 未加载
unrollerabout 1 year ago
Rollup produces an AST (with acorn) then it manipulates the original source code as a string with MagicString which is a less than ideal hack for code transformations. Will Rolldown eschew the MagicString approach altogether and transform the AST directly? The advantage would be that the emitted code would not have to be reparsed again for downstream use.
评论 #39642772 未加载
bhoustonabout 1 year ago
When can I use this in vite? Vite build is fast but this should make it way faster.<p>Is there a way to enable this in Vite the near term to test?
评论 #39641406 未加载
chuckyabout 1 year ago
Their about page (<a href="https:&#x2F;&#x2F;rolldown.rs&#x2F;about" rel="nofollow">https:&#x2F;&#x2F;rolldown.rs&#x2F;about</a>) describes why they want to do this, but after reading it I&#x27;m still unsure why they can&#x27;t accomplish their goals by adding features to esbuild? Maybe the project goals are too different?
评论 #39641608 未加载
评论 #39640817 未加载
deprabout 1 year ago
One of the authors has contributed to SWC. I wonder what caused them to build an alternative.
评论 #39641560 未加载
评论 #39640945 未加载
评论 #39641328 未加载
brapabout 1 year ago
The landing pages of Rolldown, Rollup and Vite all look the same. Is it the same people behind it? What other projects are there?
评论 #39641606 未加载
briantakitaabout 1 year ago
Why do you need chunking? Are there any use cases other than. Your js payload is huge and you are using a Single Page App?
评论 #39643295 未加载
cod1rabout 1 year ago
I would like to shill rsbuild&#x2F;rspack. Haven&#x27;t used it extensively but the experience has been ok so far. :)
tekkkabout 1 year ago
Great! Hopefully this makes using dynamic import easier when you say want to chunk your language dependencies and only import them as needed during runtime. As I just tried this with Vite it was quite a hassle and I decided it was easier to just import all async after initial render.
gsuuonabout 1 year ago
Excited for this, Vite running on a single bundler means you can finally trust what you&#x27;re seeing with the dev server.
评论 #39645139 未加载
brigadier132about 1 year ago
I actually can&#x27;t understand javascript bundling, am I just dumb? I try to build a monorepo and every single time I get errors building my nodejs apis because of esm &#x2F; cjs module bundling.<p>Why do I even need to bundle a nodejs api? My current project&#x27;s backend is completely in Rust because I actually found that easier to deal with. Kubernetes was easier to figure out for me.
评论 #39645867 未加载
polished-shoeabout 1 year ago
Yet another bundler. Why should I adopt this one?<p>More importantly, how is this being funded? I find it hard to believe that core team is running off sponsor dollars. Is this project going to be around next year? Maybe it&#x27;s coming from Vite sponsorship backers.
评论 #39641516 未加载