Hi all,

I'm trying to import an external library into lianja. I've learned about how it essentially uses Node.js implementation and the syntax required, but am still having issues. Here's what I'm currently trying:

"library.js", one of my app's js files.
Code:
function func1(){
    print("library working!");
};

module.exports.func1 = func1;
In my section's custom library, as a global:
Code:
var mylib = require("app:/library.js");
Click delegate of a button in my section:
Code:
mylib.func1();
I believe this should print "library working!" to the console, but instead the log tells me "TypeError: Result of expression 'mylib.func1' [undefined] is not a function."

Has anyone else tried importing JS libraries into Lianja?