Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmadFaraz-crypto committed May 6, 2024
1 parent a7dfd67 commit e6e1b66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/unminify/src/transformations/un-jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function toJSX(j: JSCodeshift, path: ASTPath<CallExpression>, pragmas: string[],
if (isVariableDeclarationArray.length) {
isVariableDeclarationArray.forEach((path: any) => {
removeDeclarationIfUnused(j, path, path.node.id.name)
// this will pick value against index
tag = { ...tag, name: path.node.init.elements[variableDeclaration.declarations[0].init.property.value].value }
})
}
Expand Down

0 comments on commit e6e1b66

Please sign in to comment.