import { defineUnimportPreset, Preset } from 'unimport' export const commonPresets: Preset[] = [ // #meta defineUnimportPreset({ from: '#meta', imports: [ 'useMeta' ] }), // vue-demi (mocked) defineUnimportPreset({ from: 'vue-demi', imports: [ 'isVue2', 'isVue3' ] }) ] export const appPreset = defineUnimportPreset({ from: '#app', imports: [ 'useAsyncData', 'useLazyAsyncData', 'defineNuxtComponent', 'useNuxtApp', 'defineNuxtPlugin', 'useRuntimeConfig', 'useState', 'useFetch', 'useLazyFetch', 'useCookie', 'useRequestHeaders', 'useRouter', 'useRoute', 'defineNuxtRouteMiddleware', 'navigateTo', 'abortNavigation', 'addRouteMiddleware', 'throwError', 'clearError', 'useError', 'defineNuxtLink' ] }) // vue export const vuePreset = defineUnimportPreset({ from: 'vue', imports: [ //