vite-plugin-checker
vite-plugin-checker copied to clipboard
vueTsc doesn't support --composite flag
Is your feature request related to a problem? Please describe.
using pnpm create vue@latest to create a new project and choose vitest, the typecheck will be vue-tsc --noEmit -p tsconfig.vitest.json --composite false

Describe the solution you'd like
maybe add a new options to set composite
Describe alternatives you've considered
No response
Additional context
No response
Validations
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
any updates on this?
I would need this too.
I would need this too.
A workaround is to create another tsconfig and set composite: false
Example:
// tsconfig.vite-plugin-check.json
{
"extends": "./tsconfig.vitest.json",
"compilerOptions": {
"composite": false
}
}
// vite.config.ts
checker({
vueTsc: {
tsconfigPath: 'tsconfig.vite-plugin-check.json',
},
})