jamsinclair / jSquash

Browser & Web Worker focussed wasm bundles derived from the Squoosh App.
Apache License 2.0
222 stars 14 forks source link

Fix circular dependency issue with oxipng and vite #59

Closed jamsinclair closed 2 months ago

jamsinclair commented 2 months ago

As pointed out in https://github.com/jamsinclair/jSquash/issues/37#issuecomment-2143413705, Oxipng is still having issues when being compiled with an oxipng dependency.

Thanks to recent-ish updates to https://github.com/RReverser/wasm-bindgen-rayon it now compiles nicely with Vite despite the circular dependencies. By upgrading to this latest version we can compile a oxipng module that works.

You'll still need to be using a version of Vite greater than v5.1.6 to compile the circular dependency.