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).
);
          }
          let url = sourceMappingURLs[i].split('=')[1];
          if (ABSOLUTE_URL_REGEX.test(url)) {
            const baseURL = url.slice(0, url.lastIndexOf('/'));
            url = `${baseURL}/${url}`;
            if (!isValidUrl(url)) {
              throw new Error(`Invalid source map URL "${url}"`);
            }
          } else if (!url.startsWith('/')) {
            
            const lastSlashIdx = runtimeSourceURL.lastIndexOf('/');
            if (lastSlashIdx !== -1) {
              const baseURL = runtimeSourceURL.slice(
                0,
                runtimeSourceURL.lastIndexOf('/'),
              );
              url = `${baseURL}/${url}`;
            }
          }
          hookSourceData.sourceMapURL = url;
          const fetchPromise =
            fetchPromises.get(url) ||
            fetchFile(url).then(
              sourceMapContents =>
                new SourceMapConsumer(JSON.parse(sourceMapContents)),
            );
          if (__DEBUG__) {
            if (!fetchPromises.has(url)) {
              console.log(