fix(types): type vite options (#235)

This commit is contained in:
Anthony Fu 2021-06-17 18:01:24 +08:00 committed by GitHub
parent 58327824fb
commit 3e855c280f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -16,6 +16,7 @@ export default defineBuildConfig({
],
externals: [
'webpack',
'vite',
'nuxt',
'nuxt3'
]

View File

@ -616,10 +616,5 @@ export default {
app: {
$resolve: (val, get) => ({ ...get('app'), ...(val || {}) })
}
},
/**
* Enable vite mode.
*/
vite: false
}
}

View File

@ -6,6 +6,13 @@ export interface TypedConfigSchema extends ConfigSchema {
hooks: NuxtHooks,
modules: ModuleInstallOptions[]
buildModules: ModuleInstallOptions[]
/**
* Enable vite mode
*
* @default false
*/
vite: boolean | import('vite').InlineConfig
[key: string]: any
}