mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +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',
|
from: 'vue',
|
||||||
names: [
|
names: [
|
||||||
// <script setup>
|
// <script setup>
|
||||||
'defineEmits',
|
|
||||||
'defineExpose',
|
|
||||||
'defineProps',
|
|
||||||
'withCtx',
|
'withCtx',
|
||||||
'withDefaults',
|
|
||||||
'withDirectives',
|
'withDirectives',
|
||||||
'withKeys',
|
'withKeys',
|
||||||
'withMemo',
|
'withMemo',
|
||||||
@ -78,7 +74,6 @@ export const Nuxt3AutoImports: AutoImportSource[] = [
|
|||||||
'shallowReactive',
|
'shallowReactive',
|
||||||
'shallowReadonly',
|
'shallowReadonly',
|
||||||
'shallowRef',
|
'shallowRef',
|
||||||
'stop',
|
|
||||||
'toRaw',
|
'toRaw',
|
||||||
'toRef',
|
'toRef',
|
||||||
'toRefs',
|
'toRefs',
|
||||||
|
@ -73,6 +73,13 @@ describe('auto-imports:nuxt3', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const excludedVueHelpers = [
|
const excludedVueHelpers = [
|
||||||
|
// Already globally registered
|
||||||
|
'defineEmits',
|
||||||
|
'defineExpose',
|
||||||
|
'defineProps',
|
||||||
|
'withDefaults',
|
||||||
|
'stop',
|
||||||
|
//
|
||||||
'__esModule',
|
'__esModule',
|
||||||
'devtools',
|
'devtools',
|
||||||
'EffectScope',
|
'EffectScope',
|
||||||
|
Loading…
Reference in New Issue
Block a user