When I try to build the repo myself (on main) using npm run build:wasm it will generate a new wasm/index_bg.wasm file. Unfortunately when I include this file in my web project I get the following error: LinkError: WebAssembly.instantiate(): Import #0 "wbg" "__wbg_new_70a2f23d1565c04c": function import requires a callable. I saw that there was a report for version 2.6.1 which has been fixed in 2.6.2 however from the changes in the MR I was unable to identify the required changes to fix the issue since the files in the MR are auto-generated if I'm not mistaken.
Background: I'm trying to upgrade resvg to 0.44.0 since CSS injection support has been added recently (and also experiment with the SIMD features / type features).
When I try to build the repo myself (on main) using
npm run build:wasm
it will generate a newwasm/index_bg.wasm
file. Unfortunately when I include this file in my web project I get the following error:LinkError: WebAssembly.instantiate(): Import #0 "wbg" "__wbg_new_70a2f23d1565c04c": function import requires a callable
. I saw that there was a report for version 2.6.1 which has been fixed in 2.6.2 however from the changes in the MR I was unable to identify the required changes to fix the issue since the files in the MR are auto-generated if I'm not mistaken.Background: I'm trying to upgrade resvg to 0.44.0 since CSS injection support has been added recently (and also experiment with the SIMD features / type features).