Skip to content

Commit 65bfd15

Browse files
authored
fix: deepmerge target npe (#125)
1 parent cda2d98 commit 65bfd15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,9 @@ export function formatLegacyLoggerOptions(
633633
}
634634

635635
function deepMerge(target, source) {
636+
if (!target) {
637+
return source;
638+
}
636639
if (source && !isPlainObject(source)) {
637640
return source;
638641
}

0 commit comments

Comments
 (0)