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
functionfoo(arg,list){switch(arg){case0:
{varitem=arg.payload;returnlist.some(function(_item){return_item.id===item.id;});};case1:
{var_item=arg.payload;returnlist.some(function(_item){/* BUG HERE: it renamed wrongly here 2 vars with same name */return_item.id===_item.id;});}}}
The issue is at the case 1 where it renames 2 vars with the name name _item in 2 scopes that creating bug.
I just found out an issue regarding the option
"removeImport": true
like I got a following snippet function:the results after compile with es5 mode:
The issue is at the
case 1
where it renames 2 vars with the name name_item
in 2 scopes that creating bug.Seems reprocess the scope causes the issue here:
https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types/blob/master/src/index.js#L364
The text was updated successfully, but these errors were encountered: