M3 Developer Gotchas - ProjectMirador/mirador GitHub Wiki

Using lodash

Using lodash is perfectly acceptable in Mirador. Some of our dependencies already require it. One gotcha though is we need to import individual functions like this:

import flatten from 'lodash/flatten';

This will keep our build smaller.