diff --git a/packages/renderer/src/render/canvas.rs b/packages/renderer/src/render/canvas.rs index 14ca2942..040c58e6 100644 --- a/packages/renderer/src/render/canvas.rs +++ b/packages/renderer/src/render/canvas.rs @@ -183,6 +183,7 @@ mod tests { wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); const SHOW_RESULT: bool = true; + #[cfg(feature = "worker")] const IN_WORKER: bool = false; fn hash_bytes>(bytes: T) -> String {