You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
Apparently there is an issue with wasm-bindgen snippets that remove the unused snippets of the final build. This is probably something we can address while doing this issue.
wasm-bindgen does this weird thing that when if the imported JS isn't used, it doesn't include in the binary. This becomes in a problem when all the JS needs to do is be imported to perform its function i.e. load the web component. This hack is required to have components to load (ranile/material-yew#1). This is non-optimal but there is nothing Yew can do about it.
I think JS can be imported and used from rust using this snippets thingies in wasm-bindgen: https://github.com/rustwasm/wasm-bindgen/blob/master/crates/cli-support/src/lib.rs#L634
This is missing in wasm-run and there is no public method in cli-support to generate them explicitly without generating a whole of different things.
The text was updated successfully, but these errors were encountered: