-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: remove the squoosh image service #11770
Conversation
🦋 Changeset detectedLatest commit: fb00c39 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a major
changeset. A reviewer will merge this at the next release if approved.
scripts/cmd/build.js
Outdated
...(copyWASM | ||
? [ | ||
copy({ | ||
resolveFrom: 'cwd', | ||
assets: { | ||
from: ['./src/assets/services/vendor/squoosh/**/*.wasm'], | ||
to: ['./dist/assets/services/vendor/squoosh'], | ||
}, | ||
}), | ||
] | ||
: []), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI I'm also changing this in main at https://github.com/withastro/astro/pull/11769/files#diff-3295a1ee2ce5eaeef758fac7b3eea7c5413dc7ccc11b42afcfbd25f0f384d753R68 that moves this for the build too, but looks like after this we can completely remove it, the --copy-wasm
command, and esbuild-plugin-copy
.
Letting you know in case you hit merge conflicts
* feat: remove the squoosh image service * fix: build * chore: changeset
* feat: remove the squoosh image service * fix: build * chore: changeset
* feat: remove the squoosh image service * fix: build * chore: changeset
* feat: remove the squoosh image service * fix: build * chore: changeset
Changes
This PR removes the Squoosh image service. Since it's not the default anymore, the underlying library is unmaintained, it has memory leak issues, it's very slow, it's barely used, Sharp has WASM support now, generally has no purpose, etc. there's no big reasons to keep it around.
Testing
N/A
Docs
Will do!