Skip to content

Commit

Permalink
fix wasm-pack profiling
Browse files Browse the repository at this point in the history
Work around from
rustwasm/wasm-pack#797
  • Loading branch information
evmar committed Oct 17, 2022
1 parent f2a0c10 commit 51b0c63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ console_log = "0.2.0"
[dependencies.win32]
path = "../win32"
version = "0.1.0"

# wasm-pack --profiling mode doesn't work without this
# https://github.com/rustwasm/wasm-pack/issues/797
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ['-O4', '-g']

0 comments on commit 51b0c63

Please sign in to comment.