Skip to content

Commit

Permalink
chore(oca-bundle bindings): optimize release build configuration for …
Browse files Browse the repository at this point in the history
…smaller binary size
  • Loading branch information
olichwiruk committed Nov 6, 2023
1 parent b8b4269 commit 9d09d9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion oca-bundle/bindings/js/example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,7 @@ object.pick@^1.3.0:
isobject "^3.0.1"

"oca.js@file:../wasm/pkg":
version "0.3.0-rc.8"
version "0.3.4"

once@^1.3.0, once@^1.3.1, once@^1.4.0:
version "1.4.0"
Expand Down
8 changes: 3 additions & 5 deletions oca-bundle/bindings/js/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions oca-bundle/bindings/js/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ include = ["src/**/*", "README.md"]
[lib]
crate-type = ["cdylib"]

[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
strip = "debuginfo"

[dependencies]
isolang = { version = "2.3.0", features = ["serde"] }
js-sys = "0.3.54"
oca-ast = { path = "../../../../oca-ast" }
oca-bundle = { path = "../../../../oca-bundle", features = ["format_overlay"] }
serde = "1.0.130"
serde-wasm-bindgen = "0.5.0"
Expand Down

0 comments on commit 9d09d9d

Please sign in to comment.