Fix assetUrl assignment in fetch call

This commit is contained in:
Daniel 2026-03-12 17:46:55 -05:00 committed by GitHub
parent a36ae22f4f
commit f6fac62593
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,8 +61,6 @@ export default function blobAssetPlugin(): Plugin {
}
return `
const assetUrl = ${JSON.stringify(assetUrl)};
/**
* Decompress gzip data using browser DecompressionStream
*/
@ -79,7 +77,7 @@ export default function getBlobUrl() {
return blobPromise = (async () => {
try {
const res = await fetch(assetUrl);
const res = await fetch(${JSON.stringify(assetUrl)});
const compressed = await res.arrayBuffer();
const decompressed = await decompress(compressed);