repack icon indicating copy to clipboard operation
repack copied to clipboard

feat: support experimental RN debugger interaction

Open artus9033 opened this issue 4 months ago • 8 comments

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: demo-repack-exp-debugger

Initial help message:

With experimental debugger capability Without experimental debugger capability
Screenshot 2024-09-26 at 18 17 03 Screenshot 2024-09-26 at 18 23 26

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

artus9033 avatar Sep 26 '24 12:09 artus9033