-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: support experimental RN debugger interaction #757
Conversation
… interaction is not implemented in the underlying bundler wrapper
🦋 Changeset detectedLatest commit: 0aaed0b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
ae485b1
to
222629f
Compare
222629f
to
c6f19f2
Compare
demo pls! |
I've just updated the root comment to include a demo GIF. |
Do we have a way to display the shortcuts that you can press? |
For sure we can, I will have this implemented as well. |
Let's make it dead simple, like logging the options once. No need to do anything fancier for now |
Done in b93c3f7, also added screenshots ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few quick ones for now
…etupInteractions test
29c1e8a
to
ecf383a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Summary
This PR introduces support for the TUI 'j' interaction and implementations of this interaction for Webpack & Rspack.
It also refactors code in
setupInteractions.ts
to properly warn about possible (currently none) unsupported interactions in the underlying bundler wrapper implementation, as well as replaces a series ofif
-else
expressions with aswitch
and replacing object arrow functions with object literal methods shorthand syntax.Demo
Live interaction:
Initial help message:
Test plan
--experimental-debugger
& pressing 'j' should result in warning:DevTools require the '--experimental-debugger' flag to be passed to the bundler process
--experimental-debugger
& pressing 'j' should result in the DevTools being opened, both for Webpack & Rspack