fix(schema): ignore empty string in app.{rootId|rootTag} (#22543)

This commit is contained in:
Damian Głowala 2023-08-09 09:29:08 +02:00 committed by GitHub
parent 70fe659ac9
commit cdcfb1bd82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,13 +174,16 @@ export default defineUntypedSchema({
/** /**
* Customize Nuxt root element id. * Customize Nuxt root element id.
*/ */
rootId: '__nuxt', rootId: {
$resolve: val => val || '__nuxt'
},
/** /**
* Customize Nuxt root element tag. * Customize Nuxt root element tag.
*
*/ */
rootTag: 'div' rootTag: {
$resolve: val => val || 'div'
}
}, },
/** /**