vite-plugin-checker icon indicating copy to clipboard operation
vite-plugin-checker copied to clipboard

vueTsc doesn't support --composite flag

Open Ltyi opened this issue 3 years ago • 3 comments

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

image

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.

Ltyi avatar Jun 21 '22 05:06 Ltyi

any updates on this?

ilgiznurgaliev avatar Oct 18 '22 07:10 ilgiznurgaliev

I would need this too.

masterT avatar May 08 '23 15:05 masterT

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',
    },
})

danielwwc avatar Jun 27 '23 18:06 danielwwc