$ node componentize.js
Promise rejected but never handled: "source.js" source does not export a "hello" function as expected by the world.
Try defining it:
export function hello() {};
Stack:
BindingsError@source.bindings.js:16:5
@source.bindings.js:77:7
But when checking the exit code
$ echo $?
0
If a user has this as a part of a script. it is easy to not notice that the component was not built successfully.
As the title states, consider the the following case
when using the following script.
The output on running the script is
But when checking the exit code
If a user has this as a part of a script. it is easy to not notice that the component was not built successfully.