Skip to content

chore: speed up typechecking#20131

Merged
patak-cat merged 1 commit into
mainfrom
arnaud/core-tsconfig
May 30, 2025
Merged

chore: speed up typechecking#20131
patak-cat merged 1 commit into
mainfrom
arnaud/core-tsconfig

Conversation

@ArnaudBarre
Copy link
Copy Markdown
Member

@ArnaudBarre ArnaudBarre commented May 29, 2025

Reading Ryan comment on this PR , I remembered that I often forget to set this which induce perf hit for no good reason. I did it for the tsconfig.check.json last year when optimizing the build perf, but not for other tsconfigs.

I also enable noEmit by default, declaration and generation is done by tsdown.

I removed baseUrl from the playground that is not needed anymore and will be deprecated in TS 6.

I did not touch the plugin-legacy because it's in a bad state, tsc fails there (it's does not run in CI). The issue is that it import types from the vite workspace and typechecking re-run on a lot of files from core. IMO the legacy plugin should depend on a publish version of Vite (like every other plugins does) and not the workspace one.

On my computer, pnpm typecheck went from 7.5s to 6.0s.

@ArnaudBarre ArnaudBarre self-assigned this May 29, 2025
@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label May 30, 2025
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Copy Markdown
Member

@patak-cat patak-cat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet!

@patak-cat patak-cat merged commit a357c19 into main May 30, 2025
22 checks passed
@patak-cat patak-cat deleted the arnaud/core-tsconfig branch May 30, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants