[skip ci] fix getPluginTarget
This commit is contained in:
parent
98a03c8862
commit
817f0f7473
1 changed files with 1 additions and 1 deletions
|
@ -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(".");
|
||||
|
|
Loading…
Reference in a new issue