unplugin / unplugin-imagemin

📦 Compression Image compression plugin based on squoosh and sharp
190 stars 18 forks source link

Support Node v20 #116

Open recallwei opened 7 months ago

recallwei commented 7 months ago

Steps to reproduce

Install dep with Node.js v20.10.0:

pnpm add -D unplugin-imagemin

image image

What is expected?

Support Node v20

What is actually happening?

Cannot install correctly.

System Info

OS: MacOS 
Arch: arm64
Browser: Chorme

Any additional comments?

No response

Stryxus commented 5 months ago

This is a @squoosh issue which, is now, abandoned. Squoosh should be removed from the plugin and use Sharp.

ryoppippi commented 2 months ago

I want to use it on Node20, so please remove squoosh !!

ErKeLost commented 2 months ago

I want to use it on Node20, so please remove squoosh !!

I will revise this question today

ErKeLost commented 2 months ago

I want to use it on Node20, so please remove squoosh !!

I checked the code and it has been processed. Although squoosh will still be installed, sharp will be used automatically if it is greater than node 18. If you get an error when running, please provide more detailed information. Thank you.