moduloze icon indicating copy to clipboard operation
moduloze copied to clipboard

check for namespace import used as function call

Open getify opened this issue 5 years ago • 0 comments

From: https://github.com/eight04/cjs-es#import-style

Note that if the identifier is used as the callee of a function/new expression, it would be considered as the default member since the namespace is not callable.

Need to check for this corner case and avoid the namespace import in that case.

getify avatar Sep 16 '20 21:09 getify