How do we include only required modules from lodash in a Nuxt?Vuejs Project?
You can npm install
only the required packages
Lodash can be split up per custom builds. You can find a list of already available ones here. You can use them like this: npm i -S lodash.orderby
. I didn't check it but you would probably also need to change import orderBy from 'lodash/orderBy'
to import orderBy from 'lodash.orderby'
.