This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
Replies: 1 comment
-
Sorry I don't know how |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The README mentions doing a type-check only with
--noEmit
and then usingvite
for regular build.Is
vue-tsc
a full, compatible, typescript compiler though?Can I build a basic project on the CLI using
vue-tsc
without the "no emit" flag?More interestingly: can I use it as a custom TSC compiler in loaders such as
rollup-plugin-typescript2
?Some background / context:
rollup-plugin-typescript2
to achieve that, which has an option to use a specific compiler.tsc
, so I'm left with 2 options if I want to typecheck my project:vue-tsc --noEmit && vite build
, which would in my case go through TS compiler twice, so that's a bit of a bummer speedwise, but it'd work;vue-tsc
fortypescript
inrollup-plugin-typescript2
, hoping it would compile and do the full typechecking magic.I suppose (2) would require some fiddling with the
vue
rollup plugin, which compiles SFC files, so that each plugin sees the correct input. Otherwiserollup-plugin-typescript2
sees already compiled.vue
files and that would ruin thevue-tsc
magic.Beta Was this translation helpful? Give feedback.
All reactions