OperationCode / operationcode_frontend

Front-end repository for live site. Please go to `front-end` repo to contribute instead.
https://operationcode.org
MIT License
101 stars 222 forks source link

Modularize every usage of Lodash methods #964

Closed jjhampton closed 6 years ago

jjhampton commented 6 years ago

Feature

Why is this feature being added?

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.

jvillama commented 6 years ago

I can take this.

ksmacleod99 commented 6 years ago

Go for it! I'm going to assign myself as a placeholder for you. CC @jjhampton