I'm new to demandware. What I'm trying to do is add an external library to use in DW Controllers.
in short: How to use an external library as lodash in demandware controller?
Demandware is using the Rhino engine under the hood, which typically isn't compatible with the latest libraries. To use a third party library in Demandware, try these steps: