Skip to content

Commit

Permalink
doc: note special single thread only packages to solve vite situation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsinclair committed Aug 20, 2023
1 parent f662d8c commit 8d489d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,11 @@ export default defineNuxtConfig({
});
```

### Issues with Nuxt/Vite and nested Web Workers

There is a known Vite bug breaking production code compilation when using a worker that references another worker, see [issue #19](https://github.com/jamsinclair/jSquash/issues/19) for more information.

In the meantime, you can install special builds that don't use workers to work around this issue:
- [@jsquash/avif@1.1.2-single-thread-only](https://www.npmjs.com/package/@jsquash/avif/v/1.1.2-single-thread-only)
- [@jsquash/jxl@1.0.2-single-thread-only](https://www.npmjs.com/package/@jsquash/jxl/v/1.0.2-single-thread-only)
- [@jsquash/oxipng@1.0.1-single-thread-only](https://www.npmjs.com/package/@jsquash/oxipng/v/1.0.1-single-thread-only)

0 comments on commit 8d489d3

Please sign in to comment.