folke / esbuild-runner

⚡️ Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild
https://www.npmjs.com/package/esbuild-runner
Apache License 2.0
712 stars 24 forks source link

typescript check before run #68

Open hmz22 opened 2 years ago

hmz22 commented 2 years ago

any plugin or way check type error before run? I have wrong type in typescript but esbuild runner just run code without checking type. I install npm i esbuild-plugin-ts-checker and add to plugin but not work

akupiec commented 7 months ago

I would just use tsc -noEmit before running esbuild-runner :)

ex.:

tsc -noEmit && esr index.ts