Skip to content

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

Description

@jamsinclair

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions