Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: add option to disable `wasm-opt` with environment variable

Elijah Potter9db219510293
diff --git a/justfile b/justfile
index c9e642a38..b6291429c 100644
--- a/justfile
+++ b/justfile
@@ -7,7 +7,11 @@ format:
build-wasm:
#!/usr/bin/env bash
cd "{{justfile_directory()}}/harper-wasm"
- wasm-pack build --target web
+ if [ "${DISABLE_WASM_OPT:-0}" -eq 1 ]; then
+ wasm-pack build --target web --no-opt
+ else
+ wasm-pack build --target web
+ fi
# Build `harper.js` with all size optimizations available.
build-harperjs: build-wasm