-
Notifications
You must be signed in to change notification settings - Fork 119
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: add RN experimental debugger compatibility #508
Conversation
🦋 Changeset detectedLatest commit: 8bbd016 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 |
This pull request has been marked as stale because it has been inactive for 60 days. Please update this pull request or it will be automatically closed in 14 days. |
c776d12
to
d7bb6ae
Compare
d7bb6ae
to
f03e338
Compare
|
c420455
to
101c661
Compare
@szymonrybczak should we use |
Using it as a peer dependency would make it auto-install as a dep when using npm, right? Can we treat it as an optional dependency that we require and throw error saying that it's supposed to be there, so most likely make sure you've installed the deps? |
FYI, in 0.75 the template will have the dependency on |
that might be the case, let's mark it as optional inside of
We could make it optional and just skip integrating that part with debugger altogether. On the other hand, I'm not sure we need the error handling here since
I don't see anything there (or related PR) regarding |
4dbb06a
to
8223ea0
Compare
df4c985
to
b6ae784
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
0e0cb75
to
9b98075
Compare
9b98075
to
98c9925
Compare
Deprecated Remote Debugging #578 update – I reverted removal of part of the Additionally, I left a TODO comment to remove the internal code/dependencies related to the deprecated remote debugging once it is removed from the React Native core itself. @thymikee @jbroma, this should be good to be re-reviewed. The last thing to consider is the status of the added dependencies:
As mentioned above, the first two will be removed in the future, while |
Great works so far @RafikiTiki 🎉 Thanks for keeping the old debugger ❤️ As for the deps:
cc @thymikee |
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 nits
Co-authored-by: Jakub Romańczyk <[email protected]>
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.
1 nit, other than that LGTM 🎉
…tibility' into feat/experimental-debugger-compatibility
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.
Missing changeset
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 🎉
TODO
Summary
This PR introduces compatibility with the new Experimental Debugger to the Repack devserver.
Experimental Debugger info:
To test this feature the dev server has to be started with the
--experimental-debugger
flag. To play with it usingTesterApp
simply runyarn TesterApp:start --experimental-debugger
from the root of the repo.Additional benefits
This PR also made it possible to remove a custom implementation of the Hermes Inspector Proxy and reuse what
@react-native/dev-middleware
provides – less code to maintain and less breaking changes in the future 🤞Next steps
In the future, we'll likely remove the Remote JS debugger and the whole
debugger-app
package – this will, of course, be a breaking change and we want to wait till it gets removed from the RN core itself.