mirror of https://github.com/nuxt/nuxt.git
fix(types): type vite options (#235)
This commit is contained in:
parent
58327824fb
commit
3e855c280f
|
@ -16,6 +16,7 @@ export default defineBuildConfig({
|
||||||
],
|
],
|
||||||
externals: [
|
externals: [
|
||||||
'webpack',
|
'webpack',
|
||||||
|
'vite',
|
||||||
'nuxt',
|
'nuxt',
|
||||||
'nuxt3'
|
'nuxt3'
|
||||||
]
|
]
|
||||||
|
|
|
@ -616,10 +616,5 @@ export default {
|
||||||
app: {
|
app: {
|
||||||
$resolve: (val, get) => ({ ...get('app'), ...(val || {}) })
|
$resolve: (val, get) => ({ ...get('app'), ...(val || {}) })
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Enable vite mode.
|
|
||||||
*/
|
|
||||||
vite: false
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,13 @@ export interface TypedConfigSchema extends ConfigSchema {
|
||||||
hooks: NuxtHooks,
|
hooks: NuxtHooks,
|
||||||
modules: ModuleInstallOptions[]
|
modules: ModuleInstallOptions[]
|
||||||
buildModules: ModuleInstallOptions[]
|
buildModules: ModuleInstallOptions[]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable vite mode
|
||||||
|
*
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
vite: boolean | import('vite').InlineConfig
|
||||||
[key: string]: any
|
[key: string]: any
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue