Rollup | SWC | esbuild | tsup | Vite | Parcel | Webpack | |
---|---|---|---|---|---|---|---|
Monorepo support | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ✅ | ⛔️ |
Performance esbuid/swc | 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 |
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
const defaultFontFamily = 'Avenir, Helvetica Neue, Helvetica, Arial, sans-serif'; | |
const font = { | |
size: { | |
base: { | |
small: '16px', | |
large: '18px', | |
}, | |
// PX to REM based on 16px |
OlderNewer