Skip to content

Commit 15cb064

Browse files
committed
fix(plugins): guard optional stock root cache key
1 parent 5fce2f6 commit 15cb064

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/plugins/loader.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,9 @@ function resolveBundledPackageCacheIdentity(stockRoot?: string):
704704
mtimeMs: number;
705705
}
706706
| undefined {
707+
if (!stockRoot) {
708+
return undefined;
709+
}
707710
const packageRoot = resolveBundledPackageRootForCache(stockRoot);
708711
if (!packageRoot) {
709712
return undefined;

0 commit comments

Comments
 (0)