Skip to content

Commit

Permalink
Fix build issues with new version of wasm-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
JWorthe committed Sep 30, 2023
1 parent 9b3e1f0 commit 7fbc22b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/frontend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
wasm-bindgen-test = "0.3"

[dependencies]
seed = "0.8"
seed = "0.9"

[package.metadata.wasm-pack.profile.release]
wasm-opt = ['-Os']
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ fn run_wasm_pack(opt: &WebBundlerOpt, retries: u32) -> Result<()> {
.map_err(|_| anyhow!("couldn't parse tmp_dir into a String"))?,
out_name: Some("package".to_owned()),
extra_options: vec![],
reference_types: false,
weak_refs: false,
};

let res = Build::try_from_opts(build_opts).and_then(|mut b| b.run());
Expand Down

0 comments on commit 7fbc22b

Please sign in to comment.