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

[wasm] ship a single isomorphic npm package from the wasm crate #3308

Open
turbocrime opened this issue Nov 9, 2023 · 0 comments
Open

[wasm] ship a single isomorphic npm package from the wasm crate #3308

turbocrime opened this issue Nov 9, 2023 · 0 comments

Comments

@turbocrime
Copy link
Contributor

the wasm crate's npm packaging script currently builds multiple targets, and publishes each target as a separate package to npm.

the completely separate wasm-ts package in the web monorepo pulls in both packages as dependencies, resulting in a duplicated 90MB dependency.

these targets differ primarily in js bindings. it is possible to package an isomorphic binding. other projects have successfully shipped target-agnostic wasm packages.

rustwasm/wasm-pack#1334

package size should improve after #2712 breaks out a large binary blob, but this should still be addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant