ehcanadian
03/28/2018, 4:50 PMjkabot
03/28/2018, 5:04 PMdefine
pattern or has some type of detection to use the define
pattern).
Additionally any library that you import on the server cannot have any browser or node js dependencies.
Generally as a rule of thumb if it has any runtime dependencies at all (i.e. isn't "pure" javascript), it probably won't work on the server.
E.g. since the only way to make http requests on netsuite server is with the N/http
modules, the google maps library had better not need to request any data 🙂ehcanadian
03/28/2018, 5:07 PMehcanadian
03/28/2018, 5:08 PMjkabot
03/28/2018, 5:18 PM