Skip to content

Conversation

@langyo
Copy link
Contributor

@langyo langyo commented Nov 20, 2023

I've been trying to use yew to render the page into the static HTML string on WASI. However, stylist cannot distinguish the browser WASM target (wasm32-unknown-unknown with wasm-bindgen) and WASI target (wasm32-wasi), and it would choose wrong modules for wasm32-*.

I have fixed it by using target_os, and it would fix the problem.

@langyo
Copy link
Contributor Author

langyo commented Mar 28, 2024

I see that your Github homepage has no contribution records for a long time... Do you have time to review this branch merge request?
@futursolo

@langyo
Copy link
Contributor Author

langyo commented Aug 14, 2024

I added a new feature called not_browser_env to this patch to support non-browser, non-WASI-compliant WASM targets, such as NodeJS WASM runtime or Cloudflare Workers. I hope you can take the time to review and publish the additional feature I provided.

@futursolo

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