Skip to content

Instantly share code, notes, and snippets.

@ivanbanov
Last active June 17, 2023 15:06
Show Gist options
  • Save ivanbanov/6f33117842deebc3b0784ec82da3a2f8 to your computer and use it in GitHub Desktop.
Save ivanbanov/6f33117842deebc3b0784ec82da3a2f8 to your computer and use it in GitHub Desktop.
Bundlers comparison
| | Rollup | SWC | esbuild | tsup | Vite | Parcel | Webpack |
|-----------------------------|-------------------|------|------------|--------------------|-------------------|-------------|------------|
| Monorepo support | ✅ | ✅ | ✅ | ✅ | ✅ | ⛔️ | ✅ |
| Performance esbuid/swc | ⛔️ | ⛔️ | ⛔️ | esbuid/swc | esbuid/swc | ⛔️ | esbuid/swc |
| Type declaration (.d.ts) | rollup-plugin-dts | ✅ | ✅ | rollup-plugin-dts | rollup-plugin-dts | ⛔️ | ts-loader |
| Declaration map (.d.ts.map) | ✅ | ✅ | ✅ | ✅ | ✅ | ⛔️ | ts-loader |
| Treeshaking | ⛔️ | ⛔️ | ⛔️ | esbuild + rollup | esbuild + rollup | ⛔️ | ⛔️ |
| Type-check | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ts-loader |
| Cache | ✅ | ✅ | ✅ | ✅ | ⛔️ (didnt try) | ⛔️ | ✅ |
| Watcher | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ |
| Setup | Easy | Easy | Easy | Easy | Easy? (didnt try) | Very easy | Medium |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment