Closed
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
React uses the __source
prop display where components originate in the React devtools.
Babel supports this in @babel/babel-plugin-transform-react-jsx-source
.
Solution
Inject this prop in a similar way as @babel/babel-plugin-transform-react-jsx-source
. This should only happen in development and only for React, but optionally supporting alternative runtimes.
Also I’m willing to implement this.
Alternatives
It could be an external recma plugin, but I think it’s useful to include in core.