3 ms·
Wait, so you're running Sucrase in a Cloudflare Worker? It compiles, and then caches the output I assume? That's a really cool use case I hadn't thought of..
by sbarre 6y ago
Wait, so you're running Sucrase in a Cloudflare Worker?
It compiles, and then caches the output I assume?
That's a really cool use case I hadn't thought of..
- elisee 6y agoNot quite, I'm running Sucrase on my Deno HTTP server: if the extension is ".ts", I put the file through sucrase before serving it as text/javascript. In development, it happens every single time I reload (and it's fast enough that I don't even notice). In production, Cloudflare requests the .ts file from my server once (triggering sucrase), and then caches it.