File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/babel-plugin-component-annotate/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -452,9 +452,13 @@ function collectFragmentContext(programPath: Babel.NodePath): FragmentContext {
452452 if ( spec . imported . name === "Fragment" ) {
453453 fragmentAliases . add ( spec . local . name ) ;
454454 }
455- } else if ( spec . type === "ImportDefaultSpecifier" || spec . type === "ImportNamespaceSpecifier" ) {
455+ } else if (
456+ spec . type === "ImportDefaultSpecifier" ||
457+ spec . type === "ImportNamespaceSpecifier"
458+ ) {
456459 // import React from 'react' -> React OR
457- // import * as React from 'react' -> React reactNamespaceAliases.add(spec.local.name);
460+ // import * as React from 'react' -> React
461+ reactNamespaceAliases . add ( spec . local . name ) ;
458462 }
459463 } ) ;
460464 }
You can’t perform that action at this time.
0 commit comments