ComponentizeJS
ComponentizeJS copied to clipboard
JS -> WebAssembly Component
First of all, thanks for this awesome project. I'm wondering if I can [reference packages to import like `cargo component`](https://component-model.bytecodealliance.org/language-support/rust.html#referencing-the-package-to-import) for `ComponentizeJS` (and also for `componentize-py` but not tested yet)....
I see in the [tests](https://github.com/bytecodealliance/ComponentizeJS/blob/main/test/builtins/globals.js) that the global `Request`/`Response`/`Headers` objects are available, and I can create `Headers` successfully. But if I try to create `Request` or `Response` using the example,...
Could we optionally enable the `cli` and `fs` worlds. This would enable building compatibility layers such that more libraries would work and also improve the variety of applications that can...
Should the componentizing process perform tree shaking to exclude the wasm imports not imported by the JS guest code? An example use case is when a npm package is written...
Using the [command-extended](https://github.com/bytecodealliance/componentize-py/blob/main/wit/command-extended.wit) world, I'm trying to use `fetch`. The following code compiles to WASM but traps at runtime. ```wit // All of the same imports and exports available in...
It would be great to support the ability to create a component that can target the union of multiple worlds in the cases where the user cannot edit the wit...
We're testing long-lived component instances created with ComponentizeJS. After some number of calls to an instance we start getting failures, wasm traps such as unreachable or uninitialized value. The number...
Instead of requiring `componentize-js` to be used as a library, it would be nice if there was also a CLI experience. To begin with the CLI could take two mandatory...
As noted in https://github.com/bytecodealliance/ComponentizeJS/issues/88, it is not obvious how imports work. While I understand the hesitation to document this extensively as things are likely to change in the future, it...
The `witPath` option to the `componentize` function can either be a path to a single wit file or to a directory. If the path is a wit file then the...