Hey @Guy Bedford, have you thought about enabling a mode where .js can be the "parent" component but the js engine -- spidermonkey in this case -- is a component that the parent component invokes? (or vice versa, depending on the most productive order)? Sort of like Javy's javy emit-provider
command.
Treating spidermonkey itself as an import is very much a goal if that is what you mean?
we have a tracking issue for this in https://github.com/bytecodealliance/ComponentizeJS/issues/66
that would allow generating JS components that are much smaller, but then share the same spidermonkey base component
Yup. While one off, trivial work like adding numbers doesn't make sense, having a cached engine component ready for reuse in a centralized service really does. The user component just delivers the .js files.
yes, exactly, there's techniques to do this, we just haven't yet put pressure on prioritising that to date
Last updated: Nov 22 2024 at 17:03 UTC