Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to just run type check on vue files without runnning webpack build?

I would like to just type check vue files without building the whole application. Any way to do this?

I know vue-cli-service serve and vue-cli-service build will do typecheck by fork-ts-checker-webpack-plugin, but it build the whole application and it's slow.

like image 807
Morty Choi Avatar asked Nov 17 '22 09:11

Morty Choi


1 Answers

For Vue 3 you can use vue-tsc, to do this

vue-tsc --noEmit
like image 186
Eduardo Resende Avatar answered Dec 09 '22 20:12

Eduardo Resende