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

Use import maps #10

Closed
pi0 opened this issue Jan 2, 2024 · 0 comments · Fixed by #11
Closed

Use import maps #10

pi0 opened this issue Jan 2, 2024 · 0 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Jan 2, 2024

Since unwasm is aware of wasm imports, it can also try to search for them from parent package.json's imports field (docs) to be zero-config for .wasm imports that require a binding.

(Funny, I was thinking about supporting .imports.js file alongside .wasm files as a convention until I suddenly thought, oh hey ESM already got it converted!)

I think this should give us a clear path for package authors' convention (#7)

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

Successfully merging a pull request may close this issue.

1 participant