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

A feature analogous to debug-embed, but for WASM? #226

Open
JohnDowson opened this issue Dec 7, 2023 · 2 comments
Open

A feature analogous to debug-embed, but for WASM? #226

JohnDowson opened this issue Dec 7, 2023 · 2 comments

Comments

@JohnDowson
Copy link

My use case is that I want embed some prefabs in wasm build, but load them(as well as user-defined ones) from fs at runtime everywhere else.

@pyrossh
Copy link
Owner

pyrossh commented Dec 8, 2023

What wasm runtime are you using? Does it support he WASI API. It should technically work though if it builds.

@JohnDowson
Copy link
Author

I am running in the browser.

Should probably explain my use case better.
I am building a modular synthesizer, and I need some default modules and widget prefabs to serve as examples. For the most part, I can ask the user to select a file to load, but it's bad UX to ask the user to download example for use with a web app.

So I want to bundle those examples on wasm32, but keep loading everything at runtime on native, in case the user made or downloaded some extra modules.

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