import { defineUnimportPreset, Preset } from 'unimport' const commonPresets: Preset[] = [ // #head defineUnimportPreset({ from: '#head', imports: [ 'useHead', 'useMeta' ] }), // vue-demi (mocked) defineUnimportPreset({ from: 'vue-demi', imports: [ 'isVue2', 'isVue3' ] }) ] const appPreset = defineUnimportPreset({ from: '#app', imports: [ 'useAsyncData', 'useLazyAsyncData', 'refreshNuxtData', 'defineNuxtComponent', 'useNuxtApp', 'defineNuxtPlugin', 'useRuntimeConfig', 'useState', 'useFetch', 'useLazyFetch', 'useCookie', 'useRequestHeaders', 'useRequestEvent', 'setResponseStatus', 'useRouter', 'useRoute', 'useActiveRoute', 'defineNuxtRouteMiddleware', 'navigateTo', 'abortNavigation', 'addRouteMiddleware', 'throwError', 'showError', 'clearError', 'isNuxtError', 'useError', 'createError', 'defineNuxtLink', 'useAppConfig', 'defineAppConfig' ] }) // vue const vuePreset = defineUnimportPreset({ from: 'vue', imports: [ //