Skip to content

Commit

Permalink
examples: add wasm-pack options
Browse files Browse the repository at this point in the history
  • Loading branch information
rrbutani committed May 19, 2020
1 parent 55b1dbb commit 3dffeae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/basic/Cargo.toml
Expand Up @@ -27,3 +27,18 @@ features = [

[lib]
crate-type = ["cdylib"]


[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
debug-js-glue = true
demangle-name-section = true
dwarf-debug-info = true

[package.metadata.wasm-pack.profile.release]
# wasm-opt = ["-O4"]
wasm-opt = ["-O"]

[package.metadata.wasm-pack.profile.release.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = true

0 comments on commit 3dffeae

Please sign in to comment.