jamsinclair / jSquash

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

Can not build with vite #15

Closed iamcco closed 2 years ago

iamcco commented 2 years ago

I'm trying to use this library to convert image to webp. But can't build with vite.

It works with dev mode, but the build step stop as below only has incremental number, and end with heap out of memory.

image

image

this is the test repo https://github.com/iamcco/test-jSquash

iamcco commented 2 years ago

image

iamcco commented 2 years ago

Seems only happen with vite >= 2.8.0

iamcco commented 2 years ago

Should be relative to https://github.com/vitejs/vite/issues/7015

blobinabottle commented 1 year ago

@iamcco were you able to build it somehow?

iamcco commented 1 year ago

@iamcco were you able to build it somehow?

I end up delete the pkg-parallel of oxipng and edit the code of avif

PS. relative code https://github.com/jamsinclair/jSquash/compare/main...iamcco:jSquash:master

tans commented 6 months ago

I solved this issue using the solution provided at https://github.com/vitejs/vite/issues/7015#issuecomment-1838790738