Add #[wasm_bindgen(start)], plugins to webpack config, Update deps

This commit is contained in:
Daniel Schindler
2018-11-30 17:42:36 +01:00
parent 89e245bddf
commit caac2eba53
5 changed files with 20 additions and 5 deletions

View File

@ -63,7 +63,7 @@ fn app(name: &str) {
}
/// Entry point into the program from JavaScript
#[wasm_bindgen]
#[wasm_bindgen(start)]
pub fn run() {
console_error_panic_hook::set_once();
app("todos-wasmbindgen");