@
[email protected] so true
i hate that it increases bundle size for everyone
and loading that part of code on-demand in some cases introduces insanely unstable crutches
i needed to run a wasm-based lib in a service worker only in safari, and i kinda gave up on loading it dynamically
service workers can't use `import()` nor `importScripts`, and when i tried to make a crutch that would communicate with the page for that - it was so flaky i just had to give up and import it directly
i could probably generate a separate sw bundle for safari, but i didn't feel like hacking around with vite either :neocat_woozy: