feat(wasm): add a dedicated zstd entry point - #252
Draft
BridgeAR wants to merge 2 commits into
Draft
Conversation
Overall package sizeSelf size: 31.53 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------|🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Consumers that only need Zstandard compression currently load the exporter, DDSketch, and their transitive Rust code. Build compression as a separate WASM crate and expose it through a typed subpath while keeping the root API as a lazy compatibility wrapper. The direct entry point is 29,989 JavaScript bytes instead of 227,604 (86.8% less loaded code). The package grows by about 28 KiB so existing consumers remain compatible.
BridgeAR
force-pushed
the
BridgeAR/2026-09-03-wasm-zstd-split
branch
from
September 3, 2026 20:53
055b23c to
d0ae57d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds Zstandard compression as a separate WASM crate and exposes typed CJS and ESM subpaths. The root API remains compatible through a lazy wrapper.
The direct entry point is 29,989 JavaScript bytes instead of 227,604, reducing loaded code by 86.8%. The published package grows by about 28 KiB.
Tested with the complete 49-test package and type suite, dependency validation, Clippy, and ESLint.