Skip to content

Fix lodash.js to work in the presence of AMD modules #165

Description

@fblundun

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.

Metadata

Metadata

Labels

type:defectBugs or weaknesses. The issue has to contain steps to reproduce.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions