From 817f0f747314ec6491a77b9d7472a42e4cf0c7da Mon Sep 17 00:00:00 2001 From: V Date: Sun, 20 Aug 2023 15:14:28 +0200 Subject: [PATCH] [skip ci] fix getPluginTarget --- scripts/utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.mjs b/scripts/utils.mjs index 46a94664..5b84c987 100644 --- a/scripts/utils.mjs +++ b/scripts/utils.mjs @@ -22,7 +22,7 @@ */ export function getPluginTarget(filePath) { const pathParts = filePath.split(/[/\\]/); - if (/^index\.tsx?$/.test(filePath.at(-1))) pathParts.pop(); + if (/^index\.tsx?$/.test(pathParts.at(-1))) pathParts.pop(); const identifier = pathParts.at(-1).replace(/\.tsx?$/, ""); const identiferBits = identifier.split(".");