File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @callstack/repack-dev-server " : patch
3+ ---
4+
5+ Fix React Native DevTools not showing source maps for MF2 remotes
Original file line number Diff line number Diff line change @@ -81,11 +81,25 @@ export async function createServer(config: Server.Config) {
8181 return ;
8282 }
8383 } else {
84- instance . log . info ( message ) ;
84+ instance . log . debug ( message ) ;
8585 return ;
8686 }
8787 } ,
8888 } ,
89+ // we need to let `Network.loadNetworkResource` event pass
90+ // through the InspectorProxy interceptor, otherwise it will
91+ // prevent fetching source maps over the network for MF2 remotes
92+ unstable_customInspectorMessageHandler : ( connection ) => {
93+ return {
94+ handleDeviceMessage : ( ) => { } ,
95+ handleDebuggerMessage : ( msg : { method ?: string } ) => {
96+ if ( msg . method === 'Network.loadNetworkResource' ) {
97+ connection . device . sendMessage ( msg ) ;
98+ return true ;
99+ }
100+ } ,
101+ } ;
102+ } ,
89103 unstable_experiments : {
90104 // @ts -expect-error removed in 0.76, keep this for backkwards compatibility
91105 enableNewDebugger : true ,
You can’t perform that action at this time.
0 commit comments