alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Add babel-plugin-lodash #135

Closed dave-irvine closed 6 years ago

dave-irvine commented 6 years ago

As the module currently exists, when you bundle it into a project using webpack, the entirety of lodash is pulled in, ~600kb.

By adding babel-plugin-lodash, the actual lodash modules you use are cherry-picked and used directly, reducing eventual lodash includes to about ~150kb.

There should be no functional difference, this change should be seamless.

alsoscotland commented 6 years ago

@dave-irvine Thanks for filing the issue. Will do asap

alsoscotland commented 6 years ago

@dave-irvine added and bumped. I did the update in a separate PR so I could add the version change for the PR docs https://github.com/alsoscotland/react-super-select/tree/v1.0.9