diff --git a/packages/vant-auto-import-resolver/src/index.ts b/packages/vant-auto-import-resolver/src/index.ts index aeb0a672b..872d6a696 100644 --- a/packages/vant-auto-import-resolver/src/index.ts +++ b/packages/vant-auto-import-resolver/src/index.ts @@ -131,6 +131,6 @@ export function VantImports(options: VantImportsOptions = {}) { const moduleType = getModuleType(options); return { - [`vant/${moduleType}`]: getAPIMap().keys(), + [`vant/${moduleType}`]: [...getAPIMap().keys()], }; }