Skip to content

epilot-dev/esbuild-plugin-annotate-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esbuild-plugin-annotate-react

An esbuild plugin that annotates React-rendered components with stable attributes to identify the source component.

Input:

// App.jsx
const MyComponent = () => {
  return <div>Hello World</div>
}

Output:

const MyComponent = () => {
  return React.createElement(
    "div",
    { "data-component": "MyComponent" },
    "Hello World"
  );
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published