#
tsup
#
Issues with tsc
tsc
, the native TypeScript CLI, pretty much offers everything that we need to compile and bundle our TypeScript libraries. We opted for tsup due to tsc
lacks of support for CSS imports, a requirement for enabling Chromatic's TurboSnap feature.
Given that either TurboSnap requirements or tsc
CSS imports support change, we will reevaluate this decision.
#
Main features
The shared configurations offered by @workleap/tsup-configs
includes the following features 👇
#
TypeScript features
- Emits declaration files
#
Development features
- Watch mode
- Sourcemaps
#
Production features
- Output to
/dist
#
Target environment
- ESM
- ESNext
#
Getting started
To get started, follow the quick start guide to configure tsup for either a development environment or a production environment.