Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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?
0