Created by: henryqdineen
The @babel/plugin-transform-destructuring
Babel plugin does not have a selectiveLoose
option currently and this code has been a source of confusion for me and possibly others. It was introduced in https://github.com/facebook/create-react-app/pull/5997 and I'm not sure if the intention was to wait for the selectiveLoose
option to be available. Even if this worked as hoped for I think that only useState
and useReducer
should be targeted for this optimization.
Thanks! Please let me know if I'm missing something obvious.