Tom Larkworthy
01/06/2025, 10:24 PMCameron Yick
01/07/2025, 12:15 AMTom Larkworthy
01/07/2025, 5:25 AMCameron Yick
01/24/2025, 4:27 AMTom Larkworthy
01/24/2025, 7:39 AMunzip = async (attachment) =>
await new Response(
(await attachment.stream()).pipeThrough(new DecompressionStream("gzip"))
).blob()
So the design is modular, it can do modules, its just shoved all in a single file bundled but unpacked dynamically. I do wonder if I should have the concept of a dynamic import from another file though, for a website you might want to share the page index. It would be possible to do: read the other file, find the dependancy in it, and unzip it like we do internally. The file structure is a structured HTML doc, which is easy to parse with DOMParser and lookup dependancies with document.querySelector