-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support Wasm Component Model #33
Comments
Ideally it would be possible to do everything in the browser such that a separate build step for users is not necessary. If that is not feasible a rollup plugin would be fine with me. I don't have any experience with rollup though so I don't know how easy it would be for me to implement. |
By the way do you know if browsers intend to support the component model in the (near) future? |
It can indeed all be done in the browser. Rollup can actually be run in the browser too! (Not many people know this). So what we would have is: Import the component bytes, get loaded JS in the same page. No (non-browser) build step. I'll see if I can whip up a Rollup plugin for these files. |
So I wrote the Rollup Plugin 🚀 https://github.com/DougAnderson444/rollup-plugin-wit-component Needs a bit of cleanup, polish, and a demo to show how to import a |
I do not know. I suspect the answer is "not anytime soon." |
@bjorn3 as I mentioned here bytecodealliance/jco#42 (comment) I think the way to go about supporting the component model is:
js-component-bindgen-component
<head><script>...
so it can be used by the window.The text was updated successfully, but these errors were encountered: