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).
};
        break;
      case ForwardRef:
        global.$r = {
          hooks,
          props,
          type: type.render,
        };
        break;
      case MemoComponent:
      case SimpleMemoComponent:
        global.$r = {
          hooks,
          props,
          type:
            elementType != null && elementType.type != null
              ? elementType.type
              : type,
        };
        break;
      default:
        global.$r = null;
        break;
    }
  }
  function storeAsGlobal(
    id: number,
    path: Array<string | number>,
    count: number,
  ): void {