Unverified Commit 5bcc1121 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

test(turbopack): refresh federation runtime snapshots

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent 5dc6a66d
...@@ -291,16 +291,6 @@ const chunkResolvers: Map<ChunkUrl, ChunkResolver> = new Map() ...@@ -291,16 +291,6 @@ const chunkResolvers: Map<ChunkUrl, ChunkResolver> = new Map()
}, getChunkLoadRetryDelayMs()) }, getChunkLoadRetryDelayMs())
} }
function getExistingScripts(chunkUrl: ChunkUrl): HTMLScriptElement[] {
const requested = new URL(chunkUrl, document.baseURI).href
return Array.from(document.scripts).filter((script) => {
const src = script.getAttribute('src')
if (src == null) return false
const existing = new URL(src, document.baseURI).href
return existing === requested || existing.startsWith(`${requested}?`)
})
}
/** /**
* Loads the given chunk, and returns a promise that resolves once the chunk * Loads the given chunk, and returns a promise that resolves once the chunk
* has been loaded. * has been loaded.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment