bytecodealliance / ComponentizeJS

JS -> WebAssembly Component
Apache License 2.0
242 stars 32 forks source link

"use" unsupported #13

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

Currently even without external wit file support, use against self-interfaces is also not working, eg for the world:

interface types {
  record app-props {
    name: string,
    count: u32
  }
}

default world app {
  use self.types.{app-props}
  export render: func(props: app-props) -> string
}

Fixing this will involve upstreaming the bindings inversion into the transpiler bindgen in jco, now that the technique is proven.

guybedford commented 1 year ago

This is now resolved in https://github.com/bytecodealliance/componentize-js/pull/24.