From 66ca0910f8a4deeda3da3522a399c022761e2639 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 1 Nov 2024 11:44:00 +0900 Subject: [PATCH] fix(nuxt): remove vue compiler hints from auto import (#29713) --- packages/nuxt/src/imports/presets.ts | 3 --- packages/nuxt/test/auto-imports.test.ts | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/imports/presets.ts b/packages/nuxt/src/imports/presets.ts index 7934aa2ee2..b98b96f128 100644 --- a/packages/nuxt/src/imports/presets.ts +++ b/packages/nuxt/src/imports/presets.ts @@ -216,9 +216,6 @@ const vuePreset = defineUnimportPreset({ 'hasInjectionContext', 'nextTick', 'provide', - 'defineModel', - 'defineOptions', - 'defineSlots', 'mergeModels', 'toValue', 'useModel', diff --git a/packages/nuxt/test/auto-imports.test.ts b/packages/nuxt/test/auto-imports.test.ts index 58a0203f40..538b295d64 100644 --- a/packages/nuxt/test/auto-imports.test.ts +++ b/packages/nuxt/test/auto-imports.test.ts @@ -86,7 +86,10 @@ const excludedVueHelpers = [ // Already globally registered 'defineEmits', 'defineExpose', + 'defineModel', + 'defineOptions', 'defineProps', + 'defineSlots', 'withDefaults', 'stop', //