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
//This points to second to last element of declarations because webpack adds an extra variable when converting files that use ES6, so the previous pointer wasn't working for this case
127
126
letvarName: string=
128
127
// Points to second to last element of declarations because webpack adds an extra variable when converting files that use ES6
129
128
declarations[declarations.length-2]?.id?.name||// work react application;
130
129
(Array.isArray(declarations[0]?.id?.elements)
131
130
? declarations[0]?.id?.elements[0]?.name
132
131
: undefined);//work for nextJS application
133
132
// Obtain the setState method:
134
-
//This points to last element of declarations because webpack adds an extra variable when converting files that use ES6, so the previous pointer wasn't working for this case
135
133
lethookName: string=
136
134
//Points to last element of declarations because webpack adds an extra variable when converting files that use ES6
137
135
declarations[declarations.length-1]?.id?.name||// work react application;
0 commit comments