We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5961ffe commit 314f7bcCopy full SHA for 314f7bc
packages/babel-plugin-component-annotate/src/index.ts
@@ -481,8 +481,8 @@ function collectFragmentContext(programPath: Babel.NodePath): FragmentContext {
481
init.type === "MemberExpression" &&
482
init.object.type === "Identifier" &&
483
init.property.type === "Identifier" &&
484
- reactNamespaceAliases.has(init.object.name) &&
485
- init.property.name === "Fragment"
+ init.property.name === "Fragment" &&
+ reactNamespaceAliases.has(init.object.name)
486
) {
487
fragmentAliases.add(varPath.node.id.name);
488
}
0 commit comments