This can cause long file names (URLs) to be truncated which in turn will break named hooks code (since it needs to load those file names).
if (process.env.NODE_ENV !== 'test') {
    registerRendererWithConsole(renderer, onErrorOrWarning);
    
    
    
    const appendComponentStack =
      window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__ !== false;
    const breakOnConsoleErrors =
      window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ === true;
    const showInlineWarningsAndErrors =
      window.__REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ !== false;
    if (
      appendComponentStack ||
      breakOnConsoleErrors ||
      showInlineWarningsAndErrors
    ) {
      patchConsole({
        appendComponentStack,
        breakOnConsoleErrors,
        showInlineWarningsAndErrors,
      });
    }
  }
  const debug = (
    name: string,
    fiber: Fiber,
    parentFiber: ?Fiber,
    extraString?: string = '',
  ): void => {
    if (__DEBUG__) {