Last active
June 17, 2023 15:06
-
-
Save ivanbanov/6f33117842deebc3b0784ec82da3a2f8 to your computer and use it in GitHub Desktop.
Bundlers comparison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | 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