Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Import third-party JS library
Hello, if I wanted to import this javascript library: https://github.com/kjur/jsrsasign/blob/master/jsrsasign-latest-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?