Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resvg compatibility #20

Open
harlan-zw opened this issue Mar 8, 2024 · 4 comments
Open

resvg compatibility #20

harlan-zw opened this issue Mar 8, 2024 · 4 comments
Assignees

Comments

@harlan-zw
Copy link
Collaborator

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

@pi0 pi0 self-assigned this Mar 8, 2024
@pi0 pi0 changed the title Resvg Support resvg compatibility Mar 8, 2024
@pi0
Copy link
Member

pi0 commented Mar 14, 2024

Working on #23, i hope it can help to support resvg-js sooner.

@pi0
Copy link
Member

pi0 commented Mar 14, 2024

Updated: https://stackblitz.com/edit/stackblitz-starters-4rizt7?file=src%2Findex.ts,build.config.ts

@harlan-zw
Copy link
Collaborator Author

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.

@pi0 pi0 reopened this Mar 15, 2024
@pi0
Copy link
Member

pi0 commented Mar 15, 2024

(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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants