You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
will not work and the variable extraReference and propTypesWithExtraReference will be interpreted as <invalid>. Is there a workaround for this? Could the feature be added?
👋🏼 When migrating to swc, you want to be able to remove proptypes. Previously we used babel-plugin-transform-react-remove-prop-types and
swc-plugins
seems to be the only alternative.The problem is that
removePropTypes
does not take into account and does not work with proptypes declared in constants. For example :will not work and the variable
extraReference
andpropTypesWithExtraReference
will be interpreted as<invalid>
. Is there a workaround for this? Could the feature be added?For the
babel-plugin-transform-react-remove-prop-types
part, you can find the test cases here: https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types/tree/master/test/fixtures/variable-assignmentThanksss ! 🙏🏼
The text was updated successfully, but these errors were encountered: