...
Code Block | ||||
---|---|---|---|---|
| ||||
export default function helloWorld() {
?? console.log('Hello world!');
} |
Code Block | ||||
---|---|---|---|---|
| ||||
import helloWorld from 'client-logic/helloWorld'; export default??{ helloWorld }; |
As part of the webui build, webpack will create a bundle which will expose index.ts as a preconfigured namespace. (ex. 'app')
In the designer, when calling into the function, it will be done relative to the configured namespace:
EventAttribute: '$ app.helloWorld();'