lodash dependency in a Gutenberg plugin

In the block script I had to replace:

import pick from 'lodash/pick';

with:

const { pick } = lodash;

And now it seems to work for me.

Leave a Comment