Skip to content

Commit 741eb0a

Browse files
sebdotvsebdotv
and
sebdotv
authored
fix js deprecation warning in wasm init (#4054)
wasm-bindgen now expects an object as parameter, otherwise it issues a warning Co-authored-by: sebdotv <[email protected]>
1 parent 74789c4 commit 741eb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/build/web.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ r#" <script>
148148
window.__wasm_split_main_initSync = initSync;
149149
150150
// Actually perform the load
151-
init("/{base_path}/{wasm_path}").then((wasm) => {
151+
init({module_or_path: "/{base_path}/{wasm_path}"}).then((wasm) => {
152152
if (wasm.__wbindgen_start == undefined) {
153153
wasm.main();
154154
}

0 commit comments

Comments
 (0)