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
import_impfrom"..";// or: import * as _imp from "..";varx=_imp.another();
This strange behavior is because a require(..).whatever is a recognized MemberExpression, but itself can be the callee of a CallExpression. It might technically work the way it currently is, but it's pretty unintuitive. I think the specificity of trying to import the named-export (another), instead of the whole module/namespace, is the problem, and should be pulled back.
The text was updated successfully, but these errors were encountered:
Currently becomes:
It should be:
This strange behavior is because a
require(..).whatever
is a recognizedMemberExpression
, but itself can be the callee of aCallExpression
. It might technically work the way it currently is, but it's pretty unintuitive. I think the specificity of trying to import the named-export (another
), instead of the whole module/namespace, is the problem, and should be pulled back.The text was updated successfully, but these errors were encountered: