exports actually works fine. The issue is that the module global variable isn't defined (global is, but so far all the espruino modules have done fine just referencing exports directly).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
exports
actually works fine. The issue is that themodule
global variable isn't defined (global
is, but so far all the espruino modules have done fine just referencingexports
directly).