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

This commit is contained in:
ProTheory8
2021-03-19 10:57:18 -07:00
committed by GitHub
parent cf6c857846
commit f0e27dba6c
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");