Skip to content
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

[Bug]: wasm-pack package arent compressed ? #3756

Closed
mirsella opened this issue Oct 18, 2024 · 2 comments
Closed

[Bug]: wasm-pack package arent compressed ? #3756

mirsella opened this issue Oct 18, 2024 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@mirsella
Copy link

Version

System:
OS: Linux 6.11 Arch Linux
CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 24.44 GB / 31.25 GB
Container: Yes
Shell: 5.9 - /bin/zsh
Browsers:
Chromium: 129.0.6668.100

Details

hello !

i have a generated js package by wasm-pack which load a wasm program.
the wasm file is 20mb, rsbuild build says gzipped to 6mb, but in dist the wasm file is still 20mb.

Image

i might be missing something, in that case sorry and i would love more explanation

thanks, have a good day

Reproduce link

https://github.com/mirsella/rsbuild-wasm-gzip-issue

Reproduce Steps

Image

@mirsella mirsella added the 🐞 bug Something isn't working label Oct 18, 2024
@chenjiahan
Copy link
Member

Rsbuild does not gzip assets, which is usually what a web server or CDN does.

The gzip size in the log is for reference only and does not mean that Rsbuild has gzipped the assets.

@mirsella
Copy link
Author

mirsella commented Oct 18, 2024

ohhh ok thanks. the rsbuild log and the preview server confused me

have a good day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants