Replace lodash per-method packages with scoped imports
The per-method packages are zero-dependency modules, so they often include a bunch of extra code compared to importing from lodash/foo. We can save some bundle size by using these partial includes instead. Additionally, if I recall correctly, the per-method packages are all deprecated and no longer updated, so this is the way to go for lodash moving forward.
Showing
- examples/DateRangePickerWrapper.jsx 1 addition, 1 deletionexamples/DateRangePickerWrapper.jsx
- examples/DayPickerRangeControllerWrapper.jsx 1 addition, 1 deletionexamples/DayPickerRangeControllerWrapper.jsx
- examples/SingleDatePickerWrapper.jsx 1 addition, 1 deletionexamples/SingleDatePickerWrapper.jsx
- package.json 1 addition, 2 deletionspackage.json
- src/components/DateInput.jsx 1 addition, 1 deletionsrc/components/DateInput.jsx
- src/components/DayPicker.jsx 1 addition, 1 deletionsrc/components/DayPicker.jsx
Loading
Please register or sign in to comment