6.0.0 (2022-05-25)
Upgrade guide
shims
option isfalse
by default: If you're dual-publishing (i.e.--format esm,cjs
) and using platform specific API likeimport.meta.url
,__dirname
and__filename
, you need to manually enable--shims
flag now, becauseimport.meta.url
won't work in acjs
module, and__dirname
,__filename
won't work in anesm
module.target
option is nownode14
by default: previously it wasnode12
, the minimal node version that tsup can run in is also changed tonode14
New Features
- New
treeshake
option: You can use Rollup for tree-shaking now, read more https://tsup.egoist.sh/#tree-shaking