We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfad6cf commit 937b7f8Copy full SHA for 937b7f8
1 file changed
packages/import-replacer-helper/index.js
@@ -41,6 +41,12 @@ function createReplacerMacro(config) {
41
jsxClosingElementNamePath.replaceWith(types.JSXIdentifier(id));
42
break;
43
case 'Identifier':
44
+ if (
45
+ types.isTSQualifiedName(reference.parentPath)
46
+ || types.isQualifiedTypeIdentifier(reference.parentPath)
47
+ ) {
48
+ break;
49
+ }
50
if (!types.isMemberExpression(reference.parentPath)) {
51
throw new TypeError(`Unexpected parent node type: ${reference.parentPath.type}`);
52
}
0 commit comments