From 703beb8228c36a9123fbf99788b7e72b94231054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Thu, 28 Dec 2023 13:18:20 +0900 Subject: [PATCH] fix: config filter does not evaluate null collectly --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6ccc457..f36e40e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,7 +32,7 @@ const mergeConfig = ( ): PluginConfig => ({ ...defaultConfig, ...Object.fromEntries( - Object.entries(config).filter((_, value) => null != value), + Object.entries(config).filter(([_, value]) => null != value), ), });