I've successfully built libgit2 with Emscripten and am able to call into its functions within Node. This is an interesting fallback option for when compilation or prebuilt binaries fail to work.
However for this to work we'll have to modify our main script here:
https://github.com/nodegit/nodegit/blob/master/index.js#L14-L18
And create another template that can bind directly to the Emscripten exported functions mimicking our native classes exported through nodegit.node.
I've successfully built libgit2 with Emscripten and am able to call into its functions within Node. This is an interesting fallback option for when compilation or prebuilt binaries fail to work.
However for this to work we'll have to modify our main script here:
https://github.com/nodegit/nodegit/blob/master/index.js#L14-L18
And create another template that can bind directly to the Emscripten exported functions mimicking our native classes exported through nodegit.node.