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

provide working example (with webpack too?) #16

Open
tsnobip opened this issue Oct 9, 2020 · 1 comment
Open

provide working example (with webpack too?) #16

tsnobip opened this issue Oct 9, 2020 · 1 comment

Comments

@tsnobip
Copy link

tsnobip commented Oct 9, 2020

Hi,
I'd be really interested in seeing a working example of your lib in a website, is the source of https://wasm-git.petersalomonsen.com/ available for example?

I couldn't make the example provided in the repo work in my browser, I tried multiple integrations with webpack without success so far, so I'm a bit frustrated. ^^

I have no experience with WASM and emscripten so that probably explains why too.

Any pointer would be welcome.

Thanks!

@petersalomonsen
Copy link
Owner

Hi,

Sorry it seems like I missed this. You can see the sources of https://wasm-git.petersalomonsen.com here: https://github.com/petersalomonsen/githttpserver

Also I use it in this project here: https://github.com/petersalomonsen/javascriptmusic and a live showcase where a git repository is cloned can be seen here: https://petersalomonsen.com/webassemblymusic/livecodev2/?gitrepo=test

Regarding use with a webpack project, I would not try to bundle in the wasm-git library, but rather load it at runtime (from a webworker), like you can see in the example project.

Hope this helps :-)

/Peter

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