Fixed wasm build with string error and warning

This commit is contained in:
2020-08-20 16:17:44 +07:00
parent cc6b0c38db
commit e7b88b96e1
5 changed files with 24 additions and 20 deletions

View File

@@ -1,8 +1,8 @@
// import * as wasm from "hello-wasm-pack";
import * as wasm from "./../pkg/wasmweb_sample"
wasm.greet()
wasm.log("[WEB] external logging...")
const sum = wasm.just_sum()
console.log("Sum of number", sum)
// import * as wasm from 'wasmweb-sample'
//
// wasm.log("[WEB] external logging...")
//
// const greeting = wasm.greet()
// const sum = wasm.just_sum()
// console.log("Sum of number", sum)

View File

@@ -33,8 +33,5 @@
"webpack": "^4.29.3",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5"
},
"dependencies": {
"wasmweb-sample": "file:../pkg"
}
}