2020-08-20 11:19:43 +07:00
|
|
|
// import * as wasm from "hello-wasm-pack";
|
|
|
|
import * as wasm from "./../pkg/wasmweb_sample"
|
2020-08-20 10:54:33 +07:00
|
|
|
|
2020-08-20 11:42:43 +07:00
|
|
|
wasm.greet()
|
2020-08-20 13:16:45 +07:00
|
|
|
wasm.log("[WEB] external logging...")
|
2020-08-20 15:27:50 +07:00
|
|
|
|
|
|
|
const sum = wasm.just_sum()
|
|
|
|
console.log("Sum of number", sum)
|