Skip to content

Reduce size of WASM builds #20845

@AbdealiLoKo

Description

@AbdealiLoKo

Question

Hi, I've been actively following and using the experimental version of ruff-wasm-web
https://www.npmjs.com/package/@astral-sh/ruff-wasm-web

I noticed a large change in the wasm bundle size recently:
0.9.0 -> 8.84 MB
0.9.10 -> 9.06 MB
0.10.0 -> 9.07 MB
0.11.0 -> 9.06 MB
0.11.13 -> 9.17 MB
0.12.0 -> 9.23 MB
0.12.4 -> 9.30 MB
0.12.5 -> 12.8 MB
0.12.12 -> 13.3 MB
0.13.0 -> 13.4 MB
0.13.4 -> 13.9 MB
0.14.0 -> 13.9 MB

8.84 MB -> 13.9 MB is nearly a 57% increase in bundle size

Just checking to see if this is expected ? For a browser, 8 MB is already considered large, and 14MB seemed to be surprising

Are there some suggestions or so to reduce the file size for the browser based wasm ?

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    wishNot on the current roadmap; maybe in the future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions