From 31ba3d781f645c806bd5787810a839352b3cdeaf Mon Sep 17 00:00:00 2001 From: 1aron Date: Thu, 22 Feb 2024 00:29:03 +0800 Subject: [PATCH] Fix optional chaining in exploreConfig function --- packages/explore-config/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/explore-config/src/index.ts b/packages/explore-config/src/index.ts index 6fa6a80..857d330 100644 --- a/packages/explore-config/src/index.ts +++ b/packages/explore-config/src/index.ts @@ -34,7 +34,7 @@ export default function exploreConfig(name: string, options: ExploreConfigOption if (config) break } if (!config) config = configModule - options?.found(foundBasename, foundConfigPath) + options?.found?.(foundBasename, foundConfigPath) } return config }