From 7ccefae1ff5bd51e7e978abe61ccd52aa1347ea9 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Fri, 19 Apr 2024 20:08:45 +0200 Subject: [PATCH] fix: accessing __asyncLoader property of component options --- packages/runtime-core/src/apiAsyncComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiAsyncComponent.ts b/packages/runtime-core/src/apiAsyncComponent.ts index 4c6e4bad11b..e5d4227bd5f 100644 --- a/packages/runtime-core/src/apiAsyncComponent.ts +++ b/packages/runtime-core/src/apiAsyncComponent.ts @@ -38,7 +38,7 @@ export interface AsyncComponentOptions { } export const isAsyncWrapper = (i: ComponentInternalInstance | VNode): boolean => - !!(i.type as ComponentOptions).__asyncLoader + !!(i.type as ComponentOptions)?.__asyncLoader /*! #__NO_SIDE_EFFECTS__ */ export function defineAsyncComponent<