-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[smart-rename] improve handleReactRename
#49
Comments
|
smart-rename
's handleReactRename
handleReactRename
Currently
smart-rename
's implementation has ahandleReactRename
function that appears to have renames for:const uContext = o.createContext(u);
const uRef = o.useRef(u);
const [e, SetE] = o.useState(0);
I figured I would use this as a bit of a meta-issue for capturing improvements that could be made to this
smart-rename
for React.Context
If not otherwise specified, the webpack code I am looking at to derive my examples is the following (Ref), after using the CLI to unpack it to
./496-unpacked
, and then unminify it to./496-unminified
:TODO
useState
(but actually it ends up being more about@swc/helpers
) (Ref)swc
'sruntime-helpers
#50See Also
forwardRef
(+ remove layer of indirection on destructuring assignment) #48The text was updated successfully, but these errors were encountered: