Hello, if I wanted to import this javascript library: https://github.com/kjur/jsrsasign/bl…est-all-min.js as an AMD compatible file, or as something that SuiteScript 2.0 can work with, is the only course of action to wrap the entire file in a define([],function(){}); function and then specify the objects to return using:
return{
var1: var1,
function1: function1
etc..
}
If that is the case, do I only have to specify those functions and objects to return that will be called directly from my code? So if function1 above calls other functions that I don’t specifically return, I don’t need to specify those ones right?
Is there another way to import this library that I am overlooking?
Thanks
This is a cached copy. Click here to see the original post.