Skip to content

Commit bdc7a74

Browse files
committed
feat: Inject component annotations into HTML elements rather than React components
1 parent cd26b63 commit bdc7a74

File tree

13 files changed

+2773
-12
lines changed

13 files changed

+2773
-12
lines changed

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

Lines changed: 607 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ interface JSXProcessingContext {
8181
fragmentContext?: FragmentContext;
8282
}
8383

84+
export { experimentalComponentNameAnnotatePlugin } from "./experimental";
85+
8486
// We must export the plugin as default, otherwise the Babel loader will not be able to resolve it when configured using its string identifier
8587
export default function componentNameAnnotatePlugin({ types: t }: typeof Babel): AnnotationPlugin {
8688
return {

0 commit comments

Comments
 (0)