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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Global require.config
Is there a way to use `require.config` such that it applies globally to an account? I am currently using this to alias d3:
require.config({ paths: { "d3": "/SuiteScripts/lib/d3.min.js" }, shim: { "d3": { exports: "d3" } } }); define(["d3"], function (d3) { ... }); This works as expected, but it means I need that `require.config` block in *every* script where I want d3. Is there a place I can define it once and be done with it for the account?
0