From 4c8793587bffae428ca0427b188ccc5dccfaaebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Sun, 17 Mar 2024 17:56:47 +0100 Subject: [PATCH] fix(schema): include `ofetch` in `typescript.hoist` defaults (#26316) --- packages/schema/src/config/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema/src/config/typescript.ts b/packages/schema/src/config/typescript.ts index 61cd176de5..9fcdf4ada2 100644 --- a/packages/schema/src/config/typescript.ts +++ b/packages/schema/src/config/typescript.ts @@ -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) } },