Skip to content

Commit ebb7e66

Browse files
committed
Use wasm-pack with the --profile wasm-release flag to build optimized WebAssembly
This makes use of the custom profile which has a single codegen-units. This is important for the lint registration.
1 parent fd7febf commit ebb7e66

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/rust-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- name: Generate JS glue with wasm-bindgen
114114
run: |
115115
cd webui
116-
wasm-pack build -t web --out-dir pkg --out-name wirefilter_wasm --no-pack --no-typescript
116+
wasm-pack build -t web --out-dir pkg --out-name wirefilter_wasm --no-pack --no-typescript --profile wasm-release
117117
118118
# Show package contents and sizes
119119
ls -la ./pkg

webui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
Build the wasm files:
44

55
```shell
6-
wasm-pack build -t web --out-dir pkg --out-name wirefilter_wasm --no-pack --no-typescript;
6+
wasm-pack build -t web --out-dir pkg --out-name wirefilter_wasm --no-pack --no-typescript --profile wasm-release
77
```

0 commit comments

Comments
 (0)