diff --git a/packages/vant-auto-import-resolver/src/index.ts b/packages/vant-auto-import-resolver/src/index.ts index af8e3454f..107d7060f 100644 --- a/packages/vant-auto-import-resolver/src/index.ts +++ b/packages/vant-auto-import-resolver/src/index.ts @@ -43,7 +43,7 @@ export function VantResolver(options: VantResolverOptions = {}) { const moduleType = getModuleType(ssr); return { - type: 'component', + type: 'component' as const, resolve: (name: string) => { if (name.startsWith('Van')) { const partialName = name.slice(3);