Skip to content

Commit fea40a5

Browse files
do not assume source is an object
Otherwise `Reflect.ownKeys` would crash on non-object values. Co-Authored-By: Jordan Pittman <[email protected]>
1 parent da2111f commit fea40a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss/src/compat/config/deep-merge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function deepMerge<T extends object>(
1717
type Value = T[Key]
1818

1919
for (let source of sources) {
20-
if (source === null || source === undefined) {
20+
if (source === null || source === undefined || typeof source !== 'object') {
2121
continue
2222
}
2323

0 commit comments

Comments
 (0)