anyone know if it's possible to speed up the launching of my typescript build step in vscode?
for some reason it takes like 3 seconds to launch, idk if it's recompiling unnecessarily or something before executing?
I've already got the typescript compiler in watch mode in the background compiling
for some reason it takes like 3 seconds to launch, idk if it's recompiling unnecessarily or something before executing?
I've already got the typescript compiler in watch mode in the background compiling
Comments
https://nodejs.org/api/typescript.html#type-stripping
time zsh -i -c exit
(or adjust the command for different shells)
Not sure how to do this on Windows though..
Your run script is pointing to the source ts file, not output of tsc. So tsx needs to compile files again with esbuild.
It's actually fine to do this. Esbuild is much faster compared to tsc.
npx does some weird stuff in the background making it slow. VSCode should have support for running npm scripts from tasks.
npm install -g typescript
https://bsky.app/profile/freya.bsky.social/post/3lfctdjluxk2h
https://discord.gg/eVxKpw3P
And Rolldown / OXC is supposed to be even faster than that.
this is much better, building is now 1 second instead of 4 seconds c:
https://bun.sh/