Skip to content

Commit 7ea6848

Browse files
authored
feat: Inject component annotations into HTML elements rather than React components (#851)
* feat: Inject component annotations into HTML elements rather than React components * Update docs table
1 parent 9d9a7ef commit 7ea6848

File tree

14 files changed

+2780
-12
lines changed

14 files changed

+2780
-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)