mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-28 02:59:57 -04:00
This patch does a couple of things:
1. Fix the compilation of the example, Message -> MessageLike
2. Update Webpack and friends for the example
3. Remove futures-timer's Delay method and use equivalent methods from
Tokio and wasm-timers.
The last point was needed because futures-timer would end up triggering
this error:
ReferenceError: can't access lexical declaration '__wbg_clearTimeout_d8b36ad8fa330187' before initialization
15 lines
405 B
JSON
15 lines
405 B
JSON
{
|
|
"scripts": {
|
|
"build": "webpack",
|
|
"serve": "webpack-dev-server",
|
|
"test": "cargo check --target wasm32-unknown-unknown && wasm-pack test --node"
|
|
},
|
|
"devDependencies": {
|
|
"html-webpack-plugin": "^4.3.0",
|
|
"webpack": "^5.71.0",
|
|
"webpack-cli": "^4.9.2",
|
|
"webpack-dev-server": "^4.7.4",
|
|
"@wasm-tool/wasm-pack-plugin": "^1.6.0"
|
|
}
|
|
}
|