Morty Choi
Morty Choi

Reputation: 2540

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.

Upvotes: 6

Views: 2034

Answers (1)

Eduardo Resende
Eduardo Resende

Reputation: 126

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

vue-tsc --noEmit

Upvotes: 2

Related Questions