Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate component tree in Preact Devtools #40

Closed
Vincent-Carrier opened this issue Feb 18, 2022 · 0 comments · Fixed by #41
Closed

Inaccurate component tree in Preact Devtools #40

Vincent-Carrier opened this issue Feb 18, 2022 · 0 comments · Fixed by #41

Comments

@Vincent-Carrier
Copy link

I am getting this warning from preact/debug:

Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.

Here's what my component tree looks like in the DevTools:
Screen Shot 2022-02-18 at 9 11 33 AM

As you can see, not super useful. Would it be feasible to add @babel/plugin-transform-react-jsx-source to the babel transform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant