`resvg` compatibility
harlan-zw opened this issue · comments
Harlan Wilton commented
Environment
unwasm: 0.3.7
node: 18.18.0
Reproduction
https://stackblitz.com/edit/stackblitz-starters-rugrtg?file=package.json
Describe the bug
Resvg requires calling initWasm before using it in a WASM context. This function only takes the module as non-initialized module. Unwasm will always initialize the module.
Additional context
No response
Logs
No response
Pooya Parsa commented
Working on #23, i hope it can help to support resvg-js sooner.
Pooya Parsa commented
Harlan Wilton commented
Amazing, thank you! The demo looks good, I'll test further with Nuxt OG Image and make a new issue if there are any further issues.
Pooya Parsa commented
(keeping this open to not forget, might move to single tracker issue, finally we have to help upstream packages like resvg-js
be ESM compatible)