Closed jamsinclair closed 10 months ago
I've fixed the import extensions and polyfilled ImageData in #40.
Users will still need to manually read and compile the Wasm modules themselves.
This will be available from the following published versions:
-@jsquash/avif@1.2.0+
-@jsquash/jpeg@1.3.0+
-@jsquash/jxl@1.1.0+
-@jsquash/oxipng@2.1.0+
-@jsquash/png@2.2.0+
-@jsquash/resize@1.1.0+
-@jsquash/webp@1.3.0+
The library was intentionally built for the browser and web browsers.
Theoretically Node.js support should be possible, although I won't go out of my way to make this a core feature.
The main blockers I have found from experimentation:
.js
file extensions so they can be resolved by default node module system strategyImageData