When no --format
flag is specified..
tsup src/index.ts
..tsup can look in package.json
for clues.
main
, module
, types
/typings
, and unpkg
/jsdelivr
fields all imply the preferred output paths, even allowing for custom bundle names.module
exists, tsup creates an ESM bundle.types
or typings
exist, tsup creates a .d.ts
bundle.unpkg
or jsdelivr
exist, tsup creates a UMD bundle.Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too