What's the difference these imports in terms of React application bundle size?
import _ from 'lodash' // then use _.get
import { get } from 'lodash'
import get from 'lodash/get'
What's the difference these imports in terms of React application bundle size?
import _ from 'lodash' // then use _.get
import { get } from 'lodash'
import get from 'lodash/get'
Found correct answer I was looking for here
import concat from 'lodash/concat';
import orderBy from 'lodash/orderBy';
import filter from 'lodash/filter';
it only loads the needed modules (results in smaller bundler size)
https://www.blazemeter.com/blog/the-correct-way-to-import-lodash-libraries-a-benchmark