From 6a5d51c81246d6df02a6e691c8e0771f07a991fe Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Tue, 29 Nov 2022 20:55:27 -0800 Subject: [PATCH] Run dev code in worker. This mitigates browsers hanging while loading/debugging the dev page. Uses the workaround from https://github.com/evanw/esbuild/issues/312#issuecomment-1025066671 , since https://github.com/evanw/esbuild/pull/2508 has not landed. --- src/js/dev/index.html | 2 +- src/js/dev/index.ts | 3 +++ src/js/dev/test.ts | 32 -------------------------------- src/js/dev/worker.ts | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 33 deletions(-) create mode 100644 src/js/dev/index.ts delete mode 100644 src/js/dev/test.ts create mode 100644 src/js/dev/worker.ts diff --git a/src/js/dev/index.html b/src/js/dev/index.html index 4afd5179..3420dd90 100644 --- a/src/js/dev/index.html +++ b/src/js/dev/index.html @@ -1,4 +1,4 @@ - +