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

Export single thread only methods for codecs that have multi-threading. #33

Open
jamsinclair opened this issue Sep 4, 2023 · 1 comment

Comments

@jamsinclair
Copy link
Owner

Is your feature request related to a problem? Please describe.

There is a bug in Vite that prevents the compilation of multi-threaded code in the codecs (See #19). This may take a long time to be fixed.

In the interim the codecs can not be easily used in Vite and Nuxt projects without installing a separate package.

Describe the solution you'd like

The multi-threaded codecs, AVIF, JXL and oxipng could include a single-thread module that can be imported and be compatible with Vite and Nuxt Projects.

E.g.

import { optimise } from '@jsquash/oxipng/single-thread';

Describe alternatives you've considered
N/A

@jamsinclair
Copy link
Owner Author

May want to prioritise this sooner as there's still no luck with Vite and multi-threaded modules (See last comment in #19)

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

No branches or pull requests

1 participant