Closed jamsinclair closed 1 year ago
Describe the bug Oxipng multi threaded code doesn't work when not wrapped in a worker.
This happens due to a known issue with threading solutions with wasm and rust (https://github.com/GoogleChromeLabs/wasm-bindgen-rayon#caveats).
To Reproduce Steps to reproduce the behavior:
with-vite
headers: { "Cross-Origin-Opener-Policy": "same-origin", "Cross-Origin-Embedder-Policy": "require-corp", }
Expected behavior
We should update our wrapper code to not run multi-threaded code unless in a dedicated worker context.
Describe the bug Oxipng multi threaded code doesn't work when not wrapped in a worker.
This happens due to a known issue with threading solutions with wasm and rust (https://github.com/GoogleChromeLabs/wasm-bindgen-rayon#caveats).
To Reproduce Steps to reproduce the behavior:
with-vite
exampleExpected behavior
We should update our wrapper code to not run multi-threaded code unless in a dedicated worker context.