Initial checklist
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.
Initial checklist
Problem
React uses the
__sourceprop 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.