Fixed #6003 - options.resolve is not a function in auto-import-resolver package

pull/6011/head
Mert Sincan 2024-07-02 13:31:07 +01:00
parent f4ee8b3373
commit 007d2c472f
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export function PrimeVueResolver(options: PrimeVueResolverOptions = {}): Compone
if (cMeta) {
return (
options?.resolve(cMeta, 'component') ?? {
options?.resolve?.(cMeta, 'component') ?? {
from: cMeta.from
}
);
@ -48,7 +48,7 @@ export function PrimeVueResolver(options: PrimeVueResolverOptions = {}): Compone
if (dMeta) {
return (
options?.resolve(dMeta, 'directive') ?? {
options?.resolve?.(dMeta, 'directive') ?? {
as: dMeta.as,
from: dMeta.from
}