From 8c0bb070dad48b65eb7456c98ec8f09872cdced5 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 14 Jan 2022 16:50:53 +0800 Subject: [PATCH] chore: update --- auto-imports.d.ts | 5 +++++ vite.config.ts | 15 +-------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index bfbafcc..980daa1 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -97,6 +97,7 @@ declare global { const useBase64: typeof import('@vueuse/core')['useBase64'] const useBattery: typeof import('@vueuse/core')['useBattery'] const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints'] + const useBroadcastChannel: typeof import('@vueuse/core')['useBroadcastChannel'] const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation'] const useClamp: typeof import('@vueuse/core')['useClamp'] const useClipboard: typeof import('@vueuse/core')['useClipboard'] @@ -105,6 +106,7 @@ declare global { const useCounter: typeof import('@vueuse/core')['useCounter'] const useCssModule: typeof import('vue')['useCssModule'] const useCssVar: typeof import('@vueuse/core')['useCssVar'] + const useCssVars: typeof import('vue')['useCssVars'] const useCycleList: typeof import('@vueuse/core')['useCycleList'] const useDark: typeof import('@vueuse/core')['useDark'] const useDebounce: typeof import('@vueuse/core')['useDebounce'] @@ -144,6 +146,7 @@ declare global { const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory'] const useMediaControls: typeof import('@vueuse/core')['useMediaControls'] const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery'] + const useMemoize: typeof import('@vueuse/core')['useMemoize'] const useMemory: typeof import('@vueuse/core')['useMemory'] const useMounted: typeof import('@vueuse/core')['useMounted'] const useMouse: typeof import('@vueuse/core')['useMouse'] @@ -193,10 +196,12 @@ declare global { const useTransition: typeof import('@vueuse/core')['useTransition'] const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams'] const useUserMedia: typeof import('@vueuse/core')['useUserMedia'] + const useVibrate: typeof import('@vueuse/core')['useVibrate'] const useVirtualList: typeof import('@vueuse/core')['useVirtualList'] const useVModel: typeof import('@vueuse/core')['useVModel'] const useVModels: typeof import('@vueuse/core')['useVModels'] const useWakeLock: typeof import('@vueuse/core')['useWakeLock'] + const useWebNotification: typeof import('@vueuse/core')['useWebNotification'] const useWebSocket: typeof import('@vueuse/core')['useWebSocket'] const useWebWorker: typeof import('@vueuse/core')['useWebWorker'] const useWebWorkerFn: typeof import('@vueuse/core')['useWebWorkerFn'] diff --git a/vite.config.ts b/vite.config.ts index f442cfa..df398c2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -53,21 +53,8 @@ export default defineConfig({ }), ], - optimizeDeps: { - include: [ - 'vue', - 'vue-router', - '@vueuse/core', - ], - exclude: [ - 'vue-demi', - ], - }, - + // https://github.com/vitest-dev/vitest test: { environment: 'jsdom', - deps: { - inline: ['@vue', '@vueuse', 'vue-demi'], - }, }, })