fix(nuxt3): remove existing globals from auto-imports (#3035)

This commit is contained in:
Daniel Roe 2022-02-03 10:21:35 +00:00 committed by GitHub
parent ed4f4f51ab
commit f867841327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -38,11 +38,7 @@ export const Nuxt3AutoImports: AutoImportSource[] = [
from: 'vue',
names: [
// <script setup>
'defineEmits',
'defineExpose',
'defineProps',
'withCtx',
'withDefaults',
'withDirectives',
'withKeys',
'withMemo',
@ -78,7 +74,6 @@ export const Nuxt3AutoImports: AutoImportSource[] = [
'shallowReactive',
'shallowReadonly',
'shallowRef',
'stop',
'toRaw',
'toRef',
'toRefs',

View File

@ -73,6 +73,13 @@ describe('auto-imports:nuxt3', () => {
})
const excludedVueHelpers = [
// Already globally registered
'defineEmits',
'defineExpose',
'defineProps',
'withDefaults',
'stop',
//
'__esModule',
'devtools',
'EffectScope',