Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ort-wasm-simd-threaded.wasm copied to dist/assets by bundler #147

Open
eugene-khyst opened this issue Jan 8, 2025 · 0 comments
Open

ort-wasm-simd-threaded.wasm copied to dist/assets by bundler #147

eugene-khyst opened this issue Jan 8, 2025 · 0 comments

Comments

@eugene-khyst
Copy link

eugene-khyst commented Jan 8, 2025

Hi! Thank you for this awesome library.
I was using @imgly/background-removal 1.5.5 for some time without any issues. But after update from 1.5.5 to 1.5.7, 2 large WASM files are bundled by Vite to assets:

dist/assets/ort-wasm-simd-threaded.wasm - 11,2 MB
dist/assets/ort-wasm-simd-threaded.jsep.wasm - 21,7 MB

These files are quite big and probably are not expected to be bundled in dist/assets directory as a part of the build.
In version 1.5.5 there no WASM files are copied to dist/assets.

I believe this is not expected behavior. And I can't make Vite stop copying these WASM file to dist/assets.
Is there a fix or workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant