for projects that do NOT need type declarations, tsup (or the underlying esbuild) is extremely faster than tsc. this is helpful for both dev and prod builds.
for type checks, eslint helps us do the job. we need to run tsc manually, added in #6355.
some known limits:
if the project needs to emit type declarations, the performance usually stay the same between tsc and tsup
Summary
for projects that do NOT need type declarations,
tsup
(or the underlyingesbuild
) is extremely faster thantsc
. this is helpful for both dev and prod builds.for type checks,we need to runeslint
helps us do the job.tsc
manually, added in #6355.some known limits:
tsc
andtsup
Testing
Performance
less than 1s vs. 10s
Accuracy
locally tested, also should be ok with the current ci
Checklist
.changeset