Currently we’re using import _ from 'lodash', usually simply to leverage lodash.get() - this imports the entire 70kb lodash library for a single function.
What should your feature do?
We should use syntax such as import getValue from 'lodash/get';. This can reduce the size of our app's bundled JavaScript payload.
Feature
Why is this feature being added?
Currently we’re using
import _ from 'lodash'
, usually simply to leveragelodash.get()
- this imports the entire 70kb lodash library for a single function.What should your feature do?
We should use syntax such as
import getValue from 'lodash/get';
. This can reduce the size of our app's bundled JavaScript payload.