From 8bda1db8c84991bb9efd97f83ec47f98680d9eea Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Wed, 27 Aug 2025 17:15:26 +0200 Subject: [PATCH] do not assume `source` is an object Otherwise `Reflect.ownKeys` would crash on non-object values. Co-Authored-By: Jordan Pittman --- packages/tailwindcss/src/compat/config/deep-merge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tailwindcss/src/compat/config/deep-merge.ts b/packages/tailwindcss/src/compat/config/deep-merge.ts index 2bf15c9b3..3365a068b 100644 --- a/packages/tailwindcss/src/compat/config/deep-merge.ts +++ b/packages/tailwindcss/src/compat/config/deep-merge.ts @@ -17,7 +17,7 @@ export function deepMerge( type Value = T[Key] for (let source of sources) { - if (source === null || source === undefined) { + if (source === null || source === undefined || typeof source !== 'object') { continue }