()
| 66 | let recompilePending = false; |
| 67 | |
| 68 | async function recompileHolographic() { |
| 69 | if (recompiling) { |
| 70 | recompilePending = true; |
| 71 | return; |
| 72 | } |
| 73 | recompiling = true; |
| 74 | try { |
| 75 | await compileHolographicTailwindCss(); |
| 76 | console.log("tracedecay dev recompiled holographic CSS"); |
| 77 | } catch (err) { |
| 78 | console.error("tracedecay dev failed to recompile holographic CSS:", err); |
| 79 | } finally { |
| 80 | recompiling = false; |
| 81 | if (recompilePending) { |
| 82 | recompilePending = false; |
| 83 | scheduleHolographicRecompile(); |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | function scheduleHolographicRecompile() { |
| 89 | if (recompileTimer) clearTimeout(recompileTimer); |
no test coverage detected