diff --git a/codecs/oxipng/pkg/squoosh_oxipng_bg.wasm b/codecs/oxipng/pkg/squoosh_oxipng_bg.wasm index 06d36c9d..98d53e78 100644 Binary files a/codecs/oxipng/pkg/squoosh_oxipng_bg.wasm and b/codecs/oxipng/pkg/squoosh_oxipng_bg.wasm differ diff --git a/codecs/oxipng/src/lib.rs b/codecs/oxipng/src/lib.rs index dedfe560..a494604e 100644 --- a/codecs/oxipng/src/lib.rs +++ b/codecs/oxipng/src/lib.rs @@ -8,13 +8,8 @@ use oxipng::AlphaOptim; #[wasm_bindgen] extern "C" { - type Worker; - #[wasm_bindgen(js_namespace = Array, js_name = of)] fn array_of_2(a: JsValue, b: JsValue) -> JsValue; - - #[wasm_bindgen(method, js_name = postMessage)] - fn post_message(worker: &Worker, msg: JsValue); } static TASKS: OnceCell> = OnceCell::new();