Re: [w3c/ServiceWorker] How should import() work in service workers? (#1585)

jon49 left a comment (w3c/ServiceWorker#1585)

I use `new Function` to get around this limitation. It will be nice when this feature ships so I can remove my custom code. It isn't a lot of code that is required to get around this limitation, so it's not a huge deal. But it is nice have more of a proper way to work around it.

https://github.com/jon49/jon49-sw/blob/590c284b63a5cf2bbb8f87e8ccc8388eccf260ca/lib/routes.middleware.ts#L90

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1585#issuecomment-4760541622
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1585/4760541622@github.com>

Received on Sunday, 21 June 2026 01:25:39 UTC