2021-11-21 16:14:46 +00:00
|
|
|
import type { AutoImportSource } from '@nuxt/schema'
|
2021-10-18 13:39:53 +00:00
|
|
|
|
|
|
|
export const Nuxt3AutoImports: AutoImportSource[] = [
|
|
|
|
// #app
|
|
|
|
{
|
|
|
|
from: '#app',
|
|
|
|
names: [
|
|
|
|
'useAsyncData',
|
2021-11-15 12:09:07 +00:00
|
|
|
'useLazyAsyncData',
|
2021-10-18 13:39:53 +00:00
|
|
|
'defineNuxtComponent',
|
|
|
|
'useNuxtApp',
|
|
|
|
'defineNuxtPlugin',
|
|
|
|
'useRuntimeConfig',
|
|
|
|
'useState',
|
2021-11-15 12:09:07 +00:00
|
|
|
'useFetch',
|
2021-11-22 20:43:00 +00:00
|
|
|
'useLazyFetch',
|
|
|
|
'useCookie'
|
2021-10-18 13:39:53 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
// #meta
|
|
|
|
{
|
|
|
|
from: '#meta',
|
|
|
|
names: [
|
|
|
|
'useMeta'
|
|
|
|
]
|
|
|
|
},
|
2021-11-15 10:25:50 +00:00
|
|
|
// vue-demi (mocked)
|
|
|
|
{
|
|
|
|
from: 'vue-demi',
|
|
|
|
names: [
|
|
|
|
'isVue2',
|
|
|
|
'isVue3'
|
|
|
|
]
|
|
|
|
},
|
2021-10-18 13:39:53 +00:00
|
|
|
// vue
|
|
|
|
{
|
|
|
|
from: 'vue',
|
|
|
|
names: [
|
2021-11-05 14:39:14 +00:00
|
|
|
// <script setup>
|
|
|
|
'defineEmits',
|
|
|
|
'defineExpose',
|
|
|
|
'defineProps',
|
|
|
|
'withCtx',
|
|
|
|
'withDefaults',
|
|
|
|
'withDirectives',
|
|
|
|
'withKeys',
|
|
|
|
'withMemo',
|
|
|
|
'withModifiers',
|
|
|
|
'withScopeId',
|
|
|
|
|
2021-10-18 13:39:53 +00:00
|
|
|
// Lifecycle
|
|
|
|
'onActivated',
|
|
|
|
'onBeforeMount',
|
|
|
|
'onBeforeUnmount',
|
|
|
|
'onBeforeUpdate',
|
|
|
|
'onDeactivated',
|
|
|
|
'onErrorCaptured',
|
|
|
|
'onMounted',
|
2021-11-05 14:39:14 +00:00
|
|
|
'onRenderTracked',
|
|
|
|
'onRenderTriggered',
|
2021-10-18 13:39:53 +00:00
|
|
|
'onServerPrefetch',
|
|
|
|
'onUnmounted',
|
|
|
|
'onUpdated',
|
|
|
|
|
|
|
|
// Reactivity
|
|
|
|
'computed',
|
|
|
|
'customRef',
|
2021-11-05 14:39:14 +00:00
|
|
|
'isProxy',
|
|
|
|
'isReactive',
|
2021-10-18 13:39:53 +00:00
|
|
|
'isReadonly',
|
|
|
|
'isRef',
|
|
|
|
'markRaw',
|
2021-11-05 14:39:14 +00:00
|
|
|
'proxyRefs',
|
2021-10-18 13:39:53 +00:00
|
|
|
'reactive',
|
|
|
|
'readonly',
|
|
|
|
'ref',
|
|
|
|
'shallowReactive',
|
|
|
|
'shallowReadonly',
|
|
|
|
'shallowRef',
|
2021-11-05 14:39:14 +00:00
|
|
|
'stop',
|
2021-10-18 13:39:53 +00:00
|
|
|
'toRaw',
|
|
|
|
'toRef',
|
|
|
|
'toRefs',
|
|
|
|
'triggerRef',
|
|
|
|
'unref',
|
|
|
|
'watch',
|
|
|
|
'watchEffect',
|
|
|
|
|
2021-11-05 14:39:14 +00:00
|
|
|
// effect
|
|
|
|
'effect',
|
|
|
|
'effectScope',
|
|
|
|
'getCurrentScope',
|
|
|
|
'onScopeDispose',
|
|
|
|
|
2021-10-18 13:39:53 +00:00
|
|
|
// Component
|
|
|
|
'defineComponent',
|
|
|
|
'defineAsyncComponent',
|
|
|
|
'getCurrentInstance',
|
|
|
|
'h',
|
|
|
|
'inject',
|
|
|
|
'nextTick',
|
|
|
|
'provide',
|
2021-11-05 14:39:14 +00:00
|
|
|
'useAttrs',
|
|
|
|
'useCssModule',
|
|
|
|
'useCssVars',
|
|
|
|
'useSlots',
|
|
|
|
'useTransitionState'
|
|
|
|
] as Array<keyof typeof import('vue')>
|
2021-10-18 13:39:53 +00:00
|
|
|
}
|
|
|
|
]
|