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.
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