Updated the deps and package in www
This commit is contained in:
13
www/index.ts
13
www/index.ts
@@ -1,8 +1,7 @@
|
||||
// import * as wasm from "hello-wasm-pack";
|
||||
// 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)
|
||||
// @ts-ignore
|
||||
import {just_sum,log} from 'wasmweb-sample'
|
||||
|
||||
log("d")
|
||||
const sum = just_sum()
|
||||
console.log("Sum of number", sum)
|
||||
|
||||
@@ -33,5 +33,8 @@
|
||||
"webpack": "^4.29.3",
|
||||
"webpack-cli": "^3.1.0",
|
||||
"webpack-dev-server": "^3.1.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"wasmweb-sample": "file:../pkg"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user