-
Notifications
You must be signed in to change notification settings - Fork 2
Description
When using componentize-js, some of the bindings (or generic js) errors are caught componentizeation. AFAIR this works because wizening boots up the component, and also checks exports.
The nice thing about this is that even if somebody using JS with non-matching bindings, or TS, but forgot to export or use the proper type, still get errors before the component is fully componentized or used
Currently we only catch and detect such errors during invoke.
One possible approach to have a similar safety guard is to implement a unit test in the skeleton, that boots the project and runs some self-checks (or create some special exposed methods in the component?)
Note that using rollup and / or using TS properly in our golem-cli templates does catch many of these, but we should aim to support JS only workflows too and early error reporting for possible other issues as well, even when wasm-rquickjs is used in other possible different settings.