Interactivity API: Include preact/debug
when WP_DEVELOPMENT_MODE
is enabled.
#59829
Labels
Developer Experience
Ideas about improving block and theme developer experience
[Feature] Interactivity API
API to add frontend interactivity to blocks.
Needs Dev
Ready for, and needs developer efforts
[Packages] Interactivity
/packages/interactivity
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
When I attended a developer hours regarding the Interactivity API, I saw a participant ask if they had access to developer tools for debugging.
What is your proposed solution?
I temporarily made the following changes and was able to confirm that Preact Devtools worked on the front end.
Perhaps we need to detect whether a project is in development mode or not, but I think this tool will be useful to developers.
The text was updated successfully, but these errors were encountered: