Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add zstd Compressor #10058

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open

Add zstd Compressor #10058

wants to merge 1 commit into from

Conversation

solonovamax
Copy link

@solonovamax solonovamax commented Dec 25, 2024

Closes #10014

↪️ Pull Request

Adds a zstd compressor, as described in #10014.

I have chosen not to enable this by default, as zstd performs worse than brotli.

💻 Examples

Usage is the same as the brotli and gzip compressors, in your .parcelrc:

 {
   "extends": ["@parcel/config-default"],
   "compressors": {
-    "*": ["...", "@parcel/compressor-gzip", "@parcel/compressor-brotli"]
+    "*": ["...", "@parcel/compressor-gzip", "@parcel/compressor-brotli", "@parcel/compressor-zstd"]
   }
 }

🚨 Test instructions

Tests included as integration tests.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

Fixes parcel-bundler#10014

Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ZSTD Compressor
1 participant