mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-13 04:08:11 +00:00
fix(schema): return null
from resolve functions
This commit is contained in:
parent
27e356fe67
commit
d68e8ce573
@ -371,7 +371,7 @@ export default defineResolvers({
|
|||||||
* }
|
* }
|
||||||
* </style>
|
* </style>
|
||||||
* ```
|
* ```
|
||||||
* @type {string | boolean | undefined}
|
* @type {string | boolean | undefined | null}
|
||||||
*/
|
*/
|
||||||
spaLoadingTemplate: {
|
spaLoadingTemplate: {
|
||||||
$resolve: async (val, get) => {
|
$resolve: async (val, get) => {
|
||||||
@ -381,7 +381,7 @@ export default defineResolvers({
|
|||||||
if (typeof val === 'boolean') {
|
if (typeof val === 'boolean') {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
return undefined
|
return null
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ export default defineResolvers({
|
|||||||
* builder environment types (with `false`) to handle this fully yourself, or opt for a 'shared' option.
|
* builder environment types (with `false`) to handle this fully yourself, or opt for a 'shared' option.
|
||||||
*
|
*
|
||||||
* The 'shared' option is advised for module authors, who will want to support multiple possible builders.
|
* The 'shared' option is advised for module authors, who will want to support multiple possible builders.
|
||||||
* @type {'vite' | 'webpack' | 'rspack' | 'shared' | false | undefined}
|
* @type {'vite' | 'webpack' | 'rspack' | 'shared' | false | undefined | null}
|
||||||
*/
|
*/
|
||||||
builder: {
|
builder: {
|
||||||
$resolve: (val) => {
|
$resolve: (val) => {
|
||||||
@ -32,7 +32,7 @@ export default defineResolvers({
|
|||||||
if (val === false) {
|
if (val === false) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return undefined
|
return null
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user