is there something inherent that prevents `require...
# suitescript
d
is there something inherent that prevents
require()
being called multiple times on a serverside script synchronously? I am trying to load custom modules progressively as needed doing something similar to https://medium.com/@avivashisth/netsuite-optimizing-suitescript-with-progressive-loading-35332dcc6502 but it only appears to successfully load the first call to
require
, all subsequent ones do not seem to get triggered (or synchronously at least) so it gets a reference error when attempting to later access the module Thanks
it seems like using the "built-in" require rather than importing the dependency explicitly in the wrapper define() statement fixed the issues I was seeing ... no idea why though