The default value of globPatterns is ["*\/.{js,css,html}"]
I think it would be perfectly reasonable to also serve wasm files through workbox by changing this default to ["*\/.{js,wasm,css,html}"]
Javascript and wasm are supposed to be used together. Having Javascript served through workbox while wasm through the network can result in a confusing version mismatch, footgunning future devlopment.
The default value of globPatterns is ["*\/.{js,css,html}"]
I think it would be perfectly reasonable to also serve wasm files through workbox by changing this default to ["*\/.{js,wasm,css,html}"]
Javascript and wasm are supposed to be used together. Having Javascript served through workbox while wasm through the network can result in a confusing version mismatch, footgunning future devlopment.
I originally came from this issue raised by another developer who shared a similar sentiment https://github.com/vite-pwa/vite-plugin-pwa/issues/308