aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/ts-worker.ts
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-02-24 06:06:42 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-02-24 06:06:42 +0100
commite803010fe28b849220f0dd5b35e16abb4584667e (patch)
tree5c3479e8425491b055811ca69e43455fdc9973fb /src/routes/ts-worker.ts
parent15f74785afdfc4044a03d5bdf35221b60402b966 (diff)
downloadhttptool-e803010fe28b849220f0dd5b35e16abb4584667e.tar.gz
httptool-e803010fe28b849220f0dd5b35e16abb4584667e.tar.bz2
httptool-e803010fe28b849220f0dd5b35e16abb4584667e.tar.lz
httptool-e803010fe28b849220f0dd5b35e16abb4584667e.zip

feat: at the expense of us carrying the entire ts base type defs in the repo, and hating the code, the ts shit all fits in <5MB .js files

Diffstat (limited to 'src/routes/ts-worker.ts')
-rw-r--r--src/routes/ts-worker.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/routes/ts-worker.ts b/src/routes/ts-worker.ts
deleted file mode 100644
index 460885c..0000000
--- a/src/routes/ts-worker.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export default (async () => {
- const contents = new TextDecoder().decode(
- (await (await import('brotli-wasm')).default).decompress(
- await fetch('./generated/ts-worker.js.br')
- .then((v) => v.arrayBuffer())
- .then((v) => new Uint8Array(v))
- )
- );
- const worker = new Worker(`data:text/javascript;base64,${btoa(contents)}`);
- return worker;
-})();