Skip to content

vixt / core / TypescriptOptions

TypescriptOptions

Properties

references?

optional references?: (string | { content?: string; path?: string; })[]


shim?

optional shim?: boolean

Generate a *.vue shim

Default

ts
false

tsConfig?

optional tsConfig?: TSConfig & object

You can extend the generated TypeScript configurations (.vixt/tsconfig.json) using this option.

Type Declaration

extends?

optional extends?: string | string[]

Default
ts
'@vue/tsconfig/tsconfig.dom.json'
vueCompilerOptions?

optional vueCompilerOptions?: RawVueCompilerOptions


typeCheck?

optional typeCheck?: Partial<PluginConfig>

Enable build-time or dev-server type checking.

See

https://github.com/fi3ework/vite-plugin-checker

Example

ts
export default defineVixtConfig({
  typescript: {
    typeCheck: {
      vueTsc: true // for Vue
      typescript: true // for React
    },
  },
})