If you don’t need the extra features tsdown offers(like shims or dual formats...) then tsdown essentially just transpiles TypeScript. By the way, tsdown also automatically adds file extensions (e.g., `.js`) to import statements.
Additionally, tsdown is faster than tsc. For example, in the tsdown repository:
- tsdown: 354.54ms
- tsc: 834.87ms
For larger projects, this performance gap will be even more significant.
For now, I think tsgo will solve that. Since we're comparing a native build to a js based build. It makes more sense to compare tsgo to tsdown
But I think that's fine, we don't need a bundler when we're shipping straight up esm. Everywhere else i can see us using tsdown
I think so. If I need to ship esm as-is, I can use tsgo. Don't really need to touch a bundler
And in all other cases I think it'd be nice to consolidate around using tsdown