Skip to content

Commit 083374e

Browse files
committed
revert change
1 parent 19868db commit 083374e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pigment-css-react/src/utils/remove-prop-types-plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const removePropTypesPlugin = declare<{}>((api) => {
1414
if (!property.isIdentifier({ name: 'propTypes' })) {
1515
return;
1616
}
17-
if (path.parentPath.isExpressionStatement() || path.parentPath.isConditionalExpression()) {
17+
if (path.parentPath.isExpressionStatement()) {
1818
path.parentPath.remove();
1919
}
2020
},

0 commit comments

Comments
 (0)