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

ignore polkadot type wasms in bundle #245

Open
goastler opened this issue Jul 12, 2023 · 4 comments
Open

ignore polkadot type wasms in bundle #245

goastler opened this issue Jul 12, 2023 · 4 comments
Milestone

Comments

@goastler
Copy link
Member

No description provided.

@goastler
Copy link
Member Author

I've read that the wasms can be missing and the polkadot types package will default back to javascript implementations. This would make the bundle smaller by quite a margin I think!

@goastler
Copy link
Member Author

sr25519 is only available via the wasm bytes.

All the wasms are chucked into a single byte array in js as a string, there's no easy way to drop specific fns, so we end up carrying around unused fns like keccak, sha512, etc.

I can't get wasm-crypto to build

They do have a rollup config suggesting you can drop some fns to reduce bundle size, but I can't get that working without a build

Could contact the guy who maintains it, iirc it's jako

@forgetso
Copy link
Member

Or switch to something other than PolkadotJS - see ticket talking about smoldot / provider

@forgetso forgetso added this to the Tech Debt milestone Nov 16, 2023
@HughParry
Copy link
Contributor

Bundle size isn't a blocker for us right now. Moving to low priority

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

No branches or pull requests

3 participants