Closed mfulton26 closed 5 months ago
Or have some other way to avoid a top-level await call.
In retrospect, I don't want to bundle the esbuild loading code into my service worker so I'll need to decouple the code in fresh that imports this loader from the router logic being bundled for an offline web app powered by Fresh routing, etc. in a service worker.
Can
querySync
be used instead ofquery
(async) so that this loader can be used in service worker (or service worker like) environments?https://github.com/lucacasonato/esbuild_deno_loader/blob/ccd8992c690deee821d6b7a7efeaf599722c394c/src/plugin_deno_loader.ts#L79-L84