Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Mar 29, 2024
1 parent 19868db commit 083374e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const removePropTypesPlugin = declare<{}>((api) => {
if (!property.isIdentifier({ name: 'propTypes' })) {
return;
}
if (path.parentPath.isExpressionStatement() || path.parentPath.isConditionalExpression()) {
if (path.parentPath.isExpressionStatement()) {
path.parentPath.remove();
}
},
Expand Down

0 comments on commit 083374e

Please sign in to comment.