fix(schema): webpack options should be optional (#22524)

This commit is contained in:
Daniel Roe 2023-08-07 23:06:07 +01:00 committed by GitHub
parent b5c9a81d68
commit c2db29c28c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,9 +68,9 @@ export interface NuxtConfig extends DeepPartial<Omit<ConfigSchema, 'vite' | 'run
// Avoid DeepPartial for vite config interface (#4772)
vite?: ConfigSchema['vite']
runtimeConfig?: Overrideable<RuntimeConfig>
webpack?: ConfigSchema['webpack'] & {
$client?: ConfigSchema['webpack']
$server?: ConfigSchema['webpack']
webpack?: DeepPartial<ConfigSchema['webpack']> & {
$client?: DeepPartial<ConfigSchema['webpack']>
$server?: DeepPartial<ConfigSchema['webpack']>
}
/**