From e803010fe28b849220f0dd5b35e16abb4584667e Mon Sep 17 00:00:00 2001 From: memdmp Date: Mon, 24 Feb 2025 06:06:42 +0100 Subject: 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 --- src/routes/ts-worker.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/routes/ts-worker.ts (limited to 'src/routes/ts-worker.ts') 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; -})(); -- cgit v1.2.3