Add init function to wasm-bindings crate and update dependencies (#33)

This commit is contained in:
ProTheory8
2021-03-19 22:57:18 +05:00
committed by Keavon Chambers
parent 99f84f51ba
commit 17a1043d07
5 changed files with 34 additions and 99 deletions
+1 -3
View File
@@ -1,3 +1 @@
const wasm = import("./pkg");
wasm.then((binding) => binding.greet()).catch(console.error);
import("./pkg");