Closed kleisauke closed 1 month ago
This is amazing, thank you so much! 🚀 Good idea too with the cache busting 👍
This seems to work great already. On my local site I just needed #604 to ensure the correct mime type for wasm files.
The only blocker is the publicPath
setting. Unfortunately I can't make assumptions about that path, as the plugin could be hosted elsewhere.
In the past I defined __webpack_public_path__
on the fly to work around this limitation. But that's probably not very helpful here as @shopify/web-worker
will load packages/vips/src/index.ts
in an inline blob worker.
Load wasm-vips locally instead of from a CDN, enabling its features to work offline.
Note: the patch is temporary, I'll include that in the next release of wasm-vips.