mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(types): type vite options (#235)
This commit is contained in:
parent
58327824fb
commit
3e855c280f
@ -16,6 +16,7 @@ export default defineBuildConfig({
|
||||
],
|
||||
externals: [
|
||||
'webpack',
|
||||
'vite',
|
||||
'nuxt',
|
||||
'nuxt3'
|
||||
]
|
||||
|
@ -616,10 +616,5 @@ export default {
|
||||
app: {
|
||||
$resolve: (val, get) => ({ ...get('app'), ...(val || {}) })
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Enable vite mode.
|
||||
*/
|
||||
vite: false
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user