Our Lodash module attempts to detect what environment it is in. It can be confused if another script on the page is using the AMD module definition. This is because AMD modules use a global variable called define. The Lodash module sees the define variable and behaves like an AMD module rather than a Browserify / CommonJS module. This means that the rest of sp.js cannot access Lodash functions.
Our Lodash module attempts to detect what environment it is in. It can be confused if another script on the page is using the AMD module definition. This is because AMD modules use a global variable called
define. The Lodash module sees thedefinevariable and behaves like an AMD module rather than a Browserify / CommonJS module. This means that the rest of sp.js cannot access Lodash functions.