Skip to content

perf(wasm): publish compressed binaries outside JS glue - #253

Draft
BridgeAR wants to merge 1 commit into
mainfrom
BridgeAR/2026-09-03-wasm-external-assets
Draft

perf(wasm): publish compressed binaries outside JS glue#253
BridgeAR wants to merge 1 commit into
mainfrom
BridgeAR/2026-09-03-wasm-external-assets

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Sep 3, 2026

Copy link
Copy Markdown
Member

Publishes each Brotli-compressed WASM binary beside its generated loader instead of base64-encoding it in JavaScript. Updates package, bundler, size, and deployment contracts for the adjacent asset.

The two release artifacts shrink from 588,918 to 454,783 packaged bytes (22.8%).

Tested with the complete package suite and targeted ESLint.

Base64-encoding Brotli data inside generated JavaScript expands the published fallback and forces parsers to process binary payloads as source. Keep the generated loader small and publish each compressed WASM binary beside it instead.

The two release artifacts shrink from 588,918 to 454,783 packaged bytes (22.8%). Bundler and installed-package tests pin the required adjacent-asset contract.
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Overall package size

Self size: 31.51 MB
Deduped: 31.51 MB
No deduping: 31.51 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------|

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@BridgeAR
BridgeAR marked this pull request as ready for review September 3, 2026 20:34
@BridgeAR
BridgeAR requested review from a team as code owners September 3, 2026 20:34
@BridgeAR
BridgeAR marked this pull request as draft September 4, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant