e.g. if you look at lodash source code, it has a U...
# releases
j
e.g. if you look at lodash source code, it has a UMD hook but it also puts in a workaround for exactly the issue NetSuite introduced in this release https://github.com/lodash/lodash/blob/4.17.11/lodash.js#L17082-L17106
Copy code
// Some AMD build optimizers, like r.js, check for condition patterns like:
  if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
    // Expose Lodash on the global object to prevent errors when Lodash is
    // loaded by a script tag in the presence of an AMD loader.
    // See <http://requirejs.org/docs/errors.html#mismatch> for more details.
    // Use `_.noConflict` to remove Lodash from the global object.
    root._ = lodash;

    // Define as an anonymous module so, through path mapping, it can be
    // referenced as the "underscore" module.
    define(function() {
      return lodash;
    });
  }