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

Help: Using recrypt-wasm-binding with Create-React-App #85

Closed
dghelm opened this issue Apr 27, 2022 · 2 comments
Closed

Help: Using recrypt-wasm-binding with Create-React-App #85

dghelm opened this issue Apr 27, 2022 · 2 comments
Assignees

Comments

@dghelm
Copy link

dghelm commented Apr 27, 2022

I found the webpack-usage documentation somewhat confusing, even after trying to eject a create-react-app project. I'm new to wasm+react, but was hoping using the npm module would make it more seamless.

Would love any additional documentation for using this in client-side browser applications.

@skeet70
Copy link
Member

skeet70 commented Apr 28, 2022

I'm not very familiar with create-react-app but using the npm module makes it as seamless as it can be. All of the documentation is targeted at using this client side. Is there any step you're struggling with in particular? We may be able to help but "more documentation" is a bit vague.

From your mention of webpack it seems like the part you're struggling with may be getting the wasm into your bundle and imported? It's hard to have specific documentation on that because it's not a peculiarity of our library, it's a general issue for any wasm use from Javascript. The specifics of how to make it work are up to your chosen building and bundling system.

I dug into it a bit and added an example to the repo that hopefully helps clarify things for you a bit. It's on a branch right now but will go into main in #86.

@skeet70 skeet70 self-assigned this Apr 28, 2022
@dghelm
Copy link
Author

dghelm commented Apr 29, 2022

Sorry for the vagues request, but this is above and beyond exactly what I needed to get the library working in my react app.

Thank you so much for taking the time!

@dghelm dghelm closed this as completed Apr 29, 2022
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

2 participants