repack
repack copied to clipboard
feat: support experimental RN debugger interaction
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 of if
-else
expressions with a switch
and replacing object arrow functions with object literal methods shorthand syntax.
Demo
Live interaction:
Initial help message:
With experimental debugger capability | Without experimental debugger capability |
---|---|
Test plan
- [x] Run without
--experimental-debugger
& pressing 'j' should result in warning:DevTools require the '--experimental-debugger' flag to be passed to the bundler process
- [x] Run with
--experimental-debugger
& pressing 'j' should result in the DevTools being opened, both for Webpack & Rspack