fix(schema): include ofetch in typescript.hoist defaults (#26316)

This commit is contained in:
Joaquín Sánchez 2024-03-17 17:56:47 +01:00 committed by GitHub
parent b3ced3d694
commit 4c8793587b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ export default defineUntypedSchema({
*/
hoist: {
$resolve: (val) => {
const defaults = ['nitropack', 'defu', 'h3', '@unhead/vue', 'vue', 'vue-router', '@nuxt/schema', 'nuxt', 'consola']
const defaults = ['nitropack', 'defu', 'h3', '@unhead/vue', 'vue', 'vue-router', '@nuxt/schema', 'nuxt', 'consola', 'ofetch']
return val === false ? [] : (Array.isArray(val) ? val.concat(defaults) : defaults)
}
},