From 91c66981391d30e0ef92542fa592e06af1c5bb49 Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Sun, 23 Oct 2022 19:49:41 +0200 Subject: [PATCH] fix(core): Check plugin name optionally --- packages/core/src/pattern.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/pattern.mjs b/packages/core/src/pattern.mjs index aba72adfcf4..160923b9281 100644 --- a/packages/core/src/pattern.mjs +++ b/packages/core/src/pattern.mjs @@ -491,7 +491,7 @@ function getPluginName(plugin) { if (plugin[0].plugin.name) return plugin[0].plugin.name } else { if (plugin.name) return plugin.name - if (plugin.plugin.name) return plugin.plugin.name + if (plugin.plugin?.name) return plugin.plugin.name } return false