mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
fix(nuxt3): remove existing globals from auto-imports (#3035)
This commit is contained in:
parent
ed4f4f51ab
commit
f867841327
@ -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',
|
||||
|
@ -73,6 +73,13 @@ describe('auto-imports:nuxt3', () => {
|
||||
})
|
||||
|
||||
const excludedVueHelpers = [
|
||||
// Already globally registered
|
||||
'defineEmits',
|
||||
'defineExpose',
|
||||
'defineProps',
|
||||
'withDefaults',
|
||||
'stop',
|
||||
//
|
||||
'__esModule',
|
||||
'devtools',
|
||||
'EffectScope',
|
||||
|
Loading…
Reference in New Issue
Block a user