From ca64b6138ac9d0b5288e16bfdee5825033df7547 Mon Sep 17 00:00:00 2001 From: LoTwT <709937065@qq.com> Date: Wed, 31 Jan 2024 13:26:10 +0800 Subject: [PATCH] fix: remove incorrect import --- packages/core/src/vite-rpc/assets.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/vite-rpc/assets.ts b/packages/core/src/vite-rpc/assets.ts index c9cf13068..5ba766d01 100644 --- a/packages/core/src/vite-rpc/assets.ts +++ b/packages/core/src/vite-rpc/assets.ts @@ -3,7 +3,6 @@ import fg from 'fast-glob' import { join, resolve } from 'pathe' import { imageMeta } from 'image-meta' import { BirpcGroupReturn } from 'birpc' -import type { ViteDevServer } from 'vite' import { debounce } from 'perfect-debounce' import type { AssetInfo, AssetType, ImageMeta, ViteRPCFunctions } from './types' @@ -60,7 +59,7 @@ interface SetupAssetsOptions { } export function setupAssetsRPC(config: SetupAssetsOptions) { - const server = config.server as ViteDevServer + const server = config.server const getRpcServer = config.getRpcServer const _imageMetaCache = new Map()