I could have an explanation for what you see:
After the function node imported an ExternalModule as lib
, it references (line 318) lib.default
to the variable name defined on the property editor.
lib.default
yet is only present if the module has defined an export default
or export { ..., ... as default, ...}
.
javascript-interface-library
doesn't define an export default
, but only export { ... }
.
Is this a bug of Node-RED? I'm not sure...