Skip to content

Commit 016ec87

Browse files
committed
Fix formatting
1 parent d150d93 commit 016ec87

File tree

1 file changed

+6
-2
lines changed
  • packages/babel-plugin-component-annotate/src

1 file changed

+6
-2
lines changed

packages/babel-plugin-component-annotate/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)